Do you know if is there any easy way to send output of every check run by nagios to syslog?
Nagios plugins/commands output to syslog
nagiossyslog
nagiossyslog
Do you know if is there any easy way to send output of every check run by nagios to syslog?
Best Answer
I wrote a small script which can be used as a notification and / or event handler. This was beneficial at the time since I did not want to log soft error states and the build I was working with could not separate the two. It also provides some formatting options.
This is easy to use by adding a user syslog with the notify-by-syslog options defined. Simply add this user as a contact whereever you want a specific service to log to syslog.
The Nagios command in the config file:
The send_syslog.pl script