diff --git a/monitoring/snmp/README.md b/monitoring/snmp/README.md new file mode 100644 index 0000000..640a114 --- /dev/null +++ b/monitoring/snmp/README.md @@ -0,0 +1,6 @@ +# Monitor snmp traps in nagios +How to monitor snmp traps in nagios + +http://paulgporter.net/2013/09/16/nagios-snmp-traps/ + +convert only mibs you need/want diff --git a/monitoring/snmp/snmptrapd.conf b/monitoring/snmp/snmptrapd.conf new file mode 100644 index 0000000..fe19fab --- /dev/null +++ b/monitoring/snmp/snmptrapd.conf @@ -0,0 +1,8 @@ +# no auth at all (maybe not working) +disableAuthorization yes + +# add our community with full rights +authCommunity log,execute,net 0penfest + +# handle everything +traphandle default /usr/sbin/snmptthandler diff --git a/monitoring/snmp/snmptt.conf.cisco b/monitoring/snmp/snmptt.conf.cisco new file mode 100644 index 0000000..7503be4 --- /dev/null +++ b/monitoring/snmp/snmptt.conf.cisco @@ -0,0 +1,20 @@ +# this is just a sample converted mib. follow the procedure in README.md +EVENT ccmCLIRunningConfigChanged .1.3.6.1.4.1.9.9.43.2.0.2 "Status Events" Normal +FORMAT This notification indicates that the running $* +EXEC /usr/share/nagios3/plugins/eventhandlers/submit_check_result $r TRAP 2 "This notification indicates that the running $*" +SDESC +This notification indicates that the running +configuration of the managed system has changed +from the CLI. +If the managed system supports a separate +configuration mode(where the configuration commands +are entered under a configuration session which +affects the running configuration of the system), +then this notification is sent when the configuration +mode is exited. +During this configuration session there can be +one or more running configuration changes. +Variables: + 1: ccmHistoryRunningLastChanged + 2: ccmHistoryEventTerminalType +EDESC diff --git a/monitoring/snmp/snmptt.ini b/monitoring/snmp/snmptt.ini new file mode 100644 index 0000000..13d811a --- /dev/null +++ b/monitoring/snmp/snmptt.ini @@ -0,0 +1,95 @@ +[General] +snmptt_system_name = + +# way to run it (daemon to read spooled traps from snmptthandler) +mode = daemon +multiple_event = 1 +dns_enable = 0 +strip_domain = 1 + +# nuke this domain substring +strip_domain_list = <