Nagios exec logging

Nagios can be a pain in the butt to troubleshoot because finding out what it is passing to it’s plugins isn’t easy to log.

A friend says that this works, haven’t tried it yet, but it seems logical.

strace -s 4096 /usr/local/nagios/bin/nagios -c /usr/local/nagios/etc/nagios.cfg 2>&1 | vim -

syntax on
set filetype=strace

Comments are closed.