Need Immediate Email Notifications
-
MBowman325
- Posts: 14
- Joined: Fri Aug 09, 2013 3:31 pm
Re: Need Immediate Email Notifications
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.
-
praveen.ks
- Posts: 41
- Joined: Wed May 29, 2013 5:35 pm
Re: Need Immediate Email Notifications
The host in a HARD down state
Re: Need Immediate Email Notifications
Any errors in the maillog?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
praveen.ks
- Posts: 41
- Joined: Wed May 29, 2013 5:35 pm
Re: Need Immediate Email Notifications
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
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
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)?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.