[Nagiosplug-help] Clarification- using check_nrpe and check_mailq

Mitchell K. Smith mksmith at pa.eplus.com
Thu Mar 27 10:14:03 CET 2003


I should have been more clear on two points.

OS is RH Linux 7.3 on the Nagios server and 8.0 on the remote host.

By changing group permissions on the /var/spool/mqueue directory to r x, I am able to get check_mailq to run as the Nagios user. The problem occurrs when trying to use nrpe from the Nagios server.

# ./check_nrpe -H 172.31.11.10 -c check_mail_queue
uires special privileges, e.g., root or TrustedUser.
Use of uninitialized value in numeric eq (==) at /usr/local/nagios/libexec/check_mailq line 104.
Use of uninitialized value in concatenation (.) or string at /usr/local/nagios/libexec/check_mailq line 110.
Use of uninitialized value in concatenation (.) or string at /usr/local/nagios/libexec/check_mailq line 110.


-----Original Message-----
From: Mitchell K. Smith 
Sent: Thursday, March 27, 2003 12:33 PM
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] using check_nrpe and check_mailq


Greetings.

I am attempting to check the mail queue on a remote server.

check_mailq (nagios-plugins 1.3.0) 1.1
NRPE Plugin for Nagios Version: 1.8

If I run check_mailq on the remote host as user nagios I get the following error:
$ ./check_mailq -w 1 -c 2
Program mode requires special privileges, e.g., root or TrustedUser.
Use of uninitialized value in numeric eq (==) at ./check_mailq line 104.
Use of uninitialized value in concatenation (.) or string at ./check_mailq line 110.
Use of uninitialized value in concatenation (.) or string at ./check_mailq line 110.
 | mailq = 

If I run as root, it works.
# ./check_mailq -w 1 -c 2
OK: mailq is empty | mailq = 0

I would rather not have to run the plugins as root on the remote host. Tried giving the mail group r,x permissions and making nagios a member of the mail group. That didn't help.

Can someone recommend the best way to deal with this?
Thanks for your help.


Mitchell K. Smith


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null




More information about the Help mailing list