where does event handler script echo log to
Posted: Thu May 19, 2016 4:14 am
following the nagios documentation, i have setup my first event handler.
I used the script that is on the doc page here https://assets.nagios.com/downloads/nag ... dlers.html,
to help me write my own.
One thing that I am trying to do is to log to a file from the script.
When Nagios event handler executes this script, where does the echo output go to? to a log file somewhere?
i also have lines in the script like the below to to write to my own log file
When executing the script manually, it all works fine, but from when nagios executes the script, I do not get any logs in the /tmp/evenhandlers file.
I am running Naigos Core 3.5.1, on Ubuntu 14.04.2 LTS. I am thinking could the shell that I am using have anything to do with it?
Thanks
I used the script that is on the doc page here https://assets.nagios.com/downloads/nag ... dlers.html,
to help me write my own.
One thing that I am trying to do is to log to a file from the script.
When Nagios event handler executes this script, where does the echo output go to? to a log file somewhere?
i also have lines in the script like the below to to write to my own log file
Code: Select all
#!/bin/sh
date=`date`
echo "$date *** running script" >> /tmp/eventhandlersI am running Naigos Core 3.5.1, on Ubuntu 14.04.2 LTS. I am thinking could the shell that I am using have anything to do with it?
Thanks