NRPE Check Differeneces

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jdev
Posts: 12
Joined: Fri Jan 24, 2014 7:03 am

Re: NRPE Check Differeneces

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE Check Differeneces

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jdev
Posts: 12
Joined: Fri Jan 24, 2014 7:03 am

Re: NRPE Check Differeneces

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE Check Differeneces

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jdev
Posts: 12
Joined: Fri Jan 24, 2014 7:03 am

Re: NRPE Check Differeneces

Post 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)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE Check Differeneces

Post by abrist »

... so it is working now?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jdev
Posts: 12
Joined: Fri Jan 24, 2014 7:03 am

Re: NRPE Check Differeneces

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE Check Differeneces

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jdev
Posts: 12
Joined: Fri Jan 24, 2014 7:03 am

Re: NRPE Check Differeneces

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE Check Differeneces

Post by tmcdonald »

All clear to close this one up then?
Former Nagios employee
Locked