windowscounter problem 'Security System-Wide Statistics'

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
PowerDom
Posts: 6
Joined: Fri Mar 03, 2017 12:01 pm

windowscounter problem 'Security System-Wide Statistics'

Post 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
bennyboy
Posts: 157
Joined: Thu Oct 29, 2015 9:42 am

Re: windowscounter problem 'Security System-Wide Statistics'

Post by bennyboy »

Hi PowerDom,

If you run the command manually you see performance metric ??
PowerDom
Posts: 6
Joined: Fri Mar 03, 2017 12:01 pm

Re: windowscounter problem 'Security System-Wide Statistics'

Post by PowerDom »

Hi BennyBoy,

It's not a script ! I'm using the API windowscounter direct from the NCPA Agent !!!
PowerDom
Posts: 6
Joined: Fri Mar 03, 2017 12:01 pm

Re: windowscounter problem 'Security System-Wide Statistics'

Post 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 !!!
bennyboy
Posts: 157
Joined: Thu Oct 29, 2015 9:42 am

Re: windowscounter problem 'Security System-Wide Statistics'

Post by bennyboy »

Can you publish the output of the check_ncpa command please.
kyang

Re: windowscounter problem 'Security System-Wide Statistics'

Post 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?
PowerDom
Posts: 6
Joined: Fri Mar 03, 2017 12:01 pm

Re: windowscounter problem 'Security System-Wide Statistics'

Post 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 !!!
You do not have the required permissions to view the files attached to this post.
PowerDom
Posts: 6
Joined: Fri Mar 03, 2017 12:01 pm

Re: windowscounter problem 'Security System-Wide Statistics'

Post by PowerDom »

kyang

Re: windowscounter problem 'Security System-Wide Statistics'

Post 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?
PowerDom
Posts: 6
Joined: Fri Mar 03, 2017 12:01 pm

Re: windowscounter problem 'Security System-Wide Statistics'

Post 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.
Locked