issue returning system metrics using ncpa

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

issue returning system metrics using ncpa

Postby nozlaf » Wed Jul 04, 2018 7:46 pm

so I had hoped to run an active check to return the agent version of the ncpa agent and windows version to co-ordinate upgrades

Code: Select all
./check_ncpa.py -H servername -t 'token' -M 'system/release'

seemed to work great! (does work great using ncpa 2.1.4)

Code: Select all
OK: Release was ['2012ServerR2']


however I found that the older ncpa client (1.8.1) returned
Code: Select all
0
release was ['2003Server']


is there an easy way around this that I am not aware of? or do I need to have different checks for different ncpa versions ?
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
User avatar
nozlaf
 
Posts: 170
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: issue returning system metrics using ncpa

Postby lmiltchev » Thu Jul 05, 2018 11:22 am

The latest plugin is supposed to handle this for you.

https://github.com/NagiosEnterprises/ncpa/blob/master/client/check_ncpa.py

Try it with:
Code: Select all
./check_ncpa.py -H servername -t 'token' -M 'system/release'

and
Code: Select all
./check_ncpa.py -H servername -t 'token' -M 'system/agent_version'

run against machines with 2.1.4 and 1.8.1 againt installed, and let us know if it worked for you.
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!
User avatar
lmiltchev
QA Manager
 
Posts: 10722
Joined: Mon May 23, 2011 12:15 pm

Re: issue returning system metrics using ncpa

Postby nozlaf » Thu Jul 05, 2018 1:52 pm

lmiltchev wrote:The latest plugin is supposed to handle this for you.

yeah I thought this was the case but I was already running the latest
I just double checked that there wasn't an issue with the tar.gz version from your website so grabbed the github version and both are the same version number and yield same result
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
User avatar
nozlaf
 
Posts: 170
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: issue returning system metrics using ncpa

Postby lmiltchev » Thu Jul 05, 2018 3:59 pm

Can you try upgrading your plugin to ver. 1.1.4 and see if this is going to fix your issue?

https://github.com/NagiosEnterprises/ncpa/blob/master/client/check_ncpa.py
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!
User avatar
lmiltchev
QA Manager
 
Posts: 10722
Joined: Mon May 23, 2011 12:15 pm

Re: issue returning system metrics using ncpa

Postby nozlaf » Sat Jul 07, 2018 12:09 am

lmiltchev wrote:Can you try upgrading your plugin to ver. 1.1.4 and see if this is going to fix your issue?


Yep fixed the issue
thanks for fixing this
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
User avatar
nozlaf
 
Posts: 170
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: issue returning system metrics using ncpa

Postby tmcdonald » Mon Jul 09, 2018 10:45 am

Great to hear! Did you have further (related) questions or are we good to lock this up?
Former Nagios employee
tmcdonald
 
Posts: 9118
Joined: Mon Sep 23, 2013 8:40 am

Re: issue returning system metrics using ncpa

Postby nozlaf » Wed Jul 11, 2018 6:27 pm

lock it up
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
User avatar
nozlaf
 
Posts: 170
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: issue returning system metrics using ncpa

Postby scottwilkerson » Thu Jul 12, 2018 7:16 am

nozlaf wrote:lock it up


Locking
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 11583
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: vishfx and 38 guests