5.02021-11-21T21:48:19ZUPSMonitoring UPSMonitoring UPS## Overview
Hi
Here is a template for Socomec UPS.
It is made mostly with traps.
Triggers are included.
Do not hesitate to ask me questions if you have some.
Thanks.
## Author
Vincent MATIAS
UPSAlarmBatteryFallbackLoadOutputPowerRedoundancyStatusTemperatureTest- {HOST.NAME} pingSIMPLEicmpping[]30s2dStatus
- UPS trap fallbackSNMP_TRAPsnmptrap.fallback02d0LOGFallback{strlen()}>1Unknown trap received from {HOST.NAME}AVERAGEYES
- {HOST.NAME} alarm entry addedSNMP_TRAPsnmptrap["upsTrapAlarmEntryAdded"]02d0LOGThis 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.Alarm{last()}=1{HOST.NAME} alarm entry addedDISABLEDINFOThis 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.YES
- {HOST.NAME} alarm entry removedSNMP_TRAPsnmptrap["upsTrapAlarmEntryRemoved"]02d0LOGThis 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.Alarm{last()}=1{HOST.NAME} alarm entry removedDISABLEDINFOThis 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.YES
- {HOST.NAME} battery lowSNMP_TRAPsnmptrap["upsTrapBatteryLow"]02d0LOGSEVERE: Battery is near to be discharged.Battery
- {HOST.NAME} battery test failedSNMP_TRAPsnmptrap["upsTrapBattTestFailed"]02d0LOGSEVERE: UPS failed the last test of battery.Test{last()}=1{HOST.NAME} battery test failedAVERAGESEVERE: UPS failed the last test of battery.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1
- {HOST.NAME} imminent stopSNMP_TRAPsnmptrap["upsTrapImminentStop"]02d0LOGSEVERE: The UPS is near to switch off the
output power.Output
- {HOST.NAME} output is on BatterySNMP_TRAPsnmptrap["upsTrapOnBattery"]02d0LOGThe 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.Output
- {HOST.NAME} est sur batterieSNMP_TRAPsnmptrap["upsTrapOnBatteryPower"]02d0LOGWARNING: The UPS has switched to battery backup power.Battery
- {HOST.NAME} output is on mainsSNMP_TRAPsnmptrap["upsTrapOnMains"]02d0LOGSEVERE: The UPS output is on mains.Output
- {HOST.NAME} overloadingSNMP_TRAPsnmptrap["upsTrapOverload"]02d0LOGSEVERE: The UPS has sensed a load greater than 100 percent
of its rated capacity.Load
- {HOST.NAME} temperature higher than its limitSNMP_TRAPsnmptrap["upsTrapOverTemperature"]02d0LOGSEVERE: The UPS has sensed a temperature
greater than its limit.Temperature
- {HOST.NAME} : Power restoredSNMP_TRAPsnmptrap["upsTrapPowerRestored"]02d0LOGINFORMATION: Input power has been restored.Power
- {HOST.NAME} redundancy lostSNMP_TRAPsnmptrap["upsTrapRedoundancyLost"]02d0LOGSEVERE: Redoundancy is lost.Redoundancy
- {HOST.NAME} test completedSNMP_TRAPsnmptrap["upsTrapTestCompleted"]02d0LOGThis trap is sent upon completion of a UPS diagnostic
test.Test{last()}=1{HOST.NAME} test completedINFOThis trap is sent upon completion of a UPS diagnostic
test.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1
- {HOST.NAME} status is normalSNMP_TRAPsnmptrap["upsTrapUpsNormal"]02d0LOGINFORMATION: The UPS status is normal.Status
- {HOST.NAME} turned offSNMP_TRAPsnmptrap["upsTurnedOff"]02d0LOGWARNING: The UPS has been turned off by the management station.Status
- {HOST.NAME} statusSNMP_AGENT.1.3.6.1.4.1.4555.1.1.1.1.1.1.0upsIdentModel.02d0TEXTStatus
{$SNMP_COMMUNITY}{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapBatteryLow")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapBatteryLow")}=1{HOST.NAME} battery lowAVERAGESEVERE: Battery is near to be discharged.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapImminentStop")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapImminentStop")}=1{HOST.NAME} imminent stopAVERAGESEVERE: The UPS is near to switch off the
output power.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{HOST.NAME} injoignableHIGH{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapOverload")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapOverload")}=1{HOST.NAME} is overloadingAVERAGESEVERE: The UPS has sensed a load greater than 100 percent
of its rated capacity.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapOnBattery")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapOnBattery")}=1{HOST.NAME} output is on BatteryWARNINGThe 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.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapOnMains")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapOnMains")}=1{HOST.NAME} output is on mainsAVERAGESEVERE: The UPS output is on mains.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapPowerRestored")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapPowerRestored")}=1{HOST.NAME} Power has been restoredINFOINFORMATION: Input power has been restored.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapRedoundancyLost")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapRedoundancyLost")}=1{HOST.NAME} redundancy lostAVERAGESEVERE: Redoundancy is lost.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapUpsNormal")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapUpsNormal")}=1{HOST.NAME} status is normalINFOINFORMATION: The UPS status is normal.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapOnBatteryPower")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapOnBatteryPower")}=1{HOST.NAME} switched to battery backup powerWARNINGWARNING: The UPS has switched to battery backup power.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTrapOverTemperature")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTrapOverTemperature")}=1{HOST.NAME} temperature higher than its limitAVERAGESEVERE: The UPS has sensed a temperature
greater than its limit.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1{Monitoring UPS:snmptrap["upsTrapAlarmEntryAdded"].str("upsTurnedOff")}=1RECOVERY_EXPRESSION{Monitoring UPS:snmptrap["upsTrapAlarmEntryRemoved"].str("upsTurnedOff")}=1{HOST.NAME} turned offWARNINGWARNING: The UPS has been turned off by the management station.YES{HOST.NAME} injoignable{Monitoring UPS:icmpping[].last(#3)}=0 or {Monitoring UPS:upsIdentModel.0.nodata(180)}=1