cleaning out nagios pending messages to be sent

Marc Powell marc at ena.com
Thu Jul 28 19:00:46 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Jim B
> Sent: Thursday, July 28, 2005 11:05 AM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] cleaning out nagios pending messages to be
> sent
> 
> I have looked in the mail ques for postfix and sendmail; I do not exim
> installed, although I am not sure which mta nagios is using but I keep
> getting old messages (send to me via email). Before the messages go to
the
> mailques where are they in nagios so I can delete them?

They aren't held by nagios at all. They're sent to your local MTA in
real time using your designated host/service notify-by-email command. If
your mta doesn't respond they're just dropped. The only possible
exception is if your designated host/service notify-by-email commands
are still running for those old messages. Use ps to check. This is
_extremely_ unlikely and they're almost certainly in your MTA's mail
queue as nagios has built-in timeouts to kill those outstanding
notification processes (notification_timeout=30).

> 
> Since the ques are empty but I keep getting old messages it would seem
> that nagios has some old alerts that it is sending to my mail ques but
I
> need to delete them before they get to the que beccuase once they go
to
> the que they are sent out via smtp before I can not stop them.

Just to clarify, when you say they are old, are you indicating that the
timestamp in the body of the e-mail is from some time in the past or
you're getting alerts for services that were down but have now recovered
and the timestamp is recent.

--
Marc


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list