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
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
On 06/17/2012 03:47 PM, Axel Amigo Arnold wrote:
Hello, I am using nagios plugins 1.4.15 and I have a question about the
check_procs plugin.
If I execute it as *root*:
root@localhost[/usr/local/nagios/libexec]# ./check_procs -w 50 -c 100
PROCS CRITICAL: 126 processes
Now if I do it as
Hi Andreas, thank you for the response.
I already have the suid bit activated in the check_procs binary as you can
see here (I just copied the values of check_icmp)
-r-sr-sr-x
The user for this binary is root, and the group is nagios (just as
check_icmp), but I still can't access the total
On 06/18/2012 11:51 AM, Axel Amigo Arnold wrote:
Hi Andreas, thank you for the response.
I already have the suid bit activated in the check_procs binary as you can
see here (I just copied the values of check_icmp)
-r-sr-sr-x
The user for this binary is root, and the group is nagios (just
On 06/18/2012 06:30 AM, Andreas Ericsson wrote:
The user for this binary is root, and the group is nagios (just as
check_icmp), but I still can't access the total process list.
In the command definition, should I make something like this?