Page 1 of 1

Feature Request: Enhanced Error Message for Config Error

Posted: Tue Feb 28, 2017 6:13 am
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'

Re: Feature Request: Enhanced Error Message for Config Error

Posted: Tue Feb 28, 2017 11:05 am
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?

Re: Feature Request: Enhanced Error Message for Config Error

Posted: Wed Mar 01, 2017 2:49 am
by mopp
You can close the ticket, thank you.