*SOLVED*check_procs says user doesn't exist. Works manually
Posted: Tue Jun 11, 2013 3:22 pm
Hello,
I have an issue where Nagios is returning user does not exist on a command such as this...
define service{
use local-service
host_name mastervm1
service_description check_user_procs
check_command check_user_procs!1:!resque-1.24.1!sas
}
With command configured
# Check Procs User
define command{
command_name check_user_procs
command_line $USER1$/check_procs -w $ARG1$ -a $ARG2$ -u $ARG3$
}
When the command is run through Nagios it errors out returning no user sas.
If I run the command locally using the switches (for localhost rather than remote) it finds the user.
I'm wondering if this is because of nrpe.cfg having dont_blame_nrpe=0
I'm just confused because if it didn't allow arguments to pass, how did it know I was looking for username rather than the default status?
Sorry for the waste of time, I just want to confirm this before I have them change it in chef.
I have an issue where Nagios is returning user does not exist on a command such as this...
define service{
use local-service
host_name mastervm1
service_description check_user_procs
check_command check_user_procs!1:!resque-1.24.1!sas
}
With command configured
# Check Procs User
define command{
command_name check_user_procs
command_line $USER1$/check_procs -w $ARG1$ -a $ARG2$ -u $ARG3$
}
When the command is run through Nagios it errors out returning no user sas.
If I run the command locally using the switches (for localhost rather than remote) it finds the user.
I'm wondering if this is because of nrpe.cfg having dont_blame_nrpe=0
I'm just confused because if it didn't allow arguments to pass, how did it know I was looking for username rather than the default status?
Sorry for the waste of time, I just want to confirm this before I have them change it in chef.