Ad Widget

Collapse

Best practices for trigger customization per host?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dan18
    Junior Member
    • Jan 2019
    • 9

    #1

    Best practices for trigger customization per host?

    I am quite new to zabbix and I wonder about the best way to set host specific trigger values.

    This is merely an example to understand the best practice:
    Let's say I have 3 linux hosts (hosta, hostb, hostc). I only have assigned the template "Template OS Linux".

    hosta has an average number of processes, but hostb and hostc, each have quite some high number of processes and I do want to customize the trigger for those.

    Looking at i.e-. the trigger for the average number of processes over the last 5 minutes:
    I decide to have triggers as follows

    hosta: keep the standard of >300
    hostb: increase the trigger to >700
    hostc: increase the trigger to >900

    However, I cannot i.e. change the value 300 to 700 in hostb, since it is read-only.

    Now comes the question:
    What is the best way to achieve this?
    I mean, being able to customize trigger value per host.
    I can disable single Applications, Items, Triggers, etc. per host.. but I cannot change values per host. This confuses me.


    I could
    - create new templates for hostb and hostc where I customize the proc.num for each. Thus I would end up with 3 templates, one for each of the hosts. That seems to me somewhat overkill and not in the spirit of templates.
    - in the host triggers: disable the respective trigger, clone, customize and assign it directly to the host (not so straightforward as i cannot clone a trigger within a template assigned to a host (for obvious reasons). I'll end up with a host having a template assigned, and one manually added trigger
    - in the host triggers: disable the respectivetrigger, create new triggger exactly the same way, customize. I'll end up with a host having a template assigned, and one manually added trigger.


    Perhaps there are better ways to do this?

    My goal is also to be able to identify my changes/customization in a way. If there is a template/zabbix upgrade, I would not want to redo all my customizations.

    Zabbix is so powerfull that is almost is
  • Dan18
    Junior Member
    • Jan 2019
    • 9

    #2
    anyone has an idea?

    Comment

    • boyemillar
      Member
      Zabbix Certified Specialist
      • Nov 2015
      • 33

      #3
      Why dont you create a template macro on "Template OS Linux" called {$PROCESSES} and give it the default 300 and then on

      hostb make the macro 700
      hostc make the macro 900

      We do this on our "Template OS Windows" to cover our Terminal Servers as they are spec'd to happily cope with 700 processes.

      Comment

      • Dan18
        Junior Member
        • Jan 2019
        • 9

        #4
        Originally posted by boyemillar
        Why dont you create a template macro on "Template OS Linux" called {$PROCESSES}
        Thanks a lot!

        This is exactly what I was looking for. Great! After reading the relevant section in the manual it was pretty obvious.

        I just wonder why the provided Templates do not implement this from the start.

        Dan

        Comment

        • troffasky
          Senior Member
          • Jul 2008
          • 567

          #5
          Some of them do and some of them don't, eg the Template Module ICMP Ping has macros for ping time and packet loss thresholds.

          Comment

          Working...