Hi,
Still a bit of a newbie with SNMP and HQ but I'm trying to create an SNMP plugin for a Fortinet device using just XML. Some of the metrics and/or properties that I'd like to pull from the device simply return a decimal value where each value represents a textual option.
For example, If I query fnSysHaMode (high availability mode) I get a value from 1 to 3, each corresponding to standalone, active-active, and active-passive. In the MIB file from Fortinet, there are sections describing each option but I can't seem to work out how to use this information programmatically.
Using the above example, the relevant sections in the MIB are:
FnHaMode ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "enumerated type for HA cluster modes"
SYNTAX INTEGER {
standalone ( 1 ),
activeActive ( 2 ),
activePassive ( 3 )
}
and further down there is:
fnSysHaMode OBJECT-TYPE
SYNTAX FnHaMode
MAX-ACCESS read-only
STATUS current
DESCRIPTION "High-availabilty mode (Standalone, A-A or A-P)"
::= { fnSystem 6 }
Can anyone help?
TIA,
Adrian