[Nagiosplug-help] NRPE: Unable to read output

Brian Tomjack btomjack at suretytek.com
Thu Feb 19 22:45:56 CET 2009


Marc thanks for more ideas,

The requiretty was in there, i have hashed that item out.

modified the nrpe config to be
command[check_mailq]="/usr/bin/sudo 
/usr/local/nagios/libexec/check_mailq -w 120 -c 175"

locally the command still works. when it is forced through nrpe i still 
get a unable to read output error unfortunately.

so i tried the addition of the 2>&1 to the end. appending that in the 
nrpe config and reloading nrpe still gave a unable to read output error 
on the nagios side. locally when executing with the 2>&1 on the end 
there was no error. the console output:
sudo /usr/local/nagios/libexec/check_mailq -w 120 -c 175 2>&1
OK: mailq (119) is below threshold (120/175)|unsent=119;120;175;0

which is the same output as when the 2>&1 is left off.


Im beginning to think that maybe nrpe just does not want to watch my 
mail queue on this server heh.


thanks,

Brian


Marc Powell wrote:
> On Feb 19, 2009, at 11:58 AM, Brian Tomjack wrote:
> 
>>>> on the remote host, in the nrpe config:
>>>> command[check_mailq]="sudo /usr/local/nagios/libexec/check_mailq -w
>>>> 120 -c 175"
> 
> Specify the full path to sudo here. Also verify that you do not have  
> 'requiretty' in the sudoers file (visudo)
> 
> Barring that, try changing your check command to be the following and  
> see if you get an error shown in the plugin output.
> 
> command[check_mailq]="sudo /usr/local/nagios/libexec/check_mailq -w  
> 120 -c 175 2>&1"
> 
> --
> Marc
> 
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> 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