Discussion:
[Nagios-users] How to get Nagios to monitor Windows NIC Stats
George P Boutwell
2004-10-13 18:37:10 UTC
Permalink
Hey,

I'm trying to get Nagios (on Linux) to Monitor Windows NT 4 (a couple) and
Windows 2000 Server (a dozen or so) server's NIC stats.

I tried with NSClient which is already doing a bang-up job monitoring
several other Performance Counters for us, but the following (for example)
doesn't work:

./check_nt -H 192.168.9.254 -v COUNTER -l "\\Network Interface\\Bytes
Total/sec\\"

It returns 0, and puts an ITEM_NOT_VALID error in the Event Log.

Anyone else using Nagios to monitor Windows Bandwidth/NIC stats?

Specifically we'd like to monitor:

Current Bandwidth
Total Bytes/sec
Total Bytes Sent/sec
Total Bytes Received/sec

Which are all available in the WMI/Performance counters.

Thanks,

George

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.776 / Virus Database: 523 - Release Date: 10/12/2004
Steve Shipway
2004-10-13 20:36:13 UTC
Permalink
You can do this with nsclient, but remember that a network interface
statistic has multiple instances. Therefore, you need to specify the
instance... this can produce horribly complex command lines.

./check_nt -H 192.168.9.254 -v COUNTER -l '\Network Interface(My network
card instance name)\Bytes Total/sec"

You use a similar method for everything else that uses instances (eg Disk).
We are using nsclient here for monitoring network interfaces, disk, and
countless other things with no problems.

Steve

---
Steve Shipway: ITSS, University of Auckland
Email: ***@auckland.ac.nz Web: http://www.steveshipway.org/
** We can only discover new oceans when we have the **
** courage to lose sight of the shore. **
-----Original Message-----
George P Boutwell
Sent: Thursday, 14 October 2004 9:36 a.m.
Subject: [Nagios-users] How to get Nagios to monitor Windows NIC Stats
Hey,
I'm trying to get Nagios (on Linux) to Monitor Windows NT 4
(a couple) and Windows 2000 Server (a dozen or so) server's NIC stats.
I tried with NSClient which is already doing a bang-up job
monitoring several other Performance Counters for us, but the
./check_nt -H 192.168.9.254 -v COUNTER -l "\\Network
Interface\\Bytes Total/sec\\"
It returns 0, and puts an ITEM_NOT_VALID error in the Event Log.
Anyone else using Nagios to monitor Windows Bandwidth/NIC stats?
Current Bandwidth
Total Bytes/sec
Total Bytes Sent/sec
Total Bytes Received/sec
Which are all available in the WMI/Performance counters.
Thanks,
George
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.776 / Virus Database: 523 - Release Date: 10/12/2004
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on
ITManagersJournal Use IT products in your business? Tell us
what you think of them. Give us Your Opinions, Get Free
ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guide>promo.tmpl
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS
when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
George P Boutwell
2004-10-14 11:54:46 UTC
Permalink
-----Original Message-----
You can do this with nsclient, but remember that a network interface
statistic has multiple instances. Therefore, you need to specify the
instance... this can produce horribly complex command lines.
./check_nt -H 192.168.9.254 -v COUNTER -l '\Network Interface(My network
card instance name)\Bytes Total/sec"
You use a similar method for everything else that uses instances (eg
Disk).We are using nsclient here for monitoring network interfaces, disk,
and countless other things with no problems.
Awesome, exactly what we where looking for. I'll give this a whirl.

We are using check_nt to do lots of monitoring and finding more and more
ways to tap into the WMI and monitor even more every day. Starting to
really get a good picture of the systems we run, thanks to the great Nagios
and helpful addition of check_nt/NSClient combo.

George

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.776 / Virus Database: 523 - Release Date: 10/12/2004
Loading...