nagios is not monitored by default Windows Plug-in for network card traffic, but can be implemented through a third-party plug-in script.
1: Download the check_traffic.sh script and upload it to the/usr/local/nagios/libexec directory of the Nagios monitoring server.
Official: Https://github.com/cloved/check_traffic
2: Execute permissions for check_traffic.sh:
#chmod a+x/usr/local/nagios/libexec/check_traffic.sh
3: Modify the Nagios command script to add network card monitoring commands.
# vi/usr/local/nagios/etc/objects/command.cfgdefine command{command_name check_interface command_line $USER 1$/check_traffic.sh-v $ARG 1$-C $ARG 2$-H $ARG 3$-I $ARG 4$-W $ARG 5$-c $ARG 6$-k-b}
Note:-V is the SNMP version,-C is the SNMP group name,-H is the host, and-I is the network card number. The network card number can be obtained with the following command:
#/usr/local/nagios/libexec/check_traffic.sh-v 2c-c cmh-h 182.118.46.69-l
4: Edit Monitoring service file, add network card monitoring service:
# vi /usr/local/nagios/etc/objects/localhost.cfgdefine service{ use linux-service ; Name of service template to use host_name 116.255.220.76 service_ description interface_traffic_media_69 check_command check_interface!2c!cmh!182.118.46.69!11!23000,23000! 25000,25000 normal_check_interval 3 notifications_enabled 1 }
5: Check the monitoring page, the effect is as follows:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/87/5C/wKiom1feNOHB31_nAAAynJ6BUww659.png "title=" 1.png " alt= "Wkiom1fenohb31_naaaynj6buww659.png"/>
This article from the "Play God Clown" blog, reproduced please contact the author!
Nagios monitors Windows network card traffic