This script monitors the FDB table of an Extreme Networks device via SNMP.

»» There is an extra article dedicated for this script.

It accepts the following arguments:

  • -s <SWITCH> the switch’s hostname or ip address
  • -C <COMMUNITY-STRING> the community string as configured on the switch
  • -T <TIMEOUT> optionally provide a timeout in seconds. This timeout defaults to the value configured in /usr/lib/nagios/plugins/utils.pm (usually something around 15 seconds).
  • -e <EXPECTED> expected entries: if those mac addresses appear they are expected to be in that vlan and on that port
  • -P or --print displays fdb, you can use this as a template for the <EXPECTED> file
  • -W or --warn warn if an expected entry wasn’t found
  • -h show the help.

Tested with different XOS versions and SNMP protocol version 2c. If you want to use a different SNMP protocol version, just modify the Net::SNMP->session(...) call.

Here is the code.

Dependencies

Please consider to take a look at my general setup notes.

Download: Perl: check_catalyst_fans.pl (Please take a look at the man-page. Browse bugs and feature requests.)

Martin Scharm

stuff. just for the records.

Do you like this page?
You can actively support me!

Leave a comment

There are multiple options to leave a comment: