F5 Status Alert Template Help Please

I’ve been trying to figure this out without asking for help but my head hurts so reaching out since I feel its probably something simple.

GOAL
If os = f5 then include in email alerts
Sync Status & whether its Active or Standby

REFERENCE
HA Sync Status
sensor_class = state
sensor_oid = .1.3.6.1.4.1.3375.2.1.14.1.1.0
sensor_type = sysCmSyncStatusId
sensor_descr = sysCmSyncStatusId.0
sensor_current = 3

Closest I could come to this is:
@foreach ($alert->faults as $key => $value)
#{{ $key }}: {{ $value[‘string’] }}
@endforeach
@endif
which produced
sensor_oid = .1.3.6.1.4.1.3375.2.1.14.1.1.0; sensor_descr = sysCmSyncStatusId.0; state_descr = syncDisconnected;


Failover Status: ACTIVE
sensor_class = state
sensor_oid = .1.3.6.1.4.1.3375.2.1.14.3.1.0
sensor_type = sysCmFailoverStatusId
sensor_descr = sysCmFailoverStatusId.active
sensor_current = 4

Have not had any luck getting this displayed on my emails (is the box Active or Standby)


Failover Status: STANDBY
sensor_class = state
sensor_oid = .1.3.6.1.4.1.3375.2.1.14.3.1.0
sensor_type = sysCmFailoverStatusId
sensor_descr = sysCmFailoverStatusId.standby
sensor_current = 3

Have not had any luck getting this displayed on my emails (is the box Active or Standby)

More info for the F5 HA Sync Status
HA Sync STATUS
devices.os = “f5” AND sensors.sensor_type = “sysCmSyncStatusId” AND sensors.sensor_current = 0
sensors.sensor_current (3 = InSync)
SYNTAX INTEGER {
unknown(0),
syncing(1),
needManualSync(2),
inSync(3),
syncFailed(4),
syncDisconnected(5),
standalone(6),
awaitingInitialSync(7),
incompatibleVersion(8),
partialSync(9)
}

I don’t have the Active/Standby info since I have been focusing so much on sync status

What’s the actual rule you are using as you will only have fault data if you are querying the right table etc.

This is the Alert Rule I have at the moment

After re-reading what you said about “querying the right table” I updated the alert rule which I believe now I should be able to use this in the alert template?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.