Ad Widget

Collapse

Host name of a Host prototypes with multiple variable (multiple macro)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • itou
    Junior Member
    • Jul 2006
    • 2

    #1

    Host name of a Host prototypes with multiple variable (multiple macro)

    Hi,
    To make it straight, I have many Fortigate firewall and the default SNMP template or the template that I can find are not 100% suitable for me. So, I creating one.

    To better understand, for those who don't know Fortigate device, you can have multiple VDOM ( virtual independent firewall ).
    Since each VDOM can be treat as individual firewall, I could just manually create one host per VDOM and assign a template to it. But I largely prefer to have all VDOM create automatically with Host prototypes. (I have few dozen Fortigate device and all have, at least 2 VDOM. Some have up to 5)

    So, I've create a template (no issue with that).
    I've create a discovery rule for VDOM discovery.
    - Type : SNMPv2
    - Key : forti.fortigate.vdom
    - SNMP OID : discovery[{#SNMPVALUE},.1.3.6.1.4.1.12356.101.3.2.1.1.1,{#VD OMDESC},.1.3.6.1.4.1.12356.101.3.2.1.1.2]

    This discovery works fine, the {#SNMPVALUE} is assign with the VDOM ID and the {#VDOMDESC} is assign with the VDOM name. I'm able to create item prototype using both of it properly.

    So, I went to create my Host prototype and it's there that I have my issue.
    In Host name field, I cannot put only {#SNMPVALUE}. Since this macro is the VDOM ID, it's not unique because every Fortigate has VDOM 0.
    I cannot put {#VDOMDESC} because the first VDOM (id 0) has the name "root" and it cannot be change.

    Is there a way to put in the Host name field something like {HOST.NAME}_{#VDOMDESC}_{#SNMPVALUE}. This will give DC1-FWL1_root_0 for the first VDOM and DC1-FWL1_interco_1 for the second VDOM.

    Thanks in advance.
    Steve

Working...