AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 42260
Accepted
Stick
Stick
Asked: 2009-07-18 10:01:47 +0800 CST2009-07-18 10:01:47 +0800 CST 2009-07-18 10:01:47 +0800 CST

不考虑时间段上报通知

  • 772

我的待命轮换根据人员的地理位置定义时间段。但无论何时发生,我们的升级都需要传达给整个团队。目前我发现在 nagios 中配置它的唯一方法是为每个人创建两个联系人

一个是特定时间段,另一个是 24x7,然后在升级中使用 24x7 联系。我希望每人只能保持 1 个联系人。

define contact {
    contact_name                        bobjones
    service_notification_period         ops-shift4-oncall
    host_notification_period            ops-shift4-oncall
    host_notification_options           d,u,r
    service_notification_commands       service-notify
    host_notification_commands          host-notify
    email                               [email protected]
    pager                               bjones
}

define contact {
    contact_name                        bobjones_24x7
    service_notification_period         24x7
    host_notification_period            24x7
    host_notification_options           d,u,r
    service_notification_commands       service-notify
    host_notification_commands          host-notify
    email                               [email protected]
    pager                               bjones
}
nagios
  • 3 3 个回答
  • 592 Views

3 个回答

  • Voted
  1. Best Answer
    Catherine MacInnes
    2009-07-18T11:16:16+08:002009-07-18T11:16:16+08:00

    您可以使用 escalation_period 定义升级何时结束。所以你可以做类似的事情

    define serviceescalation{
      hostname              host.example.com
      service_description   this service
      first_notification    1
      last_notification     1
      notificaiton_interval 15
      escalation_period     opps-shift4-oncall
      contact_groups        shift4
    }
    
    
    define serviceescalation{
      hostname              host.example.com
      service_description   this service
      first_notification    1
      last_notification     1
      notification_interva  15
      escalation_period     opps-shift3-oncall
      contact_groups        shift3
    }
    

    等等

    然后确保联系人组包含适当的人员。这会根据时间段将第一个通知发送到适当的组。因此,您创建了一个虚拟组“no one”或类似的东西,并将其放入服务声明中,这样它实际上根本不会发送给任何人。

    • 1
  2. Keith
    2009-07-18T10:12:04+08:002009-07-18T10:12:04+08:00

    你检查过http://nagios.sourceforge.net/docs/1_0/escalations.html吗?
    我认为您可以将一个用户添加到多个联系人组中以执行您想要的操作。

    • 0
  3. breadly
    2009-07-21T06:26:37+08:002009-07-21T06:26:37+08:00

    它可能不适合您的情况,但我通过使用发行版组在 Nagios 中为同一个人建立了多个联系人。我没有建立个人,而是建立了小组作为交换。Nagios 联系人永远不会改变,但发行版组一直在波动。

    • 0

相关问题

  • 使用 Nagios 监视 Novell 集群服务

  • 异地nagios?[关闭]

  • 是否有任何可用的图形工具来为主机生成 nagios 用户提供的地图坐标?

  • 我如何开始使用 Nagios?

  • 如何为 Exchange 邮件存储配置 Nagios 警报

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    Windows 中执行反向 DNS 查找的命令行实用程序是什么?

    • 14 个回答
  • Marko Smith

    如何检查 Windows 机器上的端口是否被阻塞?

    • 4 个回答
  • Marko Smith

    我应该打开哪个端口以允许远程桌面?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    kch 如何更改我的私钥密码? 2009-08-06 21:37:57 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve