Here is my new, consolidated snmptt.conf:
Code: Select all
#
#
#
EVENT coldStart .1.3.6.1.6.3.1.1.5.1 "Status Events" Normal
FORMAT Device reinitialized (coldStart)
#EXEC qpage -f TRAP notifygroup1 "Device reinitialized (coldStart)"
SDESC
A coldStart trap signifies that the SNMPv2 entity, acting
in an agent role, is reinitializing itself and that its
configuration may have been altered.
EDESC
#
#
#
EVENT warmStart .1.3.6.1.6.3.1.1.5.2 "Status Events" Normal
FORMAT Device reinitialized (warmStart)
#EXEC qpage -f TRAP notifygroup1 "Device reinitialized (warmStart)"
SDESC
A warmStart trap signifies that the SNMPv2 entity, acting
in an agent role, is reinitializing itself such that its
configuration is unaltered.
EDESC
#
#
#
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"
SDESC
A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus.
EDESC
#
#
#
EVENT linkUp .1.3.6.1.6.3.1.1.5.4 "Status Events" Normal
FORMAT Link up on interface $1. Admin state: $2. Operational state: $3
#EXEC qpage -f TRAP notifygroup1 "Link up on interface $1. Admin state: $2. Operational state: $3"
SDESC
A linkUp trap signifies that the SNMP entity, acting in an
agent role, has detected that the ifOperStatus object for
one of its communication links left the down state and
transitioned into some other state (but not into the
notPresent state). This other state is indicated by the
included value of ifOperStatus.
EDESC
#
#
#
EVENT authenticationFailure .1.3.6.1.6.3.1.1.5.5 "Status Events" Normal
FORMAT SNMP athentication failure
#EXEC qpage -f TRAP notifygroup1 "SNMP authentication failure"
SDESC
An authenticationFailure trap signifies that the SNMPv2
entity, acting in an agent role, has received a protocol
message that is not properly authenticated. While all
implementations of the SNMPv2 must be capable of generating
this trap, the snmpEnableAuthenTraps object indicates
whether this trap will be generated.
EDESC
#
#
#
#
MIB: LIEBERT-GP-AGENT-MIB (file:/usr/share/snmp/mibs/LIEBERT_GP_AGENT.MIB) converted on Tue Oct 17 11:27:45 2017 using snmpttconvertmib v1.4beta2
#
#
#
EVENT lgpAgentDeviceCommunicationLost .1.3.6.1.4.1.476.1.42.2.3.0.1 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The agent has lost communications with a managed device. $*
SDESC
The agent has lost communications with a managed device.
Variables:
1: sysUpTime
EDESC
#
#
#
EVENT lgpAgentFirmwareUpdateSuccessful .1.3.6.1.4.1.476.1.42.2.3.0.5 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The firmware update to the agent card has completed successfully. $*
SDESC
The firmware update to the agent card has completed successfully.
Variables:
1: sysUpTime
EDESC
#
#
#
EVENT lgpAgentFirmwareCorrupt .1.3.6.1.4.1.476.1.42.2.3.0.6 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The firmware update to the agent card has failed and the firmware is $*
SDESC
The firmware update to the agent card has failed and the firmware is
now corrupt.
Variables:
1: sysUpTime
EDESC
#
#
#
EVENT lgpAgentHeartbeat .1.3.6.1.4.1.476.1.42.2.3.0.7 "Status Events" Critical
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The agent card is alive. $*
SDESC
The agent card is alive.
Variables:
1: sysUpTime
2: lgpConditionsPresent
3: lgpAgentConnectedDeviceCount
EDESC
#
#
#
EVENT lgpAgentDnsLookupFailure .1.3.6.1.4.1.476.1.42.2.3.0.8 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT A Domain Name System (DNS) lookup of a network name failed to $*
SDESC
A Domain Name System (DNS) lookup of a network name failed to
resolve. This may result in one or more of the following:
1. failure to notify a target address of an important condition
2. failure allow access for monitoring purposes
This issue should be resolved as soon as possible with a
network or system administrator.
Variables:
1: sysUpTime
2: lgpNetworkName
EDESC
#
#
#
EVENT lgpAgentDeviceCommunicationLostLegacy .1.3.6.1.4.1.476.1.42.2.3.0.0.1 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The agent has lost communications with a managed device. $*
SDESC
The agent has lost communications with a managed device.
Variables:
1: sysUpTime
EDESC
#
#
#
EVENT lgpAgentFirmwareUpdateSuccessfulLegacy .1.3.6.1.4.1.476.1.42.2.3.0.0.5 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The firmware update to the agent card has completed successfully. $*
SDESC
The firmware update to the agent card has completed successfully.
Variables:
1: sysUpTime
EDESC
#
#
#
EVENT lgpAgentFirmwareCorruptLegacy .1.3.6.1.4.1.476.1.42.2.3.0.0.6 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The firmware update to the agent card has failed and the firmware is $*
SDESC
The firmware update to the agent card has failed and the firmware is
now corrupt.
Variables:
1: sysUpTime
EDESC
#
#
#
EVENT lgpAgentHeartbeatLegacy .1.3.6.1.4.1.476.1.42.2.3.0.0.7 "Status Events" Critical
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT Well this is bullshit.
SDESC The agent card is alive.
EDESC
#
#
#
EVENT lgpAgentDnsLookupFailureLegacy .1.3.6.1.4.1.476.1.42.2.3.0.0.8 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT A Domain Name System (DNS) lookup of a network name failed to $*
SDESC
A Domain Name System (DNS) lookup of a network name failed to
resolve. This may result in one or more of the following:
1. failure to notify a target address of an important condition
2. failure allow access for monitoring purposes
This issue should be resolved as soon as possible with a
network or system administrator.
Variables:
1: sysUpTime
2: lgpNetworkName
EDESC
#
#
#
#
MIB: LIEBERT-GP-SYSTEM-MIB (file:/usr/share/snmp/mibs/LIEBERT_GP_SYSTEM.MIB) converted on Tue Oct 17 18:23:51 2017 using snmpttconvertmib v1.4beta2
#
#
#
EVENT lgpSysNotification .1.3.6.1.4.1.476.1.42.3.7.8.1 "Status Events" Critical
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT This notification is a generic notification intended for direct user $*
SDESC
This notification is a generic notification intended for direct user
visibility. The user event description identifies the system
condition that has occurred. This text will be prefixed with either
'Active:', 'Cleared:', or 'Message:' depending on the state of the
event. Note: That a prefix of 'Message:' identifies a stateless event
and as such there will be no corresponding 'Cleared:' trap sent.
Variables:
1: sysUpTime
2: lgpSysEventDescription
EDESC
#
#
#
EVENT lgpSysCritical .1.3.6.1.4.1.476.1.42.3.7.8.2 "Status Events" Critical
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The system has returned to a Critical operating state. This implies $*
SDESC
The system has returned to a Critical operating state. This implies
prior to the generation of this event the system was operating in a
state where one or more alarm or warning conditions were present.
All of those alarms or conditions have now cleared.
NOTE: This notification may be generated after a short delay during a
cold boot of the system -- if no alarms or conditions are present in the
monitored device(s) at that time.
Variables:
1: sysUpTime
2: lgpAgentConnectedDeviceCount
EDESC
#
#
#
#
MIB: UPS-MIB (file:/usr/share/snmp/mibs/RFC1628_UPS_MIB.MIB) converted on Thu Oct 19 13:51:06 2017 using snmpttconvertmib v1.4beta2
#
#
#
EVENT upsTrapOnBattery .1.3.6.1.2.1.33.2.1 "Status Events" Critical
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The UPS is operating on battery power. This trap is $*
SDESC
The UPS is operating on battery power. This trap is
persistent and is resent at one minute intervals until
the UPS either turns off or is no longer running on
battery.
Variables:
1: upsEstimatedMinutesRemaining
2: upsSecondsOnBattery
3: upsConfigLowBattTime
EDESC
#
#
#
EVENT upsTrapTestCompleted .1.3.6.1.2.1.33.2.2 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT This trap is sent upon completion of a UPS diagnostic $*
SDESC
This trap is sent upon completion of a UPS diagnostic
test.
Variables:
1: upsTestId
2: upsTestSpinLock
3: upsTestResultsSummary
4: upsTestResultsDetail
5: upsTestStartTime
6: upsTestElapsedTime
EDESC
#
#
#
EVENT upsTrapAlarmEntryAdded .1.3.6.1.2.1.33.2.3 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT This trap is sent each time an alarm is inserted into $*
SDESC
This trap is sent each time an alarm is inserted into
to the alarm table. It is sent on the insertion of
all alarms except for upsAlarmOnBattery and
upsAlarmTestInProgress.
Variables:
1: upsAlarmId
2: upsAlarmDescr
EDESC
#
#
#
EVENT upsTrapAlarmEntryRemoved .1.3.6.1.2.1.33.2.4 "Status Events" Normal
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT This trap is sent each time an alarm is removed from $*
SDESC
This trap is sent each time an alarm is removed from
the alarm table. It is sent on the removal of all
alarms except for upsAlarmTestInProgress.
Variables:
1: upsAlarmId
2: upsAlarmDescr
EDESC
Code: Select all
EVENT lgpAgentHeartbeatLegacy .1.3.6.1.4.1.476.1.42.2.3.0.0.7 "Status Events" Critical
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "$*"
FORMAT The agent card is alive.
SDESC The agent card is alive.
EDESCCode: Select all
Wed Nov 1 17:05:55 2017 .1.3.6.1.4.1.476.1.42.2.3.0.0.7 Critical "Status Events" 10.10.99.245 - The agent card is alive. 12:2:53:24.90 0 1Code: Select all
SERVICE ALERT: Core UPS Rack 3 .245;SNMP Traps;CRITICAL;HARD;1;12:2:53:24.90 0 1 / sysUpTime (TICKS):12:2:53:24.90 lgpConditionsPresent (GAUGE):0 lgpAgentConnectedDeviceCount (UNSIGNED32):1