Ad Widget

Collapse

Is there any way to disable items from a trigger in a user defined template?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vpelagatti
    Junior Member
    • Jan 2019
    • 2

    #1

    Is there any way to disable items from a trigger in a user defined template?

    Hi,

    I'm a newbie on Zabbix. I've created a template with items and triggers for check Oracle availability and some metrics if it's available. Many items are irrelevant if Oracle is in stanby mode, so I would like to disable them if it's true. The items and triggers are enabled by default, so my goal would be disable (or re-enable) those are irrelevant if Oracle is stanby.

    Thanks in advice.
  • NielsPuttemans
    Junior Member
    • Nov 2019
    • 2

    #2
    I'm trying to do a similar thing but no joy so far. I made some Arduino temperature monitoring stations, they can have anywhere between 1 and 9 sensors and I would like to auto-disable any unneeded items on the host. There's a zabbix agent item returning the number of sensors and I'm trying to make a trigger that will disable any unavailable items. Sadly the only thing I seem to find is other people trying to do something similar but no solutions.

    Comment

    • 1berto
      Senior Member
      • Sep 2018
      • 182

      #3
      I think you can make it using Actions... Create a trigger with the condition that will disable the other items, and make it in the trigger action (you can reenable them in the recovery action).
      Note that if your conditions are very complex (like disabling a lot of items/triggers) maybe would be a good approach to create a specific script (using the API) and call this script in the action.

      In some scenarios Trigger hiearachy could also make the job, like don't fire a specific trigger if there is no ping...

      Comment

      Working...