LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-02-2008, 12:13 PM   #1
theamrit
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
NRPE: Unable to read output


Hi All,

The topic for this thread seems very common and when you search in google, you will get 100s of results. Unfortunatly for me, nothing worked and I was forced to post the question on this forum.

My Setup is, I am using GroundWork Professional 5.2.1 to monitor our environment. For check results, we use NRPE version 2.5.1. The setup is fine and we are recieving outputs from all the machines without any trouble.

The issue started when I thought to use the check_prtdiag plugin to monitor our Sun Hardware. After copying the plugin and config file to /usr/local/nagios/libexec directory on Sparc Solaris 10, I tried to execute the plugin locally and I recieved the correct output. The output is as follows:

[19:04:41][nagios@eur-client1:/usr/local/nagios/libexec]$./check_prtdiag

Unrecognized escape \s passed through at ./check_prtdiag line 276.
Unrecognized escape \s passed through at ./check_prtdiag line 276.
CRITICAL - Checked 23 components, found 1 errors : Fan 'PS0/FF_FAN' status is 'failed'|CPU0 ('MB/P0') status is 'on-line', Fan 'MB/P0/F0/RS' status is 'okay', Fan 'F1/RS' status is 'okay', Fan 'F3/RS' status is 'okay', Fan 'F0/RS' status is 'okay', Fan 'F2/RS' status is 'okay', Fan 'MB/P0/F1/RS' status is 'okay', Temperature sensor 'MB/T_ENC' status is 'okay', Temperature sensor 'MB/P0/T_CORE' status is 'okay', Temperature sensor 'PS0/FF_OT' status is 'okay', Voltage sensor 'MB/V_+1V5' status is 'okay', Voltage sensor 'PS0/FF_OV' status is 'okay', Voltage sensor 'MB/V_GBE_CORE' status is 'okay', Voltage sensor 'MB/BAT/V_BAT' status is 'okay', Voltage sensor 'MB/FF_POK' status is 'okay', Voltage sensor 'MB/V_GBE_+2V5' status is 'okay', Voltage sensor 'PS0/P_PWR' status is 'okay', Voltage sensor 'MB/V_VTT' status is 'okay', Voltage sensor 'MB/V_VCCTM' status is 'okay', Voltage sensor 'MB/P0/V_CORE' status is 'okay', Voltage sensor 'PS0/FF_UV' status is 'okay', Voltage sensor 'MB/V_+2V5' status is 'okay'



Then I logged in to Groundwork Server (RHEL5) and from there I ran the following command:

#./check_nrpe -t 60 -n -H client1 -c check_prtdiag

I recieved, NRPE: Unable to read output.

The I started searching google as I had allready checked the permissions. The permissions are as follows for your reference:

[19:04:55][nagios@eur-client1:/usr/local/nagios/libexec]$ls -la check_prtdiag
-rwxr-xr-x 1 nagios nagios 8854 Dec 2 18:12 check_prtdiag

[19:06:24][nagios@eur-client1:/usr/local/nagios]$ls -l
total 10
drwxr-xr-x 2 nagios nagios 512 Nov 10 16:28 bin
drwxr-xr-x 2 nagios nagios 512 Nov 28 14:53 etc
drwxr-xr-x 2 nagios nagios 512 Oct 29 14:23 lib
drwxr-xr-x 2 nagios nagios 2048 Dec 2 17:52 libexec

[19:06:49][nagios@eur-client1:/usr/local]$ls -la |grep nagios
drwxr-xr-x 8 nagios nagios 512 Nov 27 14:42 nagios

Also, according to nrpe.cfg file, the command definition is as follows:

command[check_prtdiag]=/usr/local/nagios/libexec/check_prtdiag

Apart from trying all this, I thought why not assign the prtdiag command SUID bit and then check. I did that also, but failed.

Now, after checking as this, I have no clue what else could be the issue. I have checked with the person named Sibastien who has written this plugin and he says the output returned by the plugin is correct and it should be parsed easily to the nrpe if there are no permissions issue. So, I have no answers now.

Please help......
 
Old 12-03-2008, 07:37 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Code:
Unrecognized escape \s passed through at ./check_prtdiag line 276.
Unrecognized escape \s passed through at ./check_prtdiag line 276.
This is what is causing nrpe not to be able to read the output.
 
Old 12-03-2008, 12:09 PM   #3
theamrit
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the response...

Well, This is what I first thought could be the issue but when I send an email to the Author of the Script with the concern, he said that this is harmless. According to him, NRPE can still read the output.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios Event Handler not running - NRPE: Unable to read output notque Linux - Software 7 04-05-2013 06:27 AM
NRPE: Unable to read output theking2 Linux - Software 4 08-04-2010 04:59 PM
raidctl - how to read output ? czezz Solaris / OpenSolaris 9 03-24-2008 08:43 AM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM
Read the output from a pipe with bash ? fluppi Linux - Software 3 01-13-2004 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration