Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_netstats.py
1
2020-02-05
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
GPL
3715
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
I could not find a simple nagios plugin that monitorized all NICs without the use of SNMP. So made this plugin using python and code I found on stack overflow. Data is read from /proc/net/dev with the following possible fields:
recv_bytes, recv_compressed, recv_drop, recv_errs, recv_fifo, recv_frame, recv_multicast, recv_packets, trans_bytes, trans_carrier, trans_colls, trans_compressed, trans_drop, trans_errs, trans_fifo, trans_packets
usage: ./check_netstats.py -i eth0 -p recv_errs -w 100 -c 200
Script also returns data on checked field.
output: eth0 recv_errs OK | [eth0][recv_errs]=0
recv_bytes, recv_compressed, recv_drop, recv_errs, recv_fifo, recv_frame, recv_multicast, recv_packets, trans_bytes, trans_carrier, trans_colls, trans_compressed, trans_drop, trans_errs, trans_fifo, trans_packets
usage: ./check_netstats.py -i eth0 -p recv_errs -w 100 -c 200
Script also returns data on checked field.
output: eth0 recv_errs OK | [eth0][recv_errs]=0
Reviews (0)
Be the first to review this listing!