naemon-core icon indicating copy to clipboard operation
naemon-core copied to clipboard

/usr/bin/naemon -v should exit with non-zero result code on warnings

Open alexntt opened this issue 6 years ago • 0 comments

Hi,

$ /usr/bin/naemon -v /opt/monitor/etc/naemon.cfg
...
Warning: Duplicate definition found for service 'gen000008816_disk_foobar' on host 'srv000001727_eul3300530_bitbucket' (config file '/opt/monitor/etc/oconf/services.cfg', starting on line 683)
...
$ echo $?
0

Would it be possible to make warnings failures? At least optionally?

Cheers,

Álex

alexntt avatar Aug 09 '18 11:08 alexntt