Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Just got Nagios up and running (in a matter of minutes ), with SNMP trapping enabled with no issues but I have command_line functionality question. We're not permitted to install sendmail, etc. on our machines so I need to run a simple system command to create a file in a directory. I thought this could be achieved by changing the notify-service-by-email comand_line to something like "/bin/echo alert > /sweep_dir/testfile.txt" but it doesn't seem to execute when the traps are received so I'm sure I'm missing something in the setup. What am I missing here?
In the host notification page, I'm seeing the notification is logged and using the notify-service-by-email command: