[Nagiosplug-help] using check_nrpe and check_mailq
Mitchell K. Smith
mksmith at pa.eplus.com
Thu Mar 27 09:34:15 CET 2003
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
More information about the Help
mailing list