Alert rules for SRX juniper & Fortigate failover switching

From a quick dive it looks like out of the box:

  • SRX: no
  • Fortigate: probably like the Palo

SRX will only report this via traps, so it’s possible with some more work (LibreNMS read here) (and/or get creative with SLAX :slight_smile:) - I wasn’t using LibreNMS back when I had those running:

https://kb.juniper.net/InfoCenter/index?page=content&id=KB23921

Fortigate handling looks much like the Palo and should fall in to previous post about state sensors:

:~/includes/discovery/sensors/state$ grep -B5 CRITICAL fortigate.inc.php
    if (is_array($haStatsEntries)) {
        $stateName = 'clusterState';
        $descr = 'Cluster State';

        $states = [
            ['value' => 0, 'generic' => 2, 'graph' => 0, 'descr' => 'CRITICAL'],