NAGIOS XI 2014r1.2
I have attached my snmptt configurations here. I Think I am REALLY close. My NSTI is getting traps but the traps are not getting into NagiosXI. I have loaded the MIBS but I am sure that the EXEC command is not working. Since this is my first time trying this, I want to make sure I am doing it correctly. This is the command I used to import the MIB into SNMPTT
Code: Select all
snmpttconvertmib --in=CISCO-TCP-MIB.my.txt --out=/etc/snmp/snmptt.conf --net_snmp_perlCode: Select all
snmpttconvertmib --in=CISCO-TCP-MIB.my.txt --out=/etc/snmp/snmptt.conf --exec='/usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP 1' --net_snmp_perlCode: Select all
EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Normal
FORMAT Link down on interface $1. Admin state: $2. Operational state: $3
#EXEC qpage -f TRAP notifygroup1 "Link down on interface $1. Admin state: $2. Operational state: $3"I would also like a CRITICAL alert and page to go out from NagiosXI when a few of these are received. My best guess is that this is done in the snmptt.conf file somehow but I am not sure how or what variable I would need to modify. Would that be the "Normal" keyword that follows "Status Events" as in the code above? If so, what are the options other than Normal?
Finally, for the stuff that I don't want to alert, is there a default catch-all at the end of the snmptt.conf that will forward these on to NagiosXI? I saw an example but like above the patch is wrong. I would like to make sure the other options are appropriate before trying.
Code: Select all
EVENT CatchAll .1.* "SNMP Traps" Critical
FORMAT $D
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result "$r"
"snmp_traps" 2 "$O: $1 $2 $3 $4 $5"