Problem with check_mailq script and nrpe

Marc Powell marc at ena.com
Wed Aug 10 22:36:35 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Johnny Stork
> Sent: Wednesday, August 10, 2005 2:26 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Problem with check_mailq script and nrpe
> 
> 
> I have s strange problem where I can run the following command on
SERVER2
> (192.168.101.12)
> 
> ./check_mailq -w 1 -c 5
> WARNING: mailq is 1 (threshold w = 1)|unsent=1;1;5;0
> 
> Which correctly shows 1 message in ther sendmail que.
> 
> SERVER2 is running NRPE with the following nrpe.cfg entry...
> 
> command[check_mailq]=/usr/local/nagios/libexec/check_mailq -w 2 -c 5
> 
> Nagios is actually running on SERVER4 (192.168.101.14). Below is the
> command I run and its output from SERVER4, the Nagios Server.
> 
> ./check_nrpe -H 192.168.101.12 -c check_mailq
> OK: mailq is empty|unsent=0;2;5;0
> 
> Which does not coincide with the output of check_mailq run directly on
> SERVER2?

Were you performing your tests on SERVER2 as the user that NRPE is
running as or as root? I'm almost certain that the mailqueue is not
readable by non-root users with a default install, especially with a
possibly SELinux enabled OS.

--
Marc


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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