check_mailq plugin

Ton Voon ton.voon at altinity.com
Thu Oct 26 23:18:53 CEST 2006


On 25 Oct 2006, at 13:57, Paul Houselander wrote:

> If I run
>
> /usr/lib/nagios/plugins/check_nrpe -H remote_server_name -c  
> check_mailq
>
> I always get back
>
> OK: mailq is empty

This is a bug in Nagios Plugins 1.4.3 with check_mailq. If the nagios  
user runs "mailq", it comes back with a permissions error. However,  
the plugin does not recognise this correctly and instead says the  
queue is empty. This has been fixed in the the newer 1.4.4 release.

Off the top of my head, on your server, you need to give the nagios  
user enough permissions to read /var/spool/mailq. You do this by  
adding the user into the mail group and chmod g+r /var/spool/mailq.  
Alternatively, you can do what Sjaak has recommended of running this  
plugin as root via sudo.

Warning: I think some system updates may change the permission of / 
var/spool/mailq back to g-r, but at least the plugin will now return  
an error correctly :)

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061026/29a5bcf0/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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