我在configurationnagios升级时遇到问题。 我收到以下错误:
Error: Could not expand hostgroups and/or hosts specified in host escalation (config file '/usr/local/nagios/etc/objects/escalations.cfg', starting on line 11) Error processing object config files!
escalations.cfg文件如下所示:
define hostescalation{ host_name * contact_groups admins first_notification 1 last_notification 3 notification_interval 30 escalation_period 24x7 escalation_options d,u } define hostescalation{ host_name * contact_groups suppliers first_notification 4 last_notification 6 notification_interval 60 escalation_period 24x7 escalation_options d,u } define serviceescalation{ host_name script.myprojects service_description HTTP first_notification 1 last_notification 3 notification_interval 30 contact_groups admins } define serviceescalation{ host_name script.myprojects service_description HTTP first_notification 4 last_notification 6 notification_interval 60 contact_groups suppliers }
我想要的是,使用通配符(*)获取所有主机组及其成员。 这不起作用。 谁能提供任何解决scheme? 我是否错过了任何定义,如果是的话,在哪里/如何把这个定义?
谢谢!
这个对象定义中是否可以使用通配符还不清楚。 但是,假设你可以 ,请确保每个Nagios文档都有use_regexp_matching=0 : http : use_regexp_matching=0