check_qmailq.pl or check_mailq
Jeremy C. Reed
reed at reedmedia.net
Tue Oct 9 19:00:50 CEST 2007
On Tue, 9 Oct 2007, zack kenton wrote:
> So I apologize for the duplicate posts, not sure why it was happening.
> However, this will be my last posting if in fact duplicate posts occur.
> Now to my problem; the standard check_mailq and the check_qmailq (found
> in the contrib directory of plugins) both run on the local hosts and
> return mail queue ok, no queued emails, etc...but when running from the
> nagios machine with nrpe, they both return errors, along the lines of:
> Error code 111 returned from /usr/bin/mailq or CRITICAL: Keine gueltigte
> Antwort (Zeile #1) von /var/qmail/bin/qmail-qstat (its a german plugin
> apparently) but translated means bad answer from line 1 in
> qmail-qstat...has anyone run into these same problems...and forgive the
> duplicates ahead of time...I wont post with this email after this
I use check_qmailq.pl. I run it with sudo like:
command[check_qmailq]=sudo /usr/lib/nagios/plugins/contrib/check_qmailq.pl
and my sudoers is setup so my nrpe user can run that specific script.
Jeremy C. Reed
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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