Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

FreeBSD network bandwidth

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2022-08-24
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Owner
License
BSD
Hits
2214
Files:
FileDescription
check_freebsd_net_bandwidth.shcheck_freebsd_net_bandwidth.sh
Nagios CSP

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 plugin that returns performance values for network bandwidth on FreeBSD hosts using netstat command.
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]#