Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Watchguard Network
1.0
2022-03-08
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
GPL
2566
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!
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
# -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
Reviews (0)
Be the first to review this listing!