Nagios

From Halfface
Revision as of 11:05, 17 October 2017 by Ekaanbj (talk | contribs) (Created page with "=debug checks= Sometimes I find it tricky figuring out exactly what a plugin is doing. To figure this out I set nagios into debug mode with the configuration like this. debug_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

debug checks

Sometimes I find it tricky figuring out exactly what a plugin is doing. To figure this out I set nagios into debug mode with the configuration like this. debug_level=2048 With nagios in debug mode I simply tail the debug_log file debug_file=/var/log/nagios3/nagios.debug. Force a check and you will see exactly how the command is being run. I wouldn't leave this setting on normally though, it is very verbose and fills your log file at a rapid rate.

debug levels

The debug_levels are binary - 2048 only turns on messages from macros. To turn on everything you want to set debug_level=4095. (1 + 2 + ... + 2048)