[Nagios-users] check_mailq plugin via nrpe Error code 78
Hi, I do have a problem checking my mailservers mailq from my nagios server. I checked the message from P. Houseland a few day ago; he had nearly the same problem. His solution didden't solve my problem. The servers are both centos 4.4, the nagios software is nagios-2.5-1.el4.rf nagios-plugins-1.4.4-1.el4.rf nagios-plugins-nrpe-2.5.1-1.el4.rf The check_mailq works localy at the mailserver, but check_nrpe -H mail -c check_mailq from the nagios server fails with this message: CRITICAL: Error code 78 returned from /usr/bin/mailq I added the mailservers nagiosuser to the mailgroup, so he should be able to read the /var/spool/mqueue, but the error persists. Any ideas what to look for? Thanks and best regards Götz Reinicke -- Götz Reinicke IT Koordinator Tel. +49 7141 969-420 Fax +49 7141 969 55-420 [EMAIL PROTECTED] Filmakademie Baden-Württemberg Mathildenstr. 20 71638 Ludwigsburg www.filmakademie.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_mailq plugin
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_mailqI always get backOK: mailq is emptyThis 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 :)Tonhttp://www.altinity.comT: +44 (0)870 787 9243F: +44 (0)845 280 1725Skype: tonvoon - 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=lnkkid=120709bid=263057dat=121642___ Nagios-users mailing list Nagios-users@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
[Nagios-users] check_mailq plugin
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=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_mailq plugin
Hello Paul check_nrpe will running as nagios user. To check the mailq you need to be root. add this line with visudo: nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_mailq I'm running on Fedoracore4 Good luck Sjaak Paul Houselander wrote: 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=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@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 - 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=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@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