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