Monitored host not displaying

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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitored host not displaying

Post by npolovenko »

Welcome back, @karl . I think you're still having issues with the plugin compatibility. Are you able to run this plugin from the command line and get the right output?

Code: Select all

./check_ncpa.py
Does it run fine or do you still have errors? You could also try running this plugin with -v flag: ./check_ncpa.py -v to see more detailed error message.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
karl
Posts: 11
Joined: Wed Oct 11, 2017 4:16 am

Re: Monitored host not displaying

Post by karl »

Ok so when I run that it gives me the list of options and then at the bottom says:

Code: Select all

check_ncpa.py: error: Hostname is required for use.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Monitored host not displaying

Post by npolovenko »

@karl, Let try this:
Please replace the xxx after -H with the host IP address. Also, replace xxx after -t with the token(can be found in check command in the same file after -t.

Code: Select all

./check_ncpa.py -H xxx.xx.xx.xx  -t 'xxxxx' -P 5693 -M system/agent-version
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
karl
Posts: 11
Joined: Wed Oct 11, 2017 4:16 am

Re: Monitored host not displaying

Post by karl »

Image
kyang

Re: Monitored host not displaying

Post by kyang »

Looks like there was a spelling error in the command.

Try running it again, and post the output.

Code: Select all

./check_ncpa.py -H 192.168.x.xxx-t 'token' -P 5693 -M 'system/agent_version'
The output should be something like this.

Code: Select all

OK: Agent_version was ['2.0.4']
Locked