Page 10 of 12
Re: check_nrpe
Posted: Wed Dec 23, 2015 12:45 pm
by nebblkshts
I reloaded the service and I still have that error in the GUI.
Re: check_nrpe
Posted: Wed Dec 23, 2015 1:06 pm
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
Re: check_nrpe
Posted: Wed Dec 23, 2015 1:14 pm
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
Re: check_nrpe
Posted: Wed Dec 23, 2015 1:18 pm
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
Re: check_nrpe
Posted: Wed Dec 23, 2015 1:49 pm
by nebblkshts
Ok I found it and I am attaching the file out put
Re: check_nrpe
Posted: Wed Dec 23, 2015 1:58 pm
by hsmith
Is that the only service on that host having an issue?
Re: check_nrpe
Posted: Wed Dec 23, 2015 2:06 pm
by nebblkshts
No that is just one I picked on hoping that if I fixed that one the others would be the same fix.
Re: check_nrpe
Posted: Wed Dec 23, 2015 2:12 pm
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.
Re: check_nrpe
Posted: Wed Dec 23, 2015 2:29 pm
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.
Re: check_nrpe
Posted: Wed Dec 23, 2015 2:34 pm
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.