Ad Widget

Collapse

Template Items Based on Data Pulled From Device

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cojaxx
    Junior Member
    • Oct 2023
    • 4

    #1

    Template Items Based on Data Pulled From Device

    Hello,

    I have a bunch of FortiSwitches that I assign a Template to which has a several checks.

    One of the checks is to report on the status of the PSUs.

    In the 400 FortiSwitch Series the OIDs for the PSUs are:

    PSU 1 - SNMPv2-SMI::mib-2.99.1.1.1.4.6
    PSU 2 - SNMPv2-SMI::mib-2.99.1.1.1.4.7

    But in the 1000 series the OIDs are:

    PSU 1 - SNMPv2-SMI::mib-2.99.1.1.1.4.7
    PSU 2 - SNMPv2-SMI::mib-2.99.1.1.1.4.8

    I currently assign the same template to both switches as 99% of the OIDs are the same.

    Wondering what the best way to sort this is? I would like to keep the number of templates down to a minimum and not have separate ones for the 400 and 1000 series switches.

    Is there a way to only add a check based on a condition (Like a SNMP lookup)?

    Interested to hear what others are doing in this scenario.

    Regards,
    Peter
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    May be dynamic indexes can help

    Comment

    • cojaxx
      Junior Member
      • Oct 2023
      • 4

      #3
      Thanks Hamardaban. I'm a little confused as to how I would actually implement that.

      Do you know whether it is possible to put a Filter on an Item so that it checks a specific OID prior to being added?

      SNMPv2-SMI::mib-2.47.1.1.1.1.13.1 = STRING: "FSW_1024D"
      SNMPv2-SMI::mib-2.47.1.1.1.1.13.1 = STRING: "FSW_1024E"
      SNMPv2-SMI::mib-2.47.1.1.1.1.13.1 = STRING: "FSW_448E-F"
      SNMPv2-SMI::mib-2.47.1.1.1.1.13.1 = STRING: "FSW_448E-P"​

      I've managed to find the OID that relates to the switch model number. If I could filter based on that then the Item could be configured to only be added when matching a specific model.

      Filters can be applied through Discovery Rules, but I'm having a hard time figuring out the correct settings for it.

      Comment

      Working...