<div dir="ltr">I'm trying to use check_nrpe with check_smartmon but I'm getting NRPE: Unable to read output at the Nagios Server. <b>All other check plugins like check_load and check_procs work fine.<br></b><br><b>I'm running the following command from my nagios server to the remote host:</b><br>
<i>./check_nrpe -H <a href="http://remotehost.domain.com">remotehost.domain.com</a> -c check_smartmon</i><br><br><b>and the out put is the following:</b><br><i>NRPE: Unable to read output</i><br><br><b>This is what the remote host logs display:</b><br>
<i>Aug 12 11:16:13 </i>remotehost<i> xinetd[7151]: START: nrpe pid=7986 from=<a href="http://198.162.1.1">198.162.1.1</a> <b><- Nagios Server IP Address</b><br>Aug 12 11:16:13 </i>remotehost<i> nrpe[7986]: INFO: SSL/TLS initialized. All network traffic will be encrypted.<br>
Aug 12 11:16:13 </i>remotehost<i> xinetd[7151]: EXIT: nrpe status=0 pid=7986 duration=0(sec)</i><br><br><br><b>When I use the check_smartmon directly in the remote machine as the user nagios and using sudo it works fine:</b><br>
[nagios@remotehost plugins]$  sudo /usr/lib64/nagios/plugins/check_smartmon ata -d /dev/sda<br>OK: device is functional and stable (temperature: 33)<br><br><b>If I change the only_from line on  /etc/xinetd.d/nrpe file to <a href="http://127.0.0.1">127.0.0.1</a> and I run the following from the remote host I get prompted by a password:</b><br>
<i>[nagios@remotehost plugins]$ sudo /usr/lib64/nagios/plugins/check_nrpe -h <a href="http://remotehost.domain.com.latpro.com">remotehost.domain.com.latpro.com</a> -c check_smartmon<br>Password:<br></i><br><b>The permissions on the device are the following:</b><br>
<i>[nagios@remotehost plugins]$ ls -lah /dev/sda<br>brw-rw---- 1 root disk 8, 0 Jan  8  2008 /dev/sda</i><br><br><b>The disk group also has nagios:</b><br>disk:x:6:root,nagios<br><br><br><b>And again the other plugins work fine when they are invoked from the Nagios server. Like the following:</b><br>
[nagios@nagios-server plugins]$ ./check_nrpe -H <a href="http://remotehost.domain.com">remotehost.domain.com</a> -c check_load<br>OK - load average: 2.14, 2.44, 2.72|load1=2.140;15.000;30.000;0; load5=2.440;10.000;25.000;0; load15=2.720;5.000;20.000;0;<br>
<br><b>I added the following line on my remotehost to the /etc/sudoers:</b><br>nagios    ALL=(ALL) NOPASSWD: /usr/sbin/smartctl,/usr/lib64/nagios/plugins/check_nrpe,/usr/lib64/nagios/plugins/check_smartmon<br><br>I also try running the NRPE as adeamon and not with xinetd and I had the same issue.<br>
<br>Any inputs?<br><br><br><br><br><br><br><br><br><br><br><br></div>