Nagios monitors Windows network card traffic

Source: Internet
Author: User
Tags snmp

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.