check_disk '/sys not accessable'
Sigmund Brandstaetter
sb at maniladev.com
Thu Mar 8 22:11:56 CET 2012
Tim,
How about SELinux, is it maybe on only on the one that is making the
problem?
Cheers
Sigmund
On 3/9/2012 00:49, Boyer, Timothy A. wrote:
> 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 at 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 at 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 at 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
--
---------------------
Sigmund Brandstaetter
Check my Blog
Live from Manila
http://maniladev.com
---------------------
------------------------------------------------------------------------------
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 at 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
More information about the Users
mailing list