How to check NCPA agent version

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
genna
Posts: 34
Joined: Mon Aug 14, 2017 8:10 pm

How to check NCPA agent version

Post by genna »

Hi,
I don't seem to be able to find it in the doco - how can I check version of NCPA agent running on the host . I tried check_ncpa.py -H <hostname> -V
It returns 1.1.1 which I presume is the version of check_ncpa.py command, not NCPA agent itself
Thanks
Genna
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to check NCPA agent version

Post by lmiltchev »

Here's an example of checking the NCPA agent version:

Code: Select all

[root@main-nagios-xi ~]# /usr/local/nagios/libexec/check_ncpa.py -H <remote ip> -t 'mytoken' -P 5693 -M system/agent_version
OK: Agent_version was ['2.1.1']
Let us know if you have any more questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
genna
Posts: 34
Joined: Mon Aug 14, 2017 8:10 pm

Re: How to check NCPA agent version

Post by genna »

Hello,
Thanks for your reply.
That works. I wondered if there is a way to do so on the host itself, not from Nagios Server (for Puppet automation for example) But will do for now.
Thanks again,
Genna
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to check NCPA agent version

Post by npolovenko »

@genna, You could run a curl command on a host to get the ncpa version:

Code: Select all

curl -k -XGET "https://localhost:5693/api/system/agent_version?token=mytoken"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
genna
Posts: 34
Joined: Mon Aug 14, 2017 8:10 pm

Re: How to check NCPA agent version

Post by genna »

Thanks,
That will do the trick
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: How to check NCPA agent version

Post by npolovenko »

@genna, No problem. I'll go ahead and lock this topic for you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked