I finally got it working but it was not that easy. As I am using CentOS 5,
by default the requiretty value in the /etc/sudoers file is activated, so I
had to edit it like this:
#Defaultsrequiretty
nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_procs
And the command in the .cfg file
Solved!
Just changed
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10%
-p /dev/root
to:
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
nagios user has problems to access to /var/named/chroot/var/run/dbus but
now works well.
Ernesto Sanchez
I finally got it working but it was not that easy. As I am using CentOS 5,
by default the requiretty value in the /etc/sudoers file is activated, so
I
had to edit it like this:
#Defaultsrequiretty
nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_procs
And the command in the
Hello, I've a server with nrpe and the following commands in
/usr/local/nagios/etc/nrpe.cfg :
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c
30,25,20
On Tue, Jun 19, 2012 at 1:06 PM, Ernesto Sanchez e.sanc...@libelium.comwrote:
Hello, I've a server with nrpe and the following commands in
/usr/local/nagios/etc/nrpe.cfg :
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
Check in /var/log/messages (or wherever you are logging to) on the server that
should be running check_hda1 to ensure that the nagios node is able to
communicate via nrpe.
Also check you can run /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p
/dev/root on the nrpe node.
Is it owned by