Page 1 of 1

snmptt.conf question

Posted: Mon Sep 10, 2012 10:47 am
by jbennett
I noticed that I have a number of duplicate, and even triplicate, trap entries in my snmptt.conf file.

An example:

Starting at line 1077:

Code: Select all

#
EVENT ushaUpsFailed .1.3.6.1.4.1.2468.1.2.1.2.0.6 "Status Events" Critical
FORMAT SEVERE: The ups is not working fine. $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "SEVERE: The ups is not working fine. $*"
SDESC
SEVERE: The ups is not working fine.
Variables:
EDESC
#
Then agian at line 2274:

Code: Select all

#
EVENT ushaUpsFailed .1.3.6.1.4.1.2468.1.2.1.2.0.6 "Status Events" Critical
FORMAT SEVERE: The ups is not working fine. $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "SEVERE: The ups is not working fine. $*"
SDESC
SEVERE: The ups is not working fine.
Variables:
EDESC
#
Is this the result of importing the same MIB multiple times? Am I safe to remove the duplicates?

Re: snmptt.conf question

Posted: Mon Sep 10, 2012 11:32 am
by scottwilkerson
Yes. and Yes, as long as they are exact.

Re: snmptt.conf question

Posted: Mon Sep 10, 2012 11:43 am
by jbennett
Thank you!