
Nagios에서 에스컬레이션을 구성하는 데 문제가 있습니다. 다음과 같은 오류가 발생합니다.
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
}
내가 원하는 것은 와일드카드(*)를 사용하여 모든 호스트 그룹과 해당 구성원을 얻는 것입니다. 작동하지 않습니다. 누구든지 솔루션을 제공할 수 있습니까? 정의가 누락되었나요? 그렇다면 이 정의를 어디에/어떻게 입력해야 합니까?
감사해요!
답변1
이 개체 정의에 와일드카드를 사용할 수 있는지 여부는 확실하지 않습니다. 하지만 당신을 가정하면~할 수 있다use_regexp_matching=0
, 이 Nagios 문서에 따라 다음이 있는지 확인하세요 .http://nagios.sourceforge.net/docs/3_0/configmain.html#use_regexp_matching