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:
command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$
command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$
Running as user nagios from the central server.
One works fine:
-sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c check_all_disk -a 20%
10%
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%);
the other gives me this:
-sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c check_all_disk -a 20%
10%
DISK CRITICAL - /sys is not accessible: Permission denied
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:
[nagios@server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10%
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%);
[nagios@server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10%
DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100%
inode=99%); /boot 387 MB (84% inode=99%);
Multiple other nrpe commands running on both; this is the only thing they're
having problems with.
/sys is user-readable in both. Logs show nothing.
I've run out of ideas. Pointers in the right direction appreciated...
Tim
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Nagios-users mailing list
Nagios-users@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