User Tools

Site Tools


blog:monitor_linux_network_interface_traffic_using_nagios

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blog:monitor_linux_network_interface_traffic_using_nagios [2011-05-22 17:01] brbblog:monitor_linux_network_interface_traffic_using_nagios [2011-05-22 17:22] (current) brb
Line 4: Line 4:
  
 Here's the setup for debian systems: Here's the setup for debian systems:
 +
 +===== For all monitores systems =====
 Download the [[http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=473&cf_id=30|check_netio_1.1]] to /usr/local/bin and test it. You will have to change paths, like this: [[:blogfiles:check_netio_1.1_debian]] Copy this file to all your servers that you check by ssh. Download the [[http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=473&cf_id=30|check_netio_1.1]] to /usr/local/bin and test it. You will have to change paths, like this: [[:blogfiles:check_netio_1.1_debian]] Copy this file to all your servers that you check by ssh.
 +
 +===== On the nagios server only: =====
  
 You need these commands to enable netio checking for a hostgroups based configuration.  You need these commands to enable netio checking for a hostgroups based configuration. 
Line 21: Line 25:
         check_command                   ssh_netio!eth0                                                                                                                              check_command                   ssh_netio!eth0                                                                                                                     
 </code> </code>
 +
  
 To enable netio checking for a given host, add the entry ''netio-servers'' to the ''hostgroups'' of the ''host'' entry.  To enable netio checking for a given host, add the entry ''netio-servers'' to the ''hostgroups'' of the ''host'' entry. 
Line 30: Line 35:
 Restart nagiosgrapher and control ''/var/log/nagiosgrapher/ngraph.log''. For every host where you enable netio checking, you should see the information that the config has been added. Restart nagiosgrapher and control ''/var/log/nagiosgrapher/ngraph.log''. For every host where you enable netio checking, you should see the information that the config has been added.
  
 +Note:
 +  * If you run a bastille hardened server, the plugin call by ssh may fail because ifconfig can't be executed. Test it using
 +''/usr/lib/nagios/plugins/check_by_ssh -H newton.ksk.ch -C '/usr/local/bin/check_netio_1.1 -i eth0'''
  
- +{{tag>nagios}}
-{{tag>}}+
  
 ~~LINKBACK~~ ~~LINKBACK~~
 ~~DISCUSSION~~ ~~DISCUSSION~~
  
blog/monitor_linux_network_interface_traffic_using_nagios.1306076505.txt.gz · Last modified: 2011-05-22 17:01 by brb