Page 1 of 1

Unable to write config

Posted: Wed Jun 19, 2019 5:52 am
by Kxfrancois
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)

Re: Unable to write config

Posted: Wed Jun 19, 2019 8:17 am
by scottwilkerson
Can you show the output of the following

Code: Select all

ls -l /usr/local/nagios/etc/import
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.

Re: Unable to write config

Posted: Wed Jun 19, 2019 9:56 am
by Kxfrancois
Total 0

Re: Unable to write config

Posted: Wed Jun 19, 2019 11:00 am
by scottwilkerson
Did you look at CCM -> Services -> COMMON-SERVER -> "View Config" icon from the CCM and see what object starts on line 124

Re: Unable to write config

Posted: Wed Jun 19, 2019 1:12 pm
by Kxfrancois
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
}

Re: Unable to write config

Posted: Wed Jun 19, 2019 1:40 pm
by scottwilkerson
Was there a service_description ? I don't see one.

Re: Unable to write config

Posted: Thu Jun 20, 2019 5:37 am
by Kxfrancois
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.

Re: Unable to write config

Posted: Thu Jun 20, 2019 6:33 am
by scottwilkerson
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.
Great!

Glad to hear it is resolved!

Locking