Hi,
I have created my own shell script and want to schedule the same through Nagios as notification. I have added proper entries in command.cfg and templates.cfg but still the things are not working.
Can you please suggest how I can make that notification run ?
Normally it is good practice to keep all of your check/notify scripts in one place, generally the nagios/libexec folder. If you look at other scripts in there you will see they are generally owned by the nagios user & group, which have permissions to run the script, like
-rwxr-xr-x 1 nagios nagios …
Are the permissions on test_nagios.sh as above?