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...... |
Code:
Unrecognized escape \s passed through at ./check_prtdiag line 276. |
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. |
All times are GMT -5. The time now is 08:14 AM. |