Page 2 of 2

Re: Need Immediate Email Notifications

Posted: Tue Aug 13, 2013 11:13 am
by MBowman325
You can also use the is_volatile option. Depending on how your environment is set up, I'd go for creating a new service template in the template.cfg. If everything is the same (check times, notification times, contacts) as another pre-exisintg check, you can configure it with the "use" option and just add the "is_volatile 1" to it. Or create a whole new service definition. The is_volatile essentially triggers a hard state immediate. It does not resend notifications though.

Re: Need Immediate Email Notifications

Posted: Tue Aug 13, 2013 11:20 am
by praveen.ks
The host in a HARD down state

Re: Need Immediate Email Notifications

Posted: Tue Aug 13, 2013 11:53 am
by abrist
Any errors in the maillog?

Re: Need Immediate Email Notifications

Posted: Tue Aug 13, 2013 12:05 pm
by praveen.ks
Check the log, am not able to find the errors




Aug 13 19:48:42 ns postfix/qmgr[3024]: 141C2272803B: removed
Aug 13 22:28:37 ns sendmail[8823]: r7DGwbnt008823: from=nagios, size=308, class=0, nrcpts=1, msgid=<201308131658.r7DGwbnt008823@ns>, relay=nagios@localhost
Aug 13 22:28:37 ns postfix/smtpd[8826]: connect from localhost.localdomain[127.0.0.1]
Aug 13 22:28:37 ns postfix/smtpd[8826]: 2ADD4272803B: client=localhost.localdomain[127.0.0.1]
Aug 13 22:28:37 ns postfix/cleanup[8829]: 2ADD4272803B: message-id=<201308131658.r7DGwbnt008823@ns>
Aug 13 22:28:37 ns postfix/qmgr[3024]: 2ADD4272803B: from=<[email protected]>, size=757, nrcpt=1 (queue active)
Aug 13 22:28:37 ns sendmail[8823]: r7DGwbnt008823: to=[email protected], ctladdr=nagios (500/500), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30308, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 2ADD4272803B)
Aug 13 22:28:37 ns postfix/smtpd[8826]: disconnect from localhost.localdomain[127.0.0.1]
Aug 13 22:28:40 ns postfix/smtp[8830]: 2ADD4272803B: to=<[email protected]>, relay=alt1.aspmx.l.google.com[74.125.142.27]:25, delay=3, delays=0.05/0.01/1.2/1.8, dsn=2.0.0, status=sent (250 2.0.0 OK 1376413170 lq6si6177308icb.50 - gsmtp)
Aug 13 22:28:40 ns postfix/qmgr[3024]: 2ADD4272803B: removed

Re: Need Immediate Email Notifications

Posted: Tue Aug 13, 2013 12:28 pm
by abrist
Looks like mail is sending without a problem. Have you looked further back into the log for errors that would coincide with nagios object failures (HARD down states)?