Hello everyone! I cannot find any information about the HA FortiGate Firewall. Would it be possible to establish the monitoring for HA between the Primary and Secondary of FortiGate Firewall and how to create an alert for any failure? Thank you!
The first trick is to ensure your HA pair of Fortinets are set up with their own management address - that way you can monitor the state of each firewall independently.You will also need to create a UnDP using the OID: 1.3.6.1.4.1.12356.101.3.2.1.1.4 (fgVdEntHaState), and its possible results are:
You then need to assign the UnDP to the firewalls you want to monitor.
The alert is trickier but doable - essentially you are telling the alert to query if the last state of the the OID has changed. The alert logic looks like this:
With the editable part of the code looking like this:
SELECT CustomPollerAssignmentOnNode.Uri, CustomPollerAssignmentOnNode.DisplayName FROM Orion.NPM.CustomPollerAssignmentOnNode AS CustomPollerAssignmentOnNodeINNER JOIN(SELECTCustomPollerAssignmentID, Count(DISTINCT RawStatus) AS StatusesFROM Orion.NPM.CustomPollerStatisticswhereDatetime>Addminute(-30,GETUTCDATE())GROUP BY CustomPollerAssignmentID) AS HistoryON CustomPollerAssignmentOnNode.CustomPollerAssignmentID=History.CustomPollerAssignmentIDWHERECustomPollerAssignmentOnNode.CustomPollername='Fortigate_HA_State_Change'AND History.Statuses>1
WHERE CustomPollerAssignmentOnNode.CustomPollername='Fortigate_HA_State_Change'... the Fortigate_HA_State_Change has to match whatever you named your UnDP.
This one is primary - you only need to worry about the first row response, but the in this case the 2nd row just duplicates the result.
I'm trying to understand the result. Can you help me on this please? 1 - is Primary, Meaning for this device the primary is "ACTIVE" or being in used. and ROW ID: 2 which means Secondary is INACTIVE?
Hey! Thank you so much.. It really works! Appreciate the help.
The rows represent VDOMs. Technically, #1 should be root, which, in most cases, is pretty much the one you'd care about. If you need to do this alert on a per VDOM basis, you would have to poll each row separately instead of the whole table. Thanks Stuartd for making this easy for us I didnt had to reverse engineer the whole thing