check_nrpe

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

Re: check_nrpe

Post by nebblkshts »

I reloaded the service and I still have that error in the GUI.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nrpe

Post by hsmith »

What's the output of this wonderful command?

Code: Select all

grep -Pzo "(?s)^define\s?(host|service)?\s?{.*?(LYNCFE2).*?}" /usr/local/nagios/var/objects.cache | tac | grep -Pzo "(?s)^.?}.*?(LYNCFE2).*?\{" | tac
Former Nagios Employee.
me.
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

Re: check_nrpe

Post by nebblkshts »

administrator@NETSERVICES:/usr/lib/nagios/plugins$ sudo grep -Pzo "(?s)^define\s?(host|service)?\s?{.*?(LYNCFE2).*?}" /usr/local/nagios/var/objects.cache | tac | grep -Pzo "(?s)^.?}.*?(LYNCFE2).*?\{" | tac
[sudo] password for administrator:
grep: /usr/local/nagios/var/objects.cache: No such file or directory
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nrpe

Post by hsmith »

I apologize, I didn't take your different file paths into account.

Code: Select all

grep -Pzo "(?s)^define\s?(host|service)?\s?{.*?(LYNCFE2).*?}" /var/cache/nagios3/objects.cache | tac | grep -Pzo "(?s)^.?}.*?(LYNCFE2).*?\{" | tac
Former Nagios Employee.
me.
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

Re: check_nrpe

Post by nebblkshts »

Ok I found it and I am attaching the file out put
Last edited by rkennedy on Wed Dec 23, 2015 3:49 pm, edited 1 time in total.
Reason: deleted attached file as it contained credentials.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nrpe

Post by hsmith »

Is that the only service on that host having an issue?
Former Nagios Employee.
me.
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

Re: check_nrpe

Post by nebblkshts »

No that is just one I picked on hoping that if I fixed that one the others would be the same fix.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nrpe

Post by hsmith »

Is the issue spread across multiple hosts or just this one in particular? Can we perhaps see a screenshot of all of the errors? The way your check_nrpe is set up is making this kind of awkward to troubleshoot. Seeing all the errors would help us a lot.
Former Nagios Employee.
me.
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

Re: check_nrpe

Post by nebblkshts »

There is one Nagios server only and yes what is the easiest way to get all those to show up? I can only get one to show up at a time the GUI.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nrpe

Post by hsmith »

If you could just grab 3-4 of the errors involving NRPE and throw them in this post, that would be the easiest. I'm not so familiar with core 3, as it was before my time, but in 4.1.1, there is a problems button that you can select services under to show all of the issues. Looking at your screenshot in the first post, I would imagine the "Service Problems" button would do it.
Former Nagios Employee.
me.
Locked