Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
MS changed the counters on W2012. To get it to work on 2012 change these lines
bytes_in=$(${pluginlocation}/check_nt -H ${host} -p ${insertport} -s ${password} -v COUNTER -l “Network Interface(${interface})Bytes Received/sec”) bytes_out=$(${pluginlocation}/check_nt -H ${host} -p ${insertport} -s ${password} -v COUNTER -l “Network Interface(${interface})Bytes Sent/sec”) else # Without password bytes_in=$(${pluginlocation}/check_nt -H ${host} -p ${insertport} -v COUNTER -l “Network Interface(${interface})Bytes Received/sec”) bytes_out=$(${pluginlocation}/check_nt -H ${host} -p ${insertport} -v COUNTER -l “Network Interface(${interface})Bytes Sent/sec”) fi
To this.
bytes_in=$(${pluginlocation}/check_nt -H ${host} -p ${insertport} -s ${password} -v COUNTER -l “Network Adapter(${interface})Bytes Received/sec”) bytes_out=$(${pluginlocation}/check_nt -H ${host} -p ${insertport} -s ${password} -v COUNTER -l “Network Adapter(${interface})Bytes Sent/sec”) else # Without password bytes_in=$(${pluginlocation}/check_nt -H ${host} -p ${insertport} -v COUNTER -l “Network Adapter(${interface})Bytes Received/sec”) bytes_out=$(${pluginlocation}/check_nt -H ${host} -p ${insertport} -v COUNTER -l “Network Adapter(${interface})Bytes Sent/sec”)