0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-24 17:29:39 +00:00
alerta_alerta/examples/snmptrap.sh
2012-04-19 15:05:22 +01:00

8 lines
635 B
Bash
Executable file

#!/bin/sh
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"