check_mailq
Ben Browning
benb at theriver.com
Fri Mar 11 17:47:24 CET 2005
Askar Ali wrote:
> hi list
>
> anyone got an example of
>
> Usage: check_mailq -w <warn> -c <crit> [-W <warn>] [-C <crit>] [-M
> <MTA>] [-t <timeout>] [-v verbose]
>
> MTA: qmail
>
> for both check_command and ccheckcommand.cfg files ?
Well then...
Qmail is a special case- you must be root to check the queue size.
Rather than running NRPE as root (yuck) I chose an elaborate but
functional workaround.
In utils.pm my QMAIL_QSTAT = "/usr/local/nrpe/qmail-qstat.sh"
That shell script contains "sudo /var/qmail/bin/qmail-qstat", and
/etc/sudoers is set up so the nagios user can run
/var/qmail/bin/qmail-qstat as root with no password.
Hope that helps!
~Ben
--
Ben Browning <benb at theriver.com>
The River Internet Access Co.
Senior System Administrator
1-877-88-RIVER http://www.theriver.com
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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