Unable to write config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Kxfrancois
Posts: 48
Joined: Mon Nov 19, 2018 9:38 am

Unable to write config

Post 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)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to write config

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Kxfrancois
Posts: 48
Joined: Mon Nov 19, 2018 9:38 am

Re: Unable to write config

Post by Kxfrancois »

Total 0
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to write config

Post by scottwilkerson »

Did you look at CCM -> Services -> COMMON-SERVER -> "View Config" icon from the CCM and see what object starts on line 124
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Kxfrancois
Posts: 48
Joined: Mon Nov 19, 2018 9:38 am

Re: Unable to write config

Post 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
}
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to write config

Post by scottwilkerson »

Was there a service_description ? I don't see one.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Kxfrancois
Posts: 48
Joined: Mon Nov 19, 2018 9:38 am

Re: Unable to write config

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to write config

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked