How to monitor bandwith in a Windows Server

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
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

How to monitor bandwith in a Windows Server

Post by xerez »

Hi, What plugin can I use to monitor the bandwith in a Windows Server?

I tried to use this (https://exchange.nagios.org/directory/P ... ge/details), and works, but finally I saw that it doesn't work with alerts.

Then I tested this (https://exchange.nagios.org/directory/P ... nt/details), but it has too much options and I am not able to understand very well.

If anybody can recommend me a plugin or help me to understand check_netint.

Thanks.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to monitor bandwith in a Windows Server

Post by jdalrymple »

check_wmi_plus

Code: Select all

define command{
command_name check_win_network
command_line $USER6$/check_wmi_plus.pl -H $HOSTADDRESS$ -m checknetwork -u $USER8$ -p $USER9$ -a '$ARG1$' $ARG2$ $ARG3$ $ARG4$ $ARG5$
}

Code: Select all

define service {
use windows_extra_service
service_description Network Interface
check_command check_win_network!Intel[R] PRO_1000 MT Network Connection
} 
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

Re: How to monitor bandwith in a Windows Server

Post by xerez »

Thank you very much, but do you know another plugin that doesn't work with WMI?

I prefer don't use an account.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to monitor bandwith in a Windows Server

Post by jdalrymple »

xerez wrote:I prefer don't use an account.
Everything uses an account, it just so happens the check_nt program (NSCP) uses the account .\SYSTEM so you don't have to do any privilege assignment.

That said, you can get more rudimentery figures from a simple perfcounter:

Code: Select all

[root@localhost libexec]# ./check_nt -H winhost -p 12489 -s nsclient -v COUNTER -l "\\Network Adapter(Intel[R] Ethernet Connection I217-LM)\Bytes Received/sec"
2155
[root@localhost libexec]# ./check_nt -H winhost -p 12489 -s nsclient -v COUNTER -l "\\Network Adapter(Intel[R] Ethernet Connection I217-LM)\Bytes Sent/sec"
271
Locked