Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This plugin checks bandwidth and connections of Watchguard device and returns performance data.
Current Version
1.0
Last Release Date
2022-03-08
Owner
Juan Granados
Website
http://github.com/juangranados/nagios-plugins
Download URL
https://github.com/juangranados/nagios-plugins/blob/master/check_wg_network.sh
License
GPL
Compatible With
Usage: check_wg_network.sh [options] # -h | --host: ip of device. # -w | --warning: optional. Number of connections warning. # -c | --critical: optional. Number of connections critical. # -iw | --iwarning: optional. % of usage of interface warning. # -ic | --icritical: optional. % of usage of interface critical. # -v | --version: snmp version. Default 2. Depends on version you must specify: ##### 2: -s | --string: snmp community string. Default public. ##### 3: -u | --user: user. -p | --pass: password. # -i | --interfaces: list of interfaces to monitor. Default all (autodetects interfaces). Ex: "eth0 eth1 eth2 eth3" # -t | --time: polling time in seconds. Default 10. # -d | --dspeed: default speed of interfaces in case that snmp returns 0. Default 1000000000.
Example: check_wg_network.sh -h 192.168.2.100 -c 800000 -w 900000 -v 2 -s publicwg -i "eth0 eth1 vlan1" Example: check_wg_network.sh -h 192.168.2.100 -c 800000 -w 900000 -v 3 -u read -p 1234567789 -t 15
Example of output with performance data after | ./check_wg_network.sh -h 192.168.2.100 -s publicsnmp -w 30000 -c 40000 -iw 80 -ic 90 -i "eth3 vlan1"
Ok. Number of connections: 1360. eth3=IN:5.926Mb/s OUT:3.586Mb/s. vlan1=IN:0.185Mb/s OUT:3.029Mb/s | conn=1360;30000;40000;; eth3_in=5.926Mb;800;900;0;1000 eth3_in%=0.59%;80;90;0;100 eth3_out=3.586Mb;800;900;0;1000 eth3_out%=0.35%;80;90;0;100 vlan1_in=0.185Mb;800;900;0;1000 vlan1_in%=0.01%;80;90;0;100 vlan1_out=3.029Mb;800;900;0;1000 vlan1_out%=0.30%;80;90;0;100
You must be logged in to submit a review.
To:
From: