nrpe and check_mailq

Mikael Fridh frimik at gmail.com
Fri Aug 22 20:02:56 CEST 2008


On Fri, Aug 22, 2008 at 7:36 PM, Kevin Freels <kfreels at sendmail.com> wrote:
> Greetings!
>
> I'm having an odd issue with check_mailq and nrpe. When I run the
> check_mailq command natively (i.e., on the client), I get the proper
> response:
>
> testhost:/usr/local/nagios/libexec # ./check_mailq  -w 300 -c 500
> OK: mailq (01) is below threshold (300/500) | mailq = 01

You're root here, right?

> But if I run it remotely from the server:
>
> nagios# ./check_nrpe -H testhost -c check_mailq
>  | mailq =

If I remember correctly, you need to be root to run mailq on most
systems so you might need to give the nrpe user sudo access for it.

--
Fridh

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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