Nagios cant show value of mail queue
Posted: Fri Mar 27, 2015 2:30 am
Hi,
Today i have a problem that queue email c ant show from the nagios monitoring :
But when i using a nagios user from the host server this was running fine, so wear that on the other serve this scripts running just fine
As you can see on the serverA this script run with successfull, but in the other side on the serverB this script cant given the output.
The scripts that i was using definitely was same and not different.
Can anyone analyze this why this happening ?
And this is my scripts :
Thanks
Today i have a problem that queue email c ant show from the nagios monitoring :
Code: Select all
OK - Current queue is:
Code: Select all
dug:~# /usr/lib/nagios/plugins/check_nrpe -H serverA -c exim_queue
OK - Current queue is: 133
ciledug:~# /usr/lib/nagios/plugins/check_nrpe -H serverB -c exim_queue
OK - Current queue is: The scripts that i was using definitely was same and not different.
Can anyone analyze this why this happening ?
And this is my scripts :
Code: Select all
#!/bin/bash
#EXIM=/usr/sbin/exim
LIMIT=500
SUDO=/usr/bin/sudo
exim_queue=`$SUDO -u root exim -bpc`
if [[ "$exim_queue" -lt "$LIMIT" ]]; then
echo "OK - Current queue is: $exim_queue"
else
echo "CRITICAL - Current queue is: $exim_queue"
fi