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.
Oh, I'm sorry, if you have other checks using check_ncpa, then we should alter the service config file. My apologies, go ahead and revert the command.cfg file so that your other checks work.
Alter your service configuration so that the check command looks like this,
bad luck ... Not Working for me .. still showing the same
Here is my commands I'm using .. one is checking the script for checking service in the same server. the script is working via ncpa
but the ping to private IP is not still working, i have changed the commands as you said
Ah, I think I see the issue now. I missed it when we made the switch back to how you had the command defined before. Make your check_command look like this.
I forgot the -t. Also, personally, I like to wrap strings like the token in quotes. But if your working command doesn't have it in quotes, then that's fine too.
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!
Aha, You're Awesome !!!! That one is Worked For me .. Thank you for the whole support!!!
Can I ask you something more?
Like can I check a service running status in the machine with private IP ( pinging machine) !!! Do you have a solution for it?
In theory you could do the same thing you did with check_ping, except use the check_ncpa.py plugin. Then install NCPA on the internal machine.
However, I would strongly advise that you limit the number of checks you pass through NCPA via the machine with the external IP. NCPA was not designed to work this way, and we don't have any idea how many checks would be too many checks for this type of setup. It works for ping, it will probably work for an additional check, or two. But don't push it too hard.
If you find yourself needing more checks on that remote network, you might be better off just having a Nagios installation on the network.
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!
your Right. But I'm looking to check a custom service status check-in Private IP Server, I just want to check one more custom services in Private IP server
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.
I didn't get the point correctly. Can you just make me clear? where do I need to install NCPA?
and where should I run the commands?
where do I need to copy check_ncpa.py?
Please make me clear about it
very grateful to you