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'