check_nt COUNTER wrong scale?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
m0lid3us
Posts: 1
Joined: Tue Aug 05, 2014 5:15 am

check_nt COUNTER wrong scale?

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: check_nt COUNTER wrong scale?

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_nt COUNTER wrong scale?

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked