Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
MN81
byMN81, June 29, 2016
Works on IIS 7.5 without any problems at all
byMN81, June 29, 2016
Works on IIS 7.5 without any problems at all
byMN81, October 28, 2015
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")
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")