Page 1 of 2

windowscounter problem 'Security System-Wide Statistics'

Posted: Thu Nov 23, 2017 3:47 pm
by PowerDom
Hello !!

I'm trying to get windows Active Directory counters from 'Security System-Wide Statistics' on NCPA agent and cannot get any counters from that. I tough it was some special charactere issue.

Others counters works like :
'windowscounters/DirectoryServices(*)/LDAP Bind Time'
'windowscounters/DirectoryServices(*)/LDAP Client Sessions'
...

Config of the service in question:
Check command:
check_xi_ncpa_agent
Command view:
$USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
$ARG1$:
-t 'apikey' -P 5693 -M 'windowscounters/Security System-Wide Statistics/Kerberos Authentications' -w 3 -c 4

Sorry for my poor english writting !!
Thank you

Re: windowscounter problem 'Security System-Wide Statistics'

Posted: Mon Nov 27, 2017 11:28 am
by bennyboy
Hi PowerDom,

If you run the command manually you see performance metric ??

Re: windowscounter problem 'Security System-Wide Statistics'

Posted: Mon Nov 27, 2017 11:31 am
by PowerDom
Hi BennyBoy,

It's not a script ! I'm using the API windowscounter direct from the NCPA Agent !!!

Re: windowscounter problem 'Security System-Wide Statistics'

Posted: Mon Nov 27, 2017 11:37 am
by PowerDom
Hi BennyBoy,


All other counters works, but not that specific one: "Security System-Wide Statistics" !!! I don't know if the hyphen could be the problem !!!

Re: windowscounter problem 'Security System-Wide Statistics'

Posted: Mon Nov 27, 2017 1:46 pm
by bennyboy
Can you publish the output of the check_ncpa command please.

Re: windowscounter problem 'Security System-Wide Statistics'

Posted: Mon Nov 27, 2017 1:48 pm
by kyang
Thanks @bennyboy,

Along with bennyboy's information on using it with check_ncpa.py

Could you take a screenshot of what it looks like in the UI for NCPA?

What version of the NCPA agent do you have?

Re: windowscounter problem 'Security System-Wide Statistics'

Posted: Mon Nov 27, 2017 2:38 pm
by PowerDom
The NCPA agent version is 2.0.5

There are some screenshot :

The problem counter in windows perfmon with result:
2-Problem_counter_Result_Windows_PERFMON.jpg
The problem counter contain 0 result:
1-Problem_Counter_ScreenShot_result_BAD.jpg
Another counter working with NCPA API containing hyphen:
4-Another_counter_RESULT_Good_with_HYPHEN_NCPA_API.jpg
So, my hyphen theory is wrong !!!

Re: windowscounter problem 'Security System-Wide Statistics'

Posted: Mon Nov 27, 2017 5:01 pm
by PowerDom

Re: windowscounter problem 'Security System-Wide Statistics'

Posted: Mon Nov 27, 2017 5:35 pm
by kyang
You could try upgrading to the newest version of the agent 2.0.6?

Otherwise, since you opened an issue on Github. The NCPA developer could give you better insight on this.

Are we okay to lock this up?

Re: windowscounter problem 'Security System-Wide Statistics'

Posted: Mon Nov 27, 2017 6:09 pm
by PowerDom
OK !! the problem is solved !

This counter is a 'per sec' counter. So i have to put a 'sleep' time in the command URL like &sleep=1. The URL look something like this:https://WinServerX:5693/api/windowscounters/Security System-Wide Statistics/Kerberos Authentications?sleep=1&check=true

So , for the service configuration in Nagios XI, I add at the end of $ARG1$ -q 'sleep=1'

It work fine after that !!

Thank you for your help.