Interesting Situation...
Re: Interesting Situation...
Sounds good, rkymtnhigh! Let us know if you get stuck on something. We will keep this topic open for the time being. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
rkymtnhigh
- Posts: 95
- Joined: Tue May 12, 2015 11:53 am
Re: Interesting Situation...
I have managed to get both Nagios installs set up as hosts and reporting via NRPE basic system details.
My custom command seems to fail, so I went back to testing NRPE on each CentOS box.
When I run check_nrpe -H localhost now I'm getting
Where as before I was getting:
My checks are still coming back green, so maybe something isn't wrong? But my custom command returns nothing for output.
Any help is greatly appreciated!
My custom command seems to fail, so I went back to testing NRPE on each CentOS box.
When I run check_nrpe -H localhost now I'm getting
Code: Select all
Error - Could not complete SSL handshakeCode: Select all
NRPE v2.14Code: Select all
COMMAND: check_nrpe -H aws.ourdomain.com -c /usr/bin/perl customperlscript.pl -f /usr/local/nagios/libexec/argument.xml
OUTPUT: Re: Interesting Situation...
Testing nrpe locally as such:
should work if "127.0.0.1" is present on the "only_from" line... Can you show us the output of the following command?
Do the commands below work better?
or
Also, you need to define your command in the nrpe.cfg or common.cfg, and call it this way:
instead of calling the script directly.
Probably, you can set up a command in the "/usr/local/nagios/etc/nrpe/common.cfg" on the remote box like this:
Restart xinetd, so that changes can take effect:
Next, test it from Nagios XI:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H localhostCode: Select all
cat /etc/xinetd.d/nrpeCode: Select all
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <actual server's IP>Code: Select all
./check_nrpe -H <remote IP> -c <command>Probably, you can set up a command in the "/usr/local/nagios/etc/nrpe/common.cfg" on the remote box like this:
Code: Select all
command[myscript]=/usr/bin/perl /full/path/to/your/custom/script/customperlscript.pl -f /usr/local/nagios/libexec/argument.xmlCode: Select all
service xinetd restartCode: Select all
/usr/local/nagios/libexec/check_nrpe -H <remote ip> -c myscriptBe sure to check out our Knowledgebase for helpful articles and solutions!
-
rkymtnhigh
- Posts: 95
- Joined: Tue May 12, 2015 11:53 am
Re: Interesting Situation...
Thank you so much lmiltchev!
That was incredibly informative and helpful. I got my check up and running from the remote host.
Will dive into BPI and see if I run into any issues.
Thanks again!
That was incredibly informative and helpful. I got my check up and running from the remote host.
Will dive into BPI and see if I run into any issues.
Thanks again!
Re: Interesting Situation...
He was a minute faster then me with his response.. Sounds good though! I'll leave this thread open, let us know if you have any further questions.
Former Nagios Employee
-
rkymtnhigh
- Posts: 95
- Joined: Tue May 12, 2015 11:53 am
Re: Interesting Situation...
You guys both helped tremendously. Thank you.
I've got the checks up and running, and I've created the BPI group with two test services that I can control its availability.
I've tripped both of them to Critical, and set my Warning threshold to 99 and Critical to 49. Yet I cannot make the group go into Warning or Critical!
Both services are showing in the group as critical, yet the group still shines green.
Perhaps I am misunderstanding something about thresholds and BPI.
What am I missing? Almost there!!
RMH
I've got the checks up and running, and I've created the BPI group with two test services that I can control its availability.
I've tripped both of them to Critical, and set my Warning threshold to 99 and Critical to 49. Yet I cannot make the group go into Warning or Critical!
Both services are showing in the group as critical, yet the group still shines green.
Perhaps I am misunderstanding something about thresholds and BPI.
What am I missing? Almost there!!
RMH
Re: Interesting Situation...
I am glad we are getting closer to solving the puzzle. 
You will need to set up your BPI group with health thresholds like 51% (warning) and 1% (critical). This way, if one of the services is down, you will get an warning. If both are down - critical. Here's an example:
You will need to set up your BPI group with health thresholds like 51% (warning) and 1% (critical). This way, if one of the services is down, you will get an warning. If both are down - critical. Here's an example:
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
rkymtnhigh
- Posts: 95
- Joined: Tue May 12, 2015 11:53 am
Re: Interesting Situation...
It's weird. I've got my thresholds set like that, but the groups still says OK! I also don't get any information about the health status of the group like I see in your screenshot.
You do not have the required permissions to view the files attached to this post.
Last edited by rkymtnhigh on Wed Feb 24, 2016 11:09 am, edited 1 time in total.
Re: Interesting Situation...
This is strange - perhaps you are using an older component. What is the version of Nagios XI and the Nagios BPI component that you are currently using?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
rkymtnhigh
- Posts: 95
- Joined: Tue May 12, 2015 11:53 am
Re: Interesting Situation...
Nagios 5.2.2 and BPI 2.4.4
Thanks! This is the last piece of the puzzle!
Thanks! This is the last piece of the puzzle!