fortigate_exporter icon indicating copy to clipboard operation
fortigate_exporter copied to clipboard

Metrics to detect a device failover

Open galcorlo opened this issue 3 years ago • 1 comments

With the following endpoint /api/v2/monitor/system/ha-checksums we would be able to check which role (master/slave) has each node. It would be nice to have the following information:

  • is_manage_master
  • serial_no

Having the node name would be also good but this information is not provided into the same api endpoint...

If you think it could be useful for other people I would be happy to have this information too.

Thank you very much for this software!

galcorlo avatar Aug 03 '22 12:08 galcorlo

Hi,

The role definitely feels like something we should have, I was surprised to learn that we don't - at least I can't find a metric for it now straight away. For serial, we already have it in fortigate_ha_member_info.

Are you able to contribute an example JSON dump from the relevant API endpoint? That way somebody can add the metric

bluecmd avatar Aug 07 '22 05:08 bluecmd