I keep getting this error when attempting to apply the config but when I look at line 124, it is correct.
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/COMMON-SERVER.cfg', starting on line 124)
Unable to write config
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Unable to write config
Can you show the output of the following
and make sure it is empty
Additionally, you would need to look in the CCM -> Services -> COMMON-SERVER -> "View Config" icon from the CCM, not the file on the server because the file in that path will be reset if the apply configuration fails.
Code: Select all
ls -l /usr/local/nagios/etc/importAdditionally, you would need to look in the CCM -> Services -> COMMON-SERVER -> "View Config" icon from the CCM, not the file on the server because the file in that path will be reset if the apply configuration fails.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Unable to write config
Did you look at CCM -> Services -> COMMON-SERVER -> "View Config" icon from the CCM and see what object starts on line 124
-
Kxfrancois
- Posts: 48
- Joined: Mon Nov 19, 2018 9:38 am
Re: Unable to write config
servicegroups hardware-memory
check_command check_xi_service_snmp_win_storage! -C SRVro --v2c -m 'Virtual Memory' -w 90 -c 95 -f!!!!!!!
process_perf_data 1
notifications_enabled 0
_xiwizard windowssnmp
register 1
}
check_command check_xi_service_snmp_win_storage! -C SRVro --v2c -m 'Virtual Memory' -w 90 -c 95 -f!!!!!!!
process_perf_data 1
notifications_enabled 0
_xiwizard windowssnmp
register 1
}
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Unable to write config
Was there a service_description ? I don't see one.
-
Kxfrancois
- Posts: 48
- Joined: Mon Nov 19, 2018 9:38 am
Re: Unable to write config
You can close this ticket. I figured it out. There was a entry in the cfg file that was missing but it was present in the gui.
Thanks for your help.
Thanks for your help.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Unable to write config
Great!Kxfrancois wrote:You can close this ticket. I figured it out. There was a entry in the cfg file that was missing but it was present in the gui.
Thanks for your help.
Glad to hear it is resolved!
Locking