Page 1 of 1

check_nt COUNTER

Posted: Thu Mar 06, 2014 12:45 pm
by gfesj69
Hi, my name is Gerald and I am from Brazil.

We are using Nagios XI 2012R2.9 to monitor over 1500 hosts and 6500 services.

To monitor Windows Servers itens we are using NSCLIENT 0.4.1.102.

We need to monitor the number of connections at windows machines, but we have receive some wrong reports using this command.

COMMAND: /usr/local/nagios/libexec/check_nt -H 192.168.101.100 -s "" -p 12489 -v COUNTER -l "\\TCPv4\\Connections Established","Connections Established %f" -w 70 -c 90
OUTPUT: Connections Established 0.000000 | 'Connections Established %f'=0.000000%;70.000000;90.000000;

when I use a netstat at the server we receive a diferent value than 0

Do you know how can we get this work?

Thanks

Geraldo

Re: check_nt COUNTER

Posted: Thu Mar 06, 2014 4:09 pm
by sreinhardt
What permissions are your nsclient services running as? Also on my system it is \TCPv4\Connections established not \\, but that might be an nsclient thing specifically.

Re: check_nt COUNTER

Posted: Thu Mar 06, 2014 5:41 pm
by gfesj69
I´ve try \TCPv4\Connections Established, and it is the same (0).

I am running as a Local Admin, as NSClient install.

Re: check_nt COUNTER

Posted: Thu Mar 06, 2014 6:09 pm
by gfesj69
I´ve found the problem, but i find other!

My windows is in Portugueses to work we have to write in this format:

[root@SPAM-VM-NGS01 ~]# /usr/local/nagios/libexec/check_nt -H 192.168.101.100 -s "" -p 12489 -v COUNTER -l "\\TCPv4\\Conexões estabelecidas","Connections Established %.0f" -w 80 -c 90
Connections Established 67 | 'Connections Established %.0f'=67.000000%;80.000000;90.000000;

But know I do not know how to put this in CCM, CCM clean the character õ.

Some one know how to do this?

Re: check_nt COUNTER

Posted: Fri Mar 07, 2014 10:27 am
by slansing
I dont believe this will work, you could however do something along the lines of the following:

http://windows.microsoft.com/en-us/wind ... =windows-7

So the user that is accessing the system through NSClient++ is using English.

In addition, I'm removing this post from Plugin Development, as this has nothing to do with the Nagios Plugins Package, you need to be in the XI forum.