Happy to hear that!! So please take me to the solutionsbenjaminsmith wrote:Hello @epixelitsupport,
Glad Michael was able to help you set up the ping check on the private host with NCPA.
If you'd like to set this up for another service, follow the same process as described in this post.
Possible to get ping status from private ip machines
-
- Posts: 85
- Joined: Fri Nov 08, 2019 2:40 am
Re: Possible to get ping status from private ip machines
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Possible to get ping status from private ip machines
Hello,
Follow the same steps to create the new service as you've done before and explained in this thread. If you get a specific error message, please post it and we'll try to help you resolve the error.
Follow the same steps to create the new service as you've done before and explained in this thread. If you get a specific error message, please post it and we'll try to help you resolve the error.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 85
- Joined: Fri Nov 08, 2019 2:40 am
Re: Possible to get ping status from private ip machines
mbellerue wrote:Okay, are you allowed to install NCPA on the machine with the internal IP address? If so, just copy check_ncpa.py from your Nagios server over to the machine with the external IP address, and then build your check command. You will do basically the same process that you did with check_ping. Your end command might look something like this.
Please make careful note of the usage of single and double quotes.Code: Select all
check_command check_ncpa!-t 'ASecretToken' -M plugins/check_ncpa.py -a "check_ncpa.py -H <internal_IP> -t '<internal_token>' -M 'services' -q 'service=<your_service_name>,status=running'"
Everything you need should be in this thread, and you can use your existing check_ping service as a guide.
As you said I have installed ncpa in private IP machine and copy check_ncpa.py from your Nagios server over to Public IP machine (usr/local/ncpa/plugins/check_ncpa.py) then I added the command in Nagios server
But I'm getting an unknown error here in the Dashboard. https://prnt.sc/qm4n7w
https://prnt.sc/qm4ncb
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Possible to get ping status from private ip machines
Hello,
OK. Thank you for posting screenshots of the error message. Since it's a 500 error, this is at the server level.
1. Are you able to run a simple command from the public machine to the private machine? Post the output to the following command.
2. Set the log level on NCPA in the private host to debug, and post your ncpa_listener.log from the client? For a Linux system, this can be found in the following directory.
See: https://www.nagios.org/ncpa/help.php#in ... leshooting
3. Are you able to log into the web interface for NCAP on the private machine?
OK. Thank you for posting screenshots of the error message. Since it's a 500 error, this is at the server level.
1. Are you able to run a simple command from the public machine to the private machine? Post the output to the following command.
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -v -t 'test_token' -P 5693 -M 'system/version'
Code: Select all
/usr/local/ncpa/var/log/ncpa_listener.log
3. Are you able to log into the web interface for NCAP on the private machine?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 85
- Joined: Fri Nov 08, 2019 2:40 am
Re: Possible to get ping status from private ip machines
benjaminsmith wrote:Hello,
OK. Thank you for posting screenshots of the error message. Since it's a 500 error, this is at the server level.
1. Are you able to run a simple command from the public machine to the private machine? Post the output to the following command.2. Set the log level on NCPA in the private host to debug, and post your ncpa_listener.log from the client? For a Linux system, this can be found in the following directory.Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -v -t 'test_token' -P 5693 -M 'system/version'
See: https://www.nagios.org/ncpa/help.php#in ... leshootingCode: Select all
/usr/local/ncpa/var/log/ncpa_listener.log
3. Are you able to log into the web interface for NCAP on the private machine?
This is the output I'm getting when running from the external IP machine https://prnt.sc/qnvd9a
after that, I have moved check_ncpa.py to /usr/local/nagios/libexec/
after I run the same then I'm getting the error like https://prnt.sc/qnvgml
Please find it and please let me know the solution
This is the log from External IP machine : https://prnt.sc/qnvktj
This is the log in Internal IP Machine : https://prnt.sc/qnvlc2
Re: Possible to get ping status from private ip machines
Ah, it's an Ubuntu machine. Run apt install python2.7 on the external machine, and that should allow you to run the check_ncpa.py script.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 85
- Joined: Fri Nov 08, 2019 2:40 am
Re: Possible to get ping status from private ip machines
As you said I have installed python 2.7 in External IP server,mbellerue wrote:Ah, it's an Ubuntu machine. Run apt install python2.7 on the external machine, and that should allow you to run the check_ncpa.py script.
root@Back-Office-Elite-Mortgage-Server:/home/ubuntu# python3 -V
Python 3.6.8
That was not worked, So I tried sudo apt-get install python2.7-minimal
Then it is started to work!!
Awesome Thanks for your wonderful help!!! Appreciated
-
- Posts: 85
- Joined: Fri Nov 08, 2019 2:40 am
Re: Possible to get ping status from private ip machines
How can i check disk space and CPU utilisation in the private IP machine?
is it possible to check via ncpa? because I have already installed ncpa in the private IP server
is it possible to check via ncpa? because I have already installed ncpa in the private IP server