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

Check_debit

Rating
0 votes
Favoured:
0
Current Version
3.11
Last Release Date
2015-11-03
Compatible With
  • Nagios 3.x
  • Nagios 4.x
License
GPL
Hits
6023
Files:
FileDescription
check_debit.shcheck_debit.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!
return a network flow alert for link switch in Nagios.
The script return an Ok, WARNING or CRITICAL if the network flow exeed trigger.
This script use the standard IFMIB and the snmpget/snmpwalk package.
The script is in bash language. I give some comment in the script for helping anyone to modify it.
All comment and help are in french (sorry).

installation :
Put the script in you libexec folder and execute it

help :
./check_debit.sh -H SWITCHHOST -C COMMUNITY -v SNMPPROTO -I INTERFACETOCHECK [-F FORMAT] [-w WARNING] [-c CRITICAL]

-F Format :
percent
debitbps flow in bit/s
debit flow in bit/s, Kb/s, Mb/s, Gb/s

WARNING :
If you choose a format 'debit', you must vrote WARNING and CRITICAL value with the same unit as written in example

EXAMPLES :
check_debit.sh -H 10.10.10.10 -C private -I 4 -F percent -w 60% -c 80%
check_debit.sh -H 10.10.10.10 -C private -I B24 -F debit -w 162M -c 216MB
check_debit.sh -H 10.10.10.10 -C private -I Trk5 -F debitbps -w 921b -c 216b

this latest release permit the "burst" option :
example :
check_debit.sh -H 10.10.10.50 -C private -I 24 -F percent -w 60% -c 80% -b w 3
return a "WARNING" alert if the trafic flow exeed 60% of the bandwith during 3 check (-b w 3) and a "CRITICAL" alert if the bandwith exeed 80%.
OPTION :
-b alert count
alert : 'w' for WARNING burst or 'c' for 'CRITICAL' burst
count : number of script execution during the return value will be "ok" if the network flow exeed the warning value.