Ad Widget

Collapse

create host macro to cover all interfaces for temp warn thresholds on switch?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iislas
    Junior Member
    • Jun 2023
    • 1

    #1

    create host macro to cover all interfaces for temp warn thresholds on switch?

    hey guys,

    I am using snmp to query a switch and noticed that the default value on the template does not match the warn and critical threshold on the switch, which is throwing false positives for all physical interfaces, is there a way to create a host macro that would include all interfaces under the host? I am looking to edit the following:

    {$TEMP_WARN:"Ethernet1/22(celsius)"}

    I have tried:

    {$TEMP_WARN:"Ethernet1/[*](celsius)"}
    {$TEMP_WARN:"Ethernet1/*(celsius)"}
    {$TEMP_WARN:"Ethernet*(celsius)"}

    I can create individual host macros but would be nice if I can create just one host macro to cover all interfaces.

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

    #2


    {$TEMP_WARN:"Ethernet1/\d+*(celsius)"}

    Comment


    • iislas
      iislas commented
      Editing a comment
      Thanks for the information, I have tested using that, it will take it when I click save but it will not clear the trigger for this. I have also tried:

      {$TEMP_WARN:"Ethernet.(celsius)"}
      {$TEMP_WARN:"Ethernet."}
      Last edited by iislas; 22-06-2023, 22:20.
Working...