Re: Email notification from Nagios
Posted: Fri May 23, 2014 7:29 am
Thanks all for the replies. I found out that I got email from nagios on 14 may but after that no email. I had setup postfix and it was not working so I stopped postfix ,,after stopping it the mail log were like below: But nothing is updating the mail havent been sent to my mailbox even there are services which are critical:
and nagios logs says this
I did (using my email address) but no email came.
when I restarted started and stopped the postfix it agin gave me same error "Connection timed out"
Code: Select all
May 23 11:51:58 EIS0202 postfix/qmgr[7661]: 475291003B0: from=<>, size=2995, nrcpt=1 (queue active)
May 23 11:51:58 EIS02 postfix/qmgr[7661]: 57A70100276: from=<[email protected]>, size=689, nrcpt=1 (queue active)
May 23 11:51:58 EIS02 postfix/qmgr[7661]: 6877D100333: from=<[email protected]>, size=974, nrcpt=1 (queue active)
May 23 11:51:58 EIS02 postfix/qmgr[7661]: 6B3E71002D0: from=<[email protected]>, size=689, nrcpt=1 (queue active)
May 23 11:51:58 EIS02 postfix/local[7664]: 475291003B0: to=<[email protected]>, relay=local, delay=21639, delays=21639/0.01/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 11:51:58 EIS02 postfix/qmgr[7661]: 475291003B0: removed
May 23 11:52:09 EIS02 postfix/postfix-script[7767]: stopping the Postfix mail system
May 23 11:52:09 EIS02 postfix/master[7658]: terminating on signal 15Code: Select all
[1400846545] SERVICE ALERT: DEISMSW03;fans;CRITICAL;SOFT;3;OK: fan1 unit1 normal. OK: fan2 unit1 normal. OK: fan1 unit2 normal. OK: fan2 unit2 normal. OK: fan1 unit3 normal. OK: fan2 unit3 normal. CRITICAL: fan1 unit4 critical! Please shutdown the unit! CRITICAL: fan2 unit4 critical! Please shutdown the unit!
[1400846604] SERVICE ALERT: DEISMSW03;fans;CRITICAL;HARD;4;OK: fan1 unit1 normal. OK: fan2 unit1 normal. OK: fan1 unit2 normal. OK: fan2 unit2 normal. OK: fan1 unit3 normal. OK: fan2 unit3 normal. CRITICAL: fan1 unit4 critical! Please shutdown the unit! CRITICAL: fan2 unit4 critical! Please shutdown the unit!
[1400847303] HOST NOTIFICATION: nagiosadmin;SRA01;DOWN;notify-host-by-email;PING CRITICAL - Packet loss = 100%Code: Select all
echo "test" | mail -s "test mail" [email protected]when I restarted started and stopped the postfix it agin gave me same error "Connection timed out"