<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Nagios 3.3.1.  Two identical RHEL6.1 systems, and all I’m trying to do is get a total disk space reading.  So nrpe is running on both, with the identical command in nrpe.cfg:</div>
<div> </div>
<div>command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$</div>
<div>command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$</div>
<div> </div>
<div>Running as user nagios from the central server.</div>
<div> </div>
<div>One works fine:</div>
<div> </div>
<div>-sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c check_all_disk -a 20% 10%</div>
<div>DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); </div>
<div> </div>
<div>the other gives me this:</div>
<div> </div>
<div>-sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c check_all_disk -a 20% 10%</div>
<div>DISK CRITICAL - /sys is not accessible: Permission denied</div>
<div> </div>
<div>Identical versions of nrpe (2.12); a diff on check_disk shows they’re both identical; both commands work correctly locally run as user Nagios:</div>
<div> </div>
<div>[nagios@server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10%</div>
<div>DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); </div>
<div> </div>
<div>[nagios@server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10%</div>
<div>DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% inode=99%); /boot 387 MB (84% inode=99%);</div>
<div> </div>
<div> Multiple other nrpe commands running on both; this is the only thing they’re having problems with.</div>
<div> </div>
<div>/sys is user-readable in both.  Logs show nothing.</div>
<div> </div>
<div>I’ve run out of ideas.  Pointers in the right direction appreciated…</div>
<div> </div>
<div> </div>
<div>Tim</div>
<div> </div>
<div> </div>
</font>
</body>
</html>