Debug nagios config check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ksd13
Posts: 6
Joined: Wed Dec 18, 2013 5:28 pm

Debug nagios config check

Post by ksd13 »

I upgraded Nagios core v3.x to Nagios v4.0.8. I imported all config files from old version and now config check is failing. I have following debug settings in nagios.cfg file but nothing is being collected when I use nagios -v nagios.cfg

debug_level=2048 # Also tried with -1
debug_verbosity=2
debug_file=/usr/local/nagios/var/nagios.debug
max_debug_file_size=1000000

Appreciate your help in advance.

I am getting following error during configuration check:

Error: Service escalation host name or description is NULL
Error: Could not register service escalation (config file '/usr/local/nagios/etc/objects/hosts/xxxdbtst.cfg', starting on line 15)
Error processing object config files!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Debug nagios config check

Post by slansing »

There will likely be no debug information created for a config verification, you need to fix the errors being output that you showed:

"Error: Service escalation host name or description is NULL"

Then you should be able to start Nagios. You are likely missing either the host name, description, or both at around line 15 of:

Code: Select all

/usr/local/nagios/etc/objects/hosts/xxxdbtst.cfg
Locked