Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
FreeBSD network bandwidth
1.0
2022-08-24
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
BSD
2293
File | Description |
---|---|
check_freebsd_net_bandwidth.sh | check_freebsd_net_bandwidth.sh |
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!
This is a bash script that returns performance values for network bandwidth on FreeBSD hosts using netstat command. The plugin doesn't monitor anything. It just returns the in and out values in bits or bytes for use with pnp4nagios or other graphing tools. The plugin is compatible with the following pnp4nagios template:
https://github.com/mclarkson/check_iftraffic_nrpe.sh/blob/master/check_iftraffic_nrpe.sh.php
It will return OK if netstat command has been run successfully and UNKNOWN otherwise. I've made this because I couldn't get performance info reliably with SNMP on FreeBSD.
Example:
[root@server nagios]# ./check_freebsd_net_bandwidth.sh bge0 --bits
OK - In and out values in bits/s have been generated from netstat command. | in-bge0=7504 out-bge0=7952
[root@server nagios]#
https://github.com/mclarkson/check_iftraffic_nrpe.sh/blob/master/check_iftraffic_nrpe.sh.php
It will return OK if netstat command has been run successfully and UNKNOWN otherwise. I've made this because I couldn't get performance info reliably with SNMP on FreeBSD.
Example:
[root@server nagios]# ./check_freebsd_net_bandwidth.sh bge0 --bits
OK - In and out values in bits/s have been generated from netstat command. | in-bge0=7504 out-bge0=7952
[root@server nagios]#
Reviews (0)
Be the first to review this listing!