Ad Widget

Collapse

Templates with Discovery Rules and Item Prototypes + Hello world!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rafaelbn
    Junior Member
    • Jun 2020
    • 2

    #1

    Templates with Discovery Rules and Item Prototypes + Hello world!

    Hello Zabbix Community! How are you doing?!

    I'm new to the product but I'm loving it so far.

    I would like to double check my understanding of templates, with discovery rules and item prototypes.

    I created a template to monitor the temperatures of a F5 chassi. Since this chassi is modular, I wanted to create a discovery rule for its temperature sensors and values itself.

    I created 1 discovery rule, with 2 item prototypes:
    1. One that I called "Sensor: {#SNMPVALUE}", which I wanted to create item names that mapped to the sensor name inside the chassi
    2. And a second called "Temperature: {#SNMPVALUE}", which is the temperature itself.
    I don't know if thats the correct way of working, but it's working how it's supposed to. What I'm not 100% sure is the key mapping I did. For the sensor name I created a key "f5.temp.sensor.[1.3.6.1.4.1.3375.2.1.3.2.4.2.1.3.{#SNMPINDEX}]" and for the temperature I created a sub-key called "f5.temp.sensor.value.[.1.3.6.1.4.1.3375.2.1.3.2.4.2.1.2.{#SNMPINDEX}]".

    Is this the correct way of doing this kind of stuff? In my mind I have to first create each item (hence the f5.tem.sensor) and after I have to give it a value reading. Is that correct?

    I'm attaching the template for reference. Please keep in mind that this is a work in progress template.

    Also: Hello world!

    Cheers and stay safe everybody!
    Rafael
    Attached Files
Working...