check_mailq plugin

Paul Houselander housey at sme-ecom.co.uk
Wed Oct 25 14:57:57 CEST 2006


Hi

Ive just started using nagios and have it set up on a Cent 0S 4.3 box.

Seems to be working ok but ive ran into a problem where I want to check the
size of the mail queue on another server. Ive installed nrpe on the remote
server and checked its working by running on the nagios server:-

/usr/lib/nagios/plugins/check_nrpe -H remote_server_name -c check_load

I get back the load average from the remote machine.

If I run

/usr/lib/nagios/plugins/check_nrpe -H remote_server_name -c check_mailq

I always get back

OK: mailq is empty

Ive installed the plugin on the remote server and if I run locally I get

/usr/lib/nagios/plugins/check_mailq -w 100 -c 200
CRITICAL: mailq is 221 (threshold c = 200)|unsent=221;100;200;0

So I know the plugin is working. If I do check_mailq -h it mentions
something about the mailq command can only be accessed by root or a
TrustedUser - nrpe is running as nagios - does anyone know what I need to do
to the mailq command to allow it to work? I tried added nagios to the
/etc/mail/trusted-users file but this doesnt seem to have done the trick.

Any help appreciated.

Kind regards

Paul





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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