Re: Bandwidth monitoring
Posted: Thu Feb 27, 2014 7:23 am
Appreciate the help, when do you think sreinhardt will be able to look at this, just so i know when to plan for it?
Thanks
M
Thanks
M
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
./check_wmi_plus.pl -H 192.168.5.xxx -u [domain/user] -p [password] --nokeepstate -m checknetworkCode: Select all
./check_wmi_plus.pl -H 192.168.5.xxx -u [domain/user] -p [password] --nokeepstate -m checknetwork -a 'Intel[R] 82579LM Gigabit Network Connection'Code: Select all
./check_wmi_plus.pl -H 192.168.5.xxx -u [domain/user] -p [password] -m checknetwork -a 'Intel[R] 82579LM Gigabit Network Connection' -w _BytesSentPersec=200Code: Select all
checknetwork
These network checks use WMI Raw counters to calculate values over a given timeperiod.
This is much more accurate than taking Formatted WMI values.
ARG1 Specify with network adapter the stats are collected for.
The name of the network adaptors as seen from WMI are similar to what is seen in the output of the
ipconfig/all command on Windows. However, its not exactly the same. Run without -a to list the adapter
names according to WMI. Typically you need to use '' around the adapter name when specifying.
eg -a 'Intel[R] PRO_1000 T Server Adapter _2 - Packet Scheduler Miniport'
DELAY (optional) specifies the number of seconds over which the utilisation is calculated. The longer you can make this without timing out, the more accurate it will be. If specifying longer values. You may also need to use the -t parameter to set a longer script timeout. Only valid if also specifying --nokeepstate ie you are not using the state keeping feature. We recommend that you do keep state and hence do not use --nokeepstate.
WARN/CRIT can be used as described below.
Valid Warning/Critical Fields are: CurrentBandwidth (Default), _PacketsSentPersec, _PacketsReceivedPersec, OutputQueueLength, PacketsReceivedErrors, _BytesSentPersec, _BytesReceivedPersec
BYTEFACTOR defaults to 1000 for this mode. You can override this if you wish.Code: Select all
./check_wmi_plus.pl -H anotherhost-u domain/user -p password --nokeepstate -m checknetwork
Valid Adapter Names are:
HP Ethernet 1Gb 4-port 331FLR Adapter
HP Ethernet 1Gb 4-port 331FLR Adapter _2
HP Ethernet 1Gb 4-port 331FLR Adapter _3
HP Ethernet 1Gb 4-port 331FLR Adapter _4
Specify the -a parameter with an adapter name. Use ' ' around the adapter name.
For example: -a 'HP Ethernet 1Gb 4-port 331FLR Adapter'
Code: Select all
[root@localhost libexec]# ./check_wmi_plus.pl -H hostsname -u domain/user -p password --nokeepstate -m checknetwork -a 'HP Ethernet 1Gb 4-port 331FLR Adapter'
UNKNOWN - Plugin Timed out (15 sec)Code: Select all
./check_wmi_plus.pl -H hostsname -u domain/user -p password --nokeepstate -m checknetwork -a 'HP Ethernet 1Gb 4-port 331FLR Adapter' -t 180Code: Select all
OK - Interface: HP NC373i Multifunction Gigabit Server Adapter (Speed:1.000Gbit/s Rate=4.642KB/sec, Byte Receive Rate=7.406KB/sec, Packet Send Rate=21.000packet/s Receive Rate=39.000packet/sec, Output Queue Length=0, Packets Received Errors=0|' ersec'=4642; '_BytesReceivedPersec'=7406; '_PacketsSentPersec'=21; '_PacketsRecei 39; 'OutputQueueLength'=0; 'PacketsReceivedErrors'=0;
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_wmi_plus.pl -H hostname -u mydom.com/user -p password --nokeepstate -m checknetwork -a 'HP NC373i Multifunction Gigabit Server Adapter'
OUTPUT: UNKNOWN - Plugin Timed out (15 sec)