title: FortiSwitch: Power Supply State
agents: snmp
catalog: hw/network/fortinet
license: GPLv2
distribution: Sher Zaman
description:
 Monitors power supply state of Fortinet FortiSwitch devices via the
 ENTITY-SENSOR-MIB truthvalue sensors (OK / Not OK). PSUs are discovered
 dynamically from the live sensor table; presence varies by chassis
 class and firmware, so units without PSU sensors simply discover no
 PSU services.

 A PSU reporting "not OK" maps to CRIT by default. The state is
 configurable via the "FortiSwitch PSU state" ruleset, e.g. to
 downgrade a known-unplugged second PSU to WARN.

item:
 The power supply number, e.g. "1", giving service names such as
 "PSU 1". Taken from the ENTITY-MIB name with the redundant "PSU"
 prefix removed.

discovery:
 One service is created per discovered power supply sensor.
