Page 3 of 4

Re: NRPE Check Differeneces

Posted: Tue Jan 28, 2014 11:22 am
by jdev
Correct.

Just double checked both my 64bit and 32bit systems. There's plenty of other stuff in syslog, just nothing about nagios/nrpe.

Re: NRPE Check Differeneces

Posted: Tue Jan 28, 2014 2:05 pm
by abrist
It really should be logging, is syslog/syslog-ng/rsyslog installed? If so, there is a good chance that the daemon is not running correctly.

Re: NRPE Check Differeneces

Posted: Wed Jan 29, 2014 12:46 pm
by jdev
Yes, rsyslog is installed, and working, as other events are showing up in logs. I tailed the log overnight and nothing shows up for nagios or nrpe.

Re: NRPE Check Differeneces

Posted: Wed Jan 29, 2014 2:49 pm
by lmiltchev
Try changing the following line in the nrpe.cfg on the client from this:

Code: Select all

command[check_init_service]=/usr/lib/nagios/plugins/check_init_service $ARG1$
to this:

Code: Select all

command[check_init_service]=sudo /usr/lib/nagios/plugins/check_init_service $ARG1$
Restart NRPE and try your check again. Did this fix the issue?

Re: NRPE Check Differeneces

Posted: Mon Feb 03, 2014 10:40 am
by jdev
lmiltchev wrote:Try changing the following line in the nrpe.cfg on the client from this:

Code: Select all

command[check_init_service]=/usr/lib/nagios/plugins/check_init_service $ARG1$
to this:

Code: Select all

command[check_init_service]=sudo /usr/lib/nagios/plugins/check_init_service $ARG1$
Restart NRPE and try your check again. Did this fix the issue?
I had a couple other things come up that I had to resolve, so, I wasn't able to get to this at the end of last week.

I had to clone the 64bit VM this morning and I was able to add it to nagios monitoring without issue, and ALL monitors are working on the CLONE without intervention on my end (including making the change you suggested here)

Re: NRPE Check Differeneces

Posted: Mon Feb 03, 2014 12:16 pm
by abrist
... so it is working now?

Re: NRPE Check Differeneces

Posted: Mon Feb 03, 2014 12:24 pm
by jdev
abrist wrote:... so it is working now?
No. Inexplicably I might add. Server1 still isn't working properly. Server2, which was cloned (in vmware) from Server1 several hours ago, is working without issue.

[edit 1232]

On a whim, I removed this host from nagios and removed the nagios-agent and associated packages from the host and re-installed nagios-agent and re-added to nagios. Still the same "NRPE: Unable to read output" error on SSH, Cron and syslog checks.

Re: NRPE Check Differeneces

Posted: Mon Feb 03, 2014 1:39 pm
by abrist
Is this an eval copu of XI, or are you a customer? If you are a customer, send an email to [email protected] and we can try to move to a remote session, as this question has pretty much exhausted what we an do through the forums.

Re: NRPE Check Differeneces

Posted: Tue Feb 04, 2014 7:17 am
by jdev
abrist wrote:Is this an eval copu of XI, or are you a customer? If you are a customer, send an email to [email protected] and we can try to move to a remote session, as this question has pretty much exhausted what we an do through the forums.
I am a customer, but, no need to email in.

I rebooted the server this morning, that fixed the issue.

Re: NRPE Check Differeneces

Posted: Tue Feb 04, 2014 10:47 am
by tmcdonald
All clear to close this one up then?