User Tools

Site Tools


blog:monitor_linux_network_interface_traffic_using_nagios

This is an old revision of the document!


Monitor Linux network interface traffic using nagios

To monitor network traffic on your systems using nagios there is the check_netio plugin on nagios exchange.

Here's the setup for debian systems: Download the check_netio_1.1 to /usr/local/bin and test it. You will have to change paths, like this: check_netio_1.1_debian Copy this file to all your servers that you check by ssh.

Add a new command definition to your nagios setup:

# 'ssh_netio' command definition                                                          
define command{                                                                           
        command_name ssh_netio                                                            
        command_line /usr/lib/nagios/plugins/check_by_ssh -H $HOSTADDRESS$ -C "/usr/local/bin/check_netio_1.1 -i $ARG1$"                                                            
}                                                                                         
define hostgroup {                                                                        
        hostgroup_name  netio-servers                                                     
        }                                                                                
define service{                                                                            use                             generic-service         ; Name of service template to use                                                                                 hostgroup_name                  netio-servers                                     
        service_description             NETIO                                             
        check_command                   ssh_netio!eth0                                           }                                                                           

To enable netio checking for a given host, add the entry netio-servers to the hostgroups of the host entry.

~~LINKBACK~~

Discussion

Enter your comment. Wiki syntax is allowed:
   ____  ____  ____   __  __   ___ 
  / __/ /_  / / __ \ / / / /  / _ \
 _\ \    / /_/ /_/ // /_/ /  / // /
/___/   /___/\___\_\\____/  /____/
 
blog/monitor_linux_network_interface_traffic_using_nagios.1306075745.txt.gz · Last modified: 2011-05-22 16:49 by brb