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
1830
Files:
FileDescription
check_freebsd_net_bandwidth.shcheck_freebsd_net_bandwidth.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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]#