Page 1 of 1

How to check NCPA agent version

Posted: Mon Jan 22, 2018 7:50 pm
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

Re: How to check NCPA agent version

Posted: Tue Jan 23, 2018 11:16 am
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.

Re: How to check NCPA agent version

Posted: Wed Jan 24, 2018 5:59 pm
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

Re: How to check NCPA agent version

Posted: Thu Jan 25, 2018 11:31 am
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"

Re: How to check NCPA agent version

Posted: Mon Feb 05, 2018 8:53 pm
by genna
Thanks,
That will do the trick

Re: How to check NCPA agent version

Posted: Tue Feb 06, 2018 10:15 am
by npolovenko
@genna, No problem. I'll go ahead and lock this topic for you.