Lorsque j’effectue un scan discovery(plugin Fortinet Fortigate) des interfaces d’un FW Fortinet
je souhaiterais obtenir un résultat type : Traffic-portX-”description_interfaceX”
A part la variable par défault $name$ (1.3.6.1.2.1.2.2.1.1 (ifName)) je n’obtiens aucun résultat lors du scan
Pour l’instant j’ai tenté un scan avec les OID suivants sans résultats
1.3.6.1.2.1.2.2.1.2 : Description Interface (ifDescr) 1.3.6.1.2.1.31.1.1.1.18 : Alias de l’interface (ifAlias)
1.3.6.1.4.1.12356.101.6.3.1.2 : Description de l'interface (fortinetIfDescr). 1.3.6.1.4.1.12356.101.6.3.1.3 : Alias de l'interface (fortinetIfAlias)
auriez vous une solution ?
Merci
Page 1 / 1
hello, please post in english :)
anyway, you cannot easily modify the “autodiscover” option, as they come from the check itself, you can execute the check command with --disco-format to see which macro/variable are returned by the check and used inside
for the check interface there is a “list-interface” option you can run :
this is what will be available for the discovery engine
you can also run the same command but instead of --disco-format, you put --disco-show, this will show you the the output of the discovery process on your specific fortigate (you would need to put the correct ip and snmp)
the solution : make your own discover command with some perl and query snmp, the only constraint is your script needs to output the xml in the same way the --disco-show is making
you can then create a new discovery rule, or modify the existing one to use your own command instead of the one provided by centreon.
alternatively, you could submit an idea (at the top of this page), or on the github,
I would have suggest to modify directly the plugin on a clone of the git, but i just checked
the “list-interface” command for fortinet is not specifically developped for fortinet, they used the standard mib snmp, so it is not just a simple modification or adding 2 lines, but that would developping a full “list-interface” module