Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This is my first script to check the network traffic for linux. Minimum required python 2.4
Current Version
1
Last Release Date
2013-03-01
Owner
Pierre-Emmanuel Dutang
License
GPL
Compatible With
This plugin check the traffic in and out for linux.
Minimum required python 2.4
example: ./check_network.py eth0 NETWORK USAGE Taffic_in:4.82Mbits/s traffic_out:734.62Kbits/s | traffic_in=5050011.2Bits/s traffic_out=752252.8Bits/s
This plugins worked well but generating separate bandwidth graphs of Linux "eth0" interface. Below is my configuration. ####Nagios Server#### define service{ use generic-service host_name mail.example.local service_description eth0 Network check_command check_nrpe!eth0_network check_interval 1 } ####NRPE Client#### vim /usr/local/nagios/etc/nrpe.cfg command[eth0_network]=/usr/local/nagios/libexec/check_network.py eth0 ############################# -Nishith N.Vyas
Most plugins are used in enterprise environments where nagios user does not have root or sudo privileges. ifconfig cannot be run in such environments which makes the plugin unusable. You can do almost the same code, but get the byte and packet readings from /sys/class/net/eth0/statistics. Using this method you will not need the subprocess library. Make it more simple and usable.
You must be logged in to submit a review.
To:
From: