Feature Request: Enhanced Error Message for Config Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mopp
Posts: 64
Joined: Thu Aug 20, 2015 7:15 am

Feature Request: Enhanced Error Message for Config Error

Post by mopp »

In case of a CCM configuration error you just get a message like,

Code: Select all

Error: Template 'generic-service' specified in service definition could not be not found (config file '/usr/local/nagios/etc/services/localhost_copy_1.cfg', starting on line 16)
It would be really helpful if nagios will show the configuration file with the error.
We know the file name localhost_copy_1.cfg and the starting line. If Nagios will run something like this before saving the snapshot to /usr/local/nagiosxi/nom/checkpoints/nagioscore/errors/ it would be really helpful:

Code: Select all

tail -n +16 localhost_copy_1.cfg | sed '/}/q'
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Feature Request: Enhanced Error Message for Config Error

Post by dwhitfield »

I have created internal feature request (FR) 11181 for this issue. Please reference this # if you wish to check on the status.

That said, are we ready to close this ticket or did you want to add more to the request?
mopp
Posts: 64
Joined: Thu Aug 20, 2015 7:15 am

Re: Feature Request: Enhanced Error Message for Config Error

Post by mopp »

You can close the ticket, thank you.
Locked