Currently the plugin uses iso.3.6.1.2.1.1.1.0 as systemname lookup:
my $oid_unitdesc = ".1.3.6.1.2.1.1.1.0"; # Location of Fortinet device description... (String)
However this is a problem because on my Fortigate 300D this value is the same for both master and slave firewalls. This is the value which is defined in Config -> SNMP (Description). So this is rather a cluster description.
Currently the plugin uses iso.3.6.1.2.1.1.1.0 as systemname lookup:
However this is a problem because on my Fortigate 300D this value is the same for both master and slave firewalls. This is the value which is defined in Config -> SNMP (Description). So this is rather a cluster description.
When I change the description in the SNMP config, the value changes for both master and slave firewalls.
To use the correct hostname, rather use 1.3.6.1.2.1.1.5.0 which is the FQDN and works correctly: