Page 2 of 2

Re: check_procs says user doesn't exist. Works manually

Posted: Thu Jun 13, 2013 4:37 pm
by puppynut5
Thank you so much... Trying it now.

One thing though, in the command_line portion I called it as check_procs because I'm still using the same check file (check_procs) as before I'm just using different options on it than is currently defined under the actual check_local_procs one.

But thanks again... Will hopefully let you know soon if it works.

Re: check_procs says user doesn't exist. Works manually

Posted: Thu Jun 13, 2013 4:38 pm
by puppynut5
Oh wait... Never mind. I see what you did. In the command_line it still is check_procs. But once that's done the command always needs to be called as check_user_procs. Sorry :)

Re: check_procs says user doesn't exist. Works manually

Posted: Thu Jun 13, 2013 4:46 pm
by abrist
No problem, let us know how it turns out.

Re: check_procs says user doesn't exist. Works manually

Posted: Thu Jun 13, 2013 4:49 pm
by puppynut5
I'm now getting this...

CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

/var/log/messages on remote host contained this.

Jun 13 14:40:16 nagiostest xinetd[1467]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
Jun 13 14:40:16 nagiostest xinetd[1467]: Started working: 1 available service
Jun 13 14:43:59 nagiostest xinetd[1467]: START: nrpe pid=1472 from=::ffff:10.11.12.49
Jun 13 14:43:59 nagiostest nrpe[1472]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Jun 13 14:43:59 nagiostest nrpe[1472]: Error: Request contained command arguments!
Jun 13 14:43:59 nagiostest nrpe[1472]: Client request was invalid, bailing out...
Jun 13 14:43:59 nagiostest xinetd[1467]: EXIT: nrpe status=0 pid=1472 duration=0(sec)

which kind of confuses me because I have dont_blame_nrpe set to 1.

However, it is a different error message than before.

Re: check_procs says user doesn't exist. Works manually

Posted: Thu Jun 13, 2013 4:52 pm
by puppynut5
Could it be because the only command I have setup as check_user_procs is with nrpe? Do I need to setup a command for check_user_procs that does NOT have the NRPE part in there? Or is that not needed.

Re: check_procs says user doesn't exist. Works manually

Posted: Thu Jun 13, 2013 4:54 pm
by abrist
Did you restart nrpe after making that change? (run all of these commands on the remote host)

Code: Select all

service xinetd restart
Are you loading a different config file?

Code: Select all

ps -aef | grep nrpe
is there more than one config?

Code: Select all

find / -name nrpe.cfg

Re: check_procs says user doesn't exist. Works manually

Posted: Thu Jun 13, 2013 5:01 pm
by puppynut5
GOT IT!!!! NRPE wasn't compiled with --enable-command-args

Thank you so much for your help though. i honestly wouldn't have gotten it without your help.

My issue is definitely resolved now. Thanks again...

Re: *SOLVED*check_procs says user doesn't exist. Works manua

Posted: Fri Jun 14, 2013 12:13 pm
by sreinhardt
Awesome! Thanks for letting us know!