Windows Server 2012 / 8

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”)