I found by commenting out part of our escalations.cfg file /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg completed OK!
It looks like nagios4 is having problems with the following definitions, do you know why?
Code: Select all
#### ####
define serviceescalation{
servicegroup_name S-servers
service_description *
first_notification 1
last_notification 2
notification_interval 0
escalation_options w
escalation_period workhours
contacts xxx,xxx
}
define serviceescalation{
servicegroup_name S-servers
service_description *
first_notification 1
last_notification 2
notification_interval 0
escalation_options c
escalation_period workhours
contacts xxx,xxx,xxx
}
###############################################################
# The two definitions below override the default DUMMY contact.
# ALL CRITICAL SERVICE NOTIFICATIONS - UNIX/LINUX & STORAGE.
define serviceescalation{
hostgroup_name all-servers,!tvp-citrix-servers,!tvp-license-servers-WIN,!tvp-xen-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
servicegroup_name *,!S-servers
service_description *,!arcSDE9,!prosource_listener,!arcgis_listener, \
!prosource_database,!tns-gfafrica, \
!gfafrica-DB, \
!tns-gfameric, \
!gfameric-DB, \
!tns-gfasia, \
!tns-gfaustra, \
!gfaustra-DB, \
!tns-gfeurope, \
!gfeurope-DB, \
!tns-gfglobal, \
!gfglobal-DB, \
!tns-gfmiddle, \
!gfmiddle-DB, \
!tns-gfdm, \
!gf42-DB, \
!gf43-DB, \
!gf4411-DB, \
!pettech9-DB, \
!tellus9-DB, \
!tns-tellus9
last_notification 750
notification_interval 5
escalation_options c,r
escalation_period workhours
contact_groups first,hUnixs
}
# ALL CRITICAL SERVICE NOTIFICATIONS - WINDOWS & CITRIX
define serviceescalation{
hostgroup_name citrix-servers,license-servers-WIN,windows-servers,\
global-license-servers, xen-servers,usb-hubs, \
vmware-servers, xen-tdp-servers,geoportal-servers
service_description *
last_notification 750
notification_interval 5
escalation_options c,r
escalation_period workhours
contact_groups first,WindowsAdmins
}
############################################################
# The following two definitions send the first ten WARNING msgs
# to third line, then stop
# WARNING NOTIFICATIONS - LINUX - SERVICE ESCALATIONS
define serviceescalation{
hostgroup_name all-servers,!citrix-servers,!license-servers-WIN,!xen-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
service_description *,!Processor Affinity!var
first_notification 1
last_notification 10
notification_interval 10
escalation_options w
escalation_period workhours
contact_groups Unixadmin
}
define serviceescalation{
hostgroup_name all-servers,!citrix-servers,!license-servers-WIN,!xen-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
service_description *,!Processor Affinity,!var
first_notification 10
last_notification 11
notification_interval 0
escalation_options w
escalation_period workhours
contact_groups UnixAdmin
}
# WARNING NOTIFICATIONS - WINDOWS - SERVICE ESCALATIONS
define serviceescalation{
hostgroup_name citrix-servers,license-servers-WIN,windows-servers,\
global-license-servers, xen-servers,usb-hubs, \
vmware-servers, xen-tdp-servers,geoportal-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
host_name node1
service_description *,!Processor Affinity
first_notification 1
last_notification 10
notification_interval 10
escalation_options w
escalation_period workhours
contact_groups WinAdmins
}
define serviceescalation{
hostgroup_name citrix-servers,license-servers-WIN,windows-servers,\
global-license-servers, xen-servers,usb-hubs, \
vmware-servers, xen-tdp-servers,geoportal-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
host_name node1
service_description *,!Processor Affinity
first_notification 10
last_notification 11
notification_interval 0
escalation_options w
escalation_period workhours
contact_groups WinAdmin
}
###########################################################
# The three definitions below escalate CRITICAL SERVICE alterts every 5mins
# through first,second and third
# NOTIFICATION1 - SERVICE ESCALATIONS
define serviceescalation{
hostgroup_name all-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
service_description *
first_notification 2
last_notification 10
notification_interval 5
escalation_options c,r
escalation_period workhours
contact_groups first,second
}
# NOTIFICATION2 - SERVICE ESCALATIONS
define serviceescalation{
hostgroup_name all-servers,!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers,
service_description *
first_notification 3
last_notification 10
notification_interval 5
escalation_options c,r
escalation_period workhours
contact_groups first,second,third
}
# NOTIFICATION3 - SERVICE ESCALATIONS
define serviceescalation{
hostgroup_name all-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
service_description *
first_notification 4
last_notification 10
notification_interval 5
escalation_options c,r
escalation_period workhours
contact_groups first,second,third,fourth
}
define serviceescalation{
hostgroup_name all-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
service_description *
first_notification 10
last_notification 10
notification_interval 0
escalation_options c,r
escalation_period workhours
contact_groups first,second,third,fourth
}
##########################################################
# HOST escalation definitions
# ALL CRITICAL HOST NOTIFICATIONS - UNIX/LINUX & STORAGE.
define hostescalation{
hostgroup_name all-servers,!citrix-servers,!license-servers-WIN,!xen-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
first_notification 1
last_notification 10
notification_interval 5
escalation_options d,u,r
escalation_period workhours
contact_groups first,UnixAdmin
}
define hostescalation{
hostgroup_name all-servers,!citrix-servers,!license-servers-WIN,!-xen-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
first_notification 10
last_notification 11
notification_interval 0
escalation_options d,u,r
escalation_period workhours
contact_groups first,UnixAdmin
}
# ALL CRITICAL HOST NOTIFICATIONS - WINDOWS & CITRIX
define hostescalation{
hostgroup_name citrix-servers,license-servers-WIN,windows-servers,\
global-license-servers, xen-servers, usb-hubs, \
vmware-servers, xen-tdp-servers,geoportal-servers
first_notification 1
last_notification 10
notification_interval 5
escalation_options d,u,r
escalation_period workhours
contact_groups first,WinAdmin
}
define hostescalation{
hostgroup_name citrix-servers,license-servers-WIN,windows-servers,\
global-license-servers, xen-servers, usb-hubs, \
vmware-servers, xen-tdp-servers,geoportal-servers
first_notification 10
last_notification 11
notification_interval 0
escalation_options d,u,r
escalation_period workhours
contact_groups first,WinAdmin
}
###########################################################
# The three definitions below escalate Critical, ie DOWN or UNREACHABLE alterts every 5mins
# through first,second and third line
# NOTIFICATION1 - HOST ESCALATION
define hostescalation{
hostgroup_name all-servers,!citrix-servers,!license-servers-WIN,!xen-servers, \
!aberdeen-all-servers, !astana-all-servers, \
!brisbane-all-servers, !cairo-all-servers, \
!houston-all-servers, !mumbai-all-servers, \
!rio-all-servers, !santa-cruz-all-servers, \
!stavanger-all-servers,!trinidad-all-servers, \
!tunisia-all-servers
first_notification 2
last_notification 10
notification_interval 5
escalation_options d,u,r
escalation_period workhours
contact_groups first,second
}
# NOTIFICATION2 - HOST ESCALATION
define hostescalation{
hostgroup_name all-servers, \
!astana-keystone-servers,!santa-cruz-keystone-servers, \
!tunisia-keystone-servers,!stavanger-keystone-servers, \
!cairo-keystone-servers, \
!mumbai-keystone-servers,!trinidad-keystone-servers, \
!rio-keystone-servers
first_notification 3
last_notification 10
notification_interval 5
escalation_options d,u,r
escalation_period workhours
contact_groups first,second,third
}
# NOTIFICATION3 - HOST ESCALATION
define hostescalation{
hostgroup_name all-servers, \
!astana-keystone-servers,!santa-cruz-keystone-servers, \
!tunisia-keystone-servers,!stavanger-keystone-servers, \
!cairo-keystone-servers, \
!mumbai-keystone-servers,!trinidad-keystone-servers, \
!rio-keystone-servers
first_notification 4
last_notification 10
notification_interval 5
escalation_options d,u,r
escalation_period workhours
contact_groups first,second,third,fourth
}
define hostescalation{
hostgroup_name all-servers, \
!astana-keystone-servers,!santa-cruz-keystone-servers, \
!tunisia-keystone-servers,!stavanger-keystone-servers, \
!cairo-keystone-servers, \
!mumbai-keystone-servers,!trinidad-keystone-servers, \
!rio-keystone-servers
first_notification 10
last_notification 10
notification_interval 0
escalation_options d,u,r
escalation_period workhours
contact_groups first,second,third,fourth
}