0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-26 02:08:31 +00:00
alerta_alerta/contrib/examples/snmptrap.sh
2013-03-08 16:24:56 +00:00

10 lines
643 B
Bash
Executable file

#!/bin/sh
set -x
snmptrap -v2c -c ${2:-'public'} ${1:-'monitoring.gudev.gnl'} "" .1.3.6.1.6.3.1.1.5.1.0 0 s "This is a test coldStart trap"
snmptrap -v2c -c ${2:-'public'} ${1:-'monitoring.gudev.gnl'} "" .1.3.6.1.6.3.1.1.5.2.0 0 s "This is a test warmStart trap"
snmptrap -v2c -c ${2:-'public'} ${1:-'monitoring.gudev.gnl'} "" .1.3.6.1.6.3.1.1.5.3.0 0 s "This is a test linkDown trap"
snmptrap -v2c -c ${2:-'public'} ${1:-'monitoring.gudev.gnl'} "" .1.3.6.1.6.3.1.1.5.4.0 0 s "This is a test linkUp trap"
snmptrap -v2c -c ${2:-'public'} ${1:-'monitoring.gudev.gnl'} "" .1.3.6.1.6.3.1.1.5.5.0 0 s "This is a test authenticationFailure trap"