Feature Request: Enhanced Error Message for Config Error
Posted: Tue Feb 28, 2017 6:13 am
In case of a CCM configuration error you just get a message like,
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
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)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'