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_snmp_storm_broadcast

Rating
2 votes
Favoured:
0
Current Version
1.2
Last Release Date
2017-11-16
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Hits
7456
Files:
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!
Based on standard MIB RFC-1213.
This plugin monitors broadcast and multicast storms of switchs interfaces.
Version 1.1: Add adjustable measuring interval (-t)
Version 1.2: Add Perfdata to the check
check_snmp_storm_broadcast --help

Usage: ./check_snmp_storm_broadcast -H host [-u community (default: public)] [-V version (default: 2c)] -n|-p (number or percent) [-w warning (option for -p: default: 20%)] [-c critical (option for -p: default: 40%)] [-W warning (option for -n: default: 30)] [-C critical (option for -n: default: 50)] [-P liste ports (ex:10,16,24)] [-v] [-t seconds]
Requirements: snmpwalk,

Options:
-h|--help print usage
-H hostname (mandatory)
-u snmp community (optional: default public)
-V snmp version (optional: default 2c)
-n (number; -n or -p mandatory)
-p (percent; -n or -p mandatory)
-w Warning percent Threshold (optional: default 30%) (option for -p)
-c Critical percent Threshold (optional: default 40%) (option for -p)
-W Warning number Threshold (optional: default 30) (option for -n)
-C Critical number Threshold (optional: default 40) (option for -n)
-P Liste de ports séparés par des virgules (optional)
-v verbose. Afficher l'ensemble des informations (optional: displays information for all not null interfaces )
-t seconds (optional: 1 second)

Les options -n et -p se basent sur le seuil 'Warning number Threshold' pour afficher les résultats.
Pour -p, ceci évite de remonter des alertes si très peu de paquets ont transités par l'interface, Ex 1/2 --> 50%
L'option -p peut être accompagnée de l'option -W pour fixer le nombre de paquet pour lequel le pourcentage doit remanter en alerte.
Cette option (-W) est positionnée à 30 par défaut.



Remarks:

* Checks input/output multicast and broadcast traffic
* Checks one, more or all interfaces
* Provides stats by percentage or integer values.

Examples for all interfaces on percent with default threshold with none default community and version

$USER1$/check_snmp_storm_broadcast.sh -H host1 -u com -V 1 -p
Nagios command:
$USER1$/check_snmp_storm_broadcast.sh -H $HOSTADDRESS$ -u $_HOSTSNMPCOMMUNITY$ -V $_HOSTSNMPVERSION$ -p


Examples for interfaces 2 and 6 in number with redefined threshold

$USER1$/check_snmp_storm_broadcast.sh -H host1 -n -W 40 -C 60 -P 2,6
Nagios command:
$USER1$/check_snmp_storm_broadcast.sh -H $HOSTADDRESS$ -n -W $ARG1$ -C $ARG2$ -P $ARG3$


Examples for all interfaces in percent with redefined percent threshold and redefined minimun number of packets per interfaces

$USER1$/check_snmp_storm_broadcast.sh -H host1 -p -w $ARG1$ -c $ARG2$ -W 40 -v
Nagios command:
$USER1$/check_snmp_storm_broadcast.sh -H $HOSTADDRESS$ -p -w $ARG1$ -c $ARG2$ -W $ARG3$ -v -t 2

measurement interval=2 seconds

With -v option (infos), Alerts are not lifts and all interfaces are displayed
Reviews (2)
byB0ris, January 3, 2019
This plugin would be excelent, but it doesn't work properly. I have CentOS 7 and i'm getting error:

./check_snmp_storm_broadcast.sh: line 190: -: syntax error: operand expected (error token is "-")
byscheppa, September 26, 2017
1 of 1 people found this review helpful
I've added Perfdata to the check:
section "Calcul des taux de Broadcast des Switch" Line 205 insert:
PERF="$PERF Interface$((num + 1))=$nb_NUnicastPackets;$NB_WARNING;$NB_CRITICAL;;"
and in section "Envoi des codes retour et du message"
change following lines:
306: echo "Etat broadcast : $STATE|&PERF"
310: echo "Etat broadcast : $STATE|&PERF"
314: echo "Etat broadcast : $STATE|&PERF"
320: echo "Etat broadcast OK: Pas de communication ou broadcast sur la ou les interfaces surveillée(s)|$PERF"
322: echo "Etat broadcast : toutes interfaces OK|$PERF"
Owner's reply

Yes cool, thanks