Page 1 of 1

check_nt COUNTER wrong scale?

Posted: Tue Aug 05, 2014 5:34 am
by m0lid3us
Hi, I have search in forum, but found nothing, so I'm here to ask expert.

I have Nagios 3.4.1 on Debian and NSClient 4.1.105 on Windows 2008 R2 server. I want to read using check_nt the counter about network total bytes/sec, so from command line I start testing:

Code: Select all

/usr/lib/nagios/plugins/check_nt -H 10.10.11.50 -p 12489 -s Wlinux2 -v COUNTER -l "\\Network Interface(Intel[R] PRO_1000 MT Network Connection)\\Bytes Total/sec","Total Bytes","B" -w 700000 -c 800000
It works and I get a string like that:

Code: Select all

Total Bytes = 65329,00 B | 'Total Bytes'=65329,000000B;700000,000000;800000,000000;
When on heavy load (a big file transfer), instead I get:

Code: Select all

Total Bytes = 1,00 B | 'Total Bytes'=1,000000B;700000,000000;800000,000000;
I think that is because a too big number is returned (get-counters on Windows 2008 returns "12233432"). How can handle this?

Best Regards

Re: check_nt COUNTER wrong scale?

Posted: Wed Aug 06, 2014 1:19 pm
by lmiltchev
I will try to recreate the issue in house. Meanwhile, I would recommend posting your question on the NSClient++ support site as this agent is not developed/maintained by us, and you may get a faster resolution from the NSClient's developer.

Re: check_nt COUNTER wrong scale?

Posted: Thu Aug 07, 2014 3:00 am
by Box293
I suggest you try check_nrpe instead of check_nt.

Code: Select all

./check_nrpe -H 10.25.14.2 -c CheckCounter -a "Counter=\\Network Interface(Intel[R] PRO_1000 MT Network Connection)\\Bytes Total/sec" MaxWarn=700000 MaxCrit=800000
CRITICAL: \Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes Total/sec: 1.15133e+008 > critical|'\Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes Total/sec'=115132689.59382;700000;800000