check_nrpe problem as user


#1

Hi All,
I have nagios 1.2 running on my server server05 and it also has nrpe running as well. Everything t has been running fine up until last week and I am just seeing some odd behaviors. My problem is check_nrpe -H 192.168.1.2 -c check_proc -a naveed TEST always returns a response OK as a user naveed, but I do not even have any process by name TEST. I ran this test as root and got a correct response. Does anyone have any idea what could be a problem here ?

Here is the user response
server05:~> /usr/local/nagios/libexec/check_nrpe -H 192.168.1.2 -c check_proc -a naveed TEST
PROCS OK: 2 processes with UID = 1001 (naveed), args ‘TEST’

Here is the root response
server05:~ # /usr/local/nagios/libexec/check_nrpe -H 192.168.1.2 -c check_proc -a naveed TEST
PROCS CRITICAL: 0 processes with UID = 1001 (naveed), args ‘TEST’

Regards,
Naveed


#2

I ran into some problems when file owner and file group was root and not the nagiosadmin. Have you checked file permission in your libexec dir?