Add SNMP trap for PSU power restore
An SNMP trap has been added for when power is restored to the power supply unit (PSU) on a FortiProxy. When the PSU regains power after an outage, an SNMP trap should be triggered. This enhances the monitoring capabilities of the FortiProxy.
In the GUI, the snmp-event::power-supply-failure event has been renamed to snmp-event::power-supply. In the CLI, the |
Example
In this example, the power-supply
event is applied in the SNMP community configuration. The SNMP trap messages are observed when the PSU cable is disconnected and reconnected.
To configure the SNMP community:
config system snmp community edit 1 set name "1" config hosts edit 1 set ip 1.1.1.1 255.255.255.255 next end set events power-supply next end
Sample log after the PSU cable is disconnected:
date=2024-10-21 time=15:04:54 eventtime=1729548295235784593 tz="-0700" logid="0100022105" type="event" subtype="system" level="critical" vd="root" logdesc="Power supply failed" action="power-supply-monitor" status="failure" unit=2 msg="PSU2 no longer detected"
Sample log after the PSU cable is reconnected:
date=2024-10-21 time=15:05:00 eventtime=1729548301287147636 tz="-0700" logid="0100022104" type="event" subtype="system" level="critical" vd="root" logdesc="Power supply restored" action="power-supply-monitor" status="restore" unit=2 msg="PSU2 restored"