升级通知,无论时间期限如何

我的oncall旋转定义了基于个人地理graphics位置的时间段。 但是,无论何时发生,我们的升级都需要传递给整个团队。 目前我发现在nagios中configuration这个的唯一方法是为每个人创build两个联系人

一个是特定时间段,另一个是24×7,然后在升级中使用24×7联系人。 我希望每个人只能保持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 } 

您可以使用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 } 

等等

然后确保联系人组包含适当的人员。 这将根据时间段将第一个通知发送给相应的组。 所以你创build一个“无人”或类似的虚拟组,并把它放在服务声明中,以便它实际上不会发送给任何人。

你有没有检出http://nagios.sourceforge.net/docs/1_0/escalations.html
我想你可以将一个用户添加到多个联系人组,以完成你想要的任务。

这可能不适合你的情况,但是我通过使用发行版组了解了Nagios中同一个人的多个联系人。 我没有成立个人,而是组build了一个团队。 Nagios的联系人永远不会改变,但发行组总是波动。