Error: Could not find a service matching ....
Posted: Fri Aug 30, 2019 10:42 am
Hello:
I'm running into the following error messages when I did an "Apply Configuration" after attempting to delete a user from within Nagio XI (version 5.4.13):
1).
"
Error: Could not find a service matching host name '<servicename>.<doman>' and description 'Ping' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 53)
"
and
2).
"
Error: Contact '<first.last>' has no service notification commands defined!
"
Regarding 1)., I did find the '<servicename>.<doman>' and its associated 'Ping' Service in "/usr/local/nagios/etc/servicegroups.cfg" and did find '<servicename>.<doman>' in "/usr/local/nagios/etc/hostgroups.cfg". I did note that '<servicename>.<doman>' existed in the Nagios XI console BUT the Ping Service was not there and a different Service existed (Check_UPS...).
If I can't manually edit "/usr/local/nagios/etc/servicegroups.cfg" as per its warning comment, below, how may I fix this, please?
"
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
"
I'm running into the following error messages when I did an "Apply Configuration" after attempting to delete a user from within Nagio XI (version 5.4.13):
1).
"
Error: Could not find a service matching host name '<servicename>.<doman>' and description 'Ping' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 53)
"
and
2).
"
Error: Contact '<first.last>' has no service notification commands defined!
"
Regarding 1)., I did find the '<servicename>.<doman>' and its associated 'Ping' Service in "/usr/local/nagios/etc/servicegroups.cfg" and did find '<servicename>.<doman>' in "/usr/local/nagios/etc/hostgroups.cfg". I did note that '<servicename>.<doman>' existed in the Nagios XI console BUT the Ping Service was not there and a different Service existed (Check_UPS...).
If I can't manually edit "/usr/local/nagios/etc/servicegroups.cfg" as per its warning comment, below, how may I fix this, please?
"
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
"