Page 2 of 2

Re: Nagios Redundancy

Posted: Mon Mar 04, 2013 1:26 pm
by samuel
I keep getting this problem

Code: Select all

# cat enable_notifications
#!/bin/sh
# This is a sample shell script showing how you can submit the ENABLE_NOTIFICATIONS command
# to Nagios.  Adjust variables to fit your environment as necessary.

now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'

/bin/printf "[%lu] ENABLE_NOTIFICATIONS" $now > $commandfile
# ./enable_notifications
./enable_notifications: line 8: /bin/printf: No such file or directory

Re: Nagios Redundancy

Posted: Mon Mar 04, 2013 1:43 pm
by scottwilkerson
at the command line run

Code: Select all

which printf
Then edit the script to use the path you have to your printf

Re: Nagios Redundancy

Posted: Tue May 21, 2013 11:35 am
by samuel
This can be closed. The last post fixed the problem.