On Wed, 8 May 2019 08:43:14 +0200 Ingeborg Hellemo <ingeborg.hellemo@uit.no> wrote:
NAV 4.8.6
We have a Cisco catalyst switch with a broken power supply. After changing the power supply NAV shows Status "Unknown" in the /#!sensors page.
The ipdevpoll jobs runs without errors. Where shall I look?
NAV will discover the presence of PSUs using ENTITY-MIB. However, the actual status of discovered PSUs must be polled through proprietary MIBs. For Cisco, this is typically from CISCO-ENTITY-FRU-CONTROL-MIB. If the representation in CISCO-ENTITY-FRU-CONTROL-MIB cannot be correlated to the representation in ENTITY-MIB, then the status will be unknown to NAV. I've also seen devices report status values in CISCO-ENTITY-FRU-CONTROL-MIB that do not correspond to anything in the published MIB. Step 1: I would enable debug logging for powersupplywatch (`nav.powersupplywatch=DEBUG` in logging.conf), then run powersupplywatch.py manually to see what the output is. Step 2: You could query the CISCO-ENTITY-FRU-CONTROL-MIB::cefcFRUPowerStatusTable to see what it says (the specifically interesting column is cefcFRUPowerOperStatus, and the index value of each row should correspond to the index from ENTITY-MIB::entPhysicalTable). -- mvh Morten Brekkevold Uninett