Page 1 of 1

repair broken config

Posted: Tue Nov 13, 2012 11:53 am
by sal@coned
I am getting an error whenever I try to update the configuration.

error:
Processing object config file '/usr/local/nagios/etc/services/win_system.cfg'...
Error: Service description, host name, or check command is NULL
Error: Could not register service (config file '/usr/local/nagios/etc/services/drvmhost1.cfg', starting on line 14)
Error processing object config files!
I have tried to delete both the host and services in question, but I cannot apply the settings without getting the error message.

I am using Nagios XI 2012R1.2

Re: repair broken config

Posted: Tue Nov 13, 2012 1:34 pm
by scottwilkerson
If you go to Configure -> CCM -> Services
in the dropdown "Filter by Config Name:"
do you have options for either
drvmhost1 or win_system ?

If so, select them and you can make the changes necessary, or delete them, if you do not have them at all, run the following from the command line

Code: Select all

rm -f /usr/local/nagios/etc/services/win_system.cfg /usr/local/nagios/etc/services/drvmhost1.cfg