nagios show incorrect info
hello,
i have this script in my server
num=$(lsof | grep peykasa-mail-monitor.jar | wc -l)
if [[ "$num" == "2" ]]
then
echo "MailMonitor is UP"
exit 0
elif [[ "$num" == "0" ]]
then
echo "MailMonitor is DOWN"
exit 2
else
echo "UNKOWN"
exit 1
fi
when i run this in server it shows "MailMonitor is UP" but nagios show "MailMonitor is DOWN" ,, i also checked by check_nrpe ..
any suggestion..
|