Nagios NRPE: Unable to read output

Marquez, Quentin Quentin.Marquez at experian.com
Fri Mar 26 15:57:19 CET 2010


Hi Alen,

 

I don't know much about this plugin, but it looks like your command
requires root permission.

Thus you would need to setup a sudo command to run
/usr/local/nagios/libexec/tsmonitor db

Then use your new sudo command in your nrpe.cfg :

command[tsmonitor_db]=sudo /usr/local/nagios/libexec/tsmonitor db

 

Cheers,

Quentin

 

From: Grizonic Alen [mailto:Alen.Grizonic at comparex.si] 
Sent: 26 March 2010 15:17
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Nagios NRPE: Unable to read output

 

Hello!

 

I know that this post is nothing new, but I still didn't find any
solution for it.

 

I am working on a AIX 5.3 machine with NRPE running under inetd.

 

On the local AIX machine the command for TSM works fine ...

 

# ./tsmonitor db

db - database utilization 0%, OK

 

But when I start if from the Nagios server ... 

 

# ./check_nrpe -n -t 60 -H 172.21.100.121 -c tsmonitor_db

NRPE: Unable to read output

 

or from the AIX machine with the NRPE I get ...

 

# ./check_nrpe -n -t 60 -H localhost -c tsmonitor_db

NRPE: Unable to read output

 

The nrpe.cfg file is properly configured with the commands

 

command[tsmonitor_db]=/usr/local/nagios/libexec/tsmonitor db

command[check_disk/]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p
/

 

Where check_disk/ works fine, but tsmonitor_db NOT!

 

Any suggestions?

 

 

Best regards, 

 

Alen


This e-mail has come from Experian, the only business to have been twice named the UK's 'Business of the Year’ 

===================================================================================
Information in this e-mail and any attachments is confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other binding commitment through the use of this electronic communication unless it is issued in accordance with the Experian Limited standard terms and conditions of purchase or other express written agreement between Experian Limited and the recipient. 
Although Experian has taken reasonable steps to ensure that this communication and any attachments are free from computer virus, you are advised to take your own steps to ensure that they are actually virus free. 
Companies Act information:
Registered name: Experian Limited 
Registered office: Landmark House, Experian Way, NG2 Business Park, Nottingham, NG80 1ZZ, United Kingdom
Place of registration: England and Wales 
Registered number: 653331

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100326/73c8b1cb/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
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