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/eventhandlers
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