Nagios Redundancy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: Nagios Redundancy

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Redundancy

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
samuel
Posts: 55
Joined: Wed Jan 16, 2013 4:44 pm

Re: Nagios Redundancy

Post by samuel »

This can be closed. The last post fixed the problem.
Locked