Paging and Email

Brandstätter Sigmund Sigmund.Brandstaetter at ing-diba.at
Sun Feb 3 02:28:08 CET 2008


If you suspect mails in the mailq, check the /var/spool/clientmqueue/ directory of your server

while mailq is the correct command, you will not get the right output if you do not run it as the user that nagios runs as.

so, to be sure, check /var/spool/clientmqueue/ and if there are mails in that directory, simply write a small script to delete the mails that where sent by nagios (unless the only application that sends mail on that server is nagiios and you are sure that you can delete all mails in teh queue)

but usually, there shouldnt be mails in the queue as Mark said already, only if you have stopped sendmail. the moment you start it, they will go out.

cheers
Sigi



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- 
> bounces at lists.sourceforge.net] On Behalf Of Shah, Maunir
> Sent: Friday, January 25, 2008 1:09 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Paging and Email
> 
> How do I blow away old queue paging/email messages for Nagios?  The
reason
> I ask is that our host losses connectivity and Nagios keeps on
performing
> the checks and when I reboot the host, Nagios starts paging and
emailing
> out the queued messages.  We are running Nagios as a Solaris Zone.

Nagios doesn't queue notifications; they're all sent in real time.
Possible queuing of notifications is handled by whatever notification system you are using (i.e. sendmail, postfix, smstools, etc). Running the 'mailq' command will show you current sendmail and postfix queues.
Inspection of their log files will show you when the notifications were received by the mailer from nagios and when they were forwarded on to you by the mailer.

--
Marc


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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