Ad Widget

Collapse

Email Template + Low Level Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tkrn
    Junior Member
    • May 2014
    • 10

    #1

    Email Template + Low Level Discovery

    Basically, we upgraded from Zabbix 1.8.9? to 2.2.3. We've noticed an error with our email templates when a trigger is raised. We also went to LLD with the partitions.

    I've tried values such as {{HOST.NAME}:vfs.fs.size[{#FSNAME},free].last(0)} without success. What are my options here to get the same data that we were getting before. Thanks!



    Zabbix 2.2.3 Result:

    Total Space (MB): *UNKNOWN*
    Space Free (MB): *UNKNOWN*
    Free: 20.34 %

    Zabbix 1.8.x Template:

    Total Space (MB): {ITEM.LASTVALUE3}
    Space Free (MB): {ITEM.LASTVALUE2}
    Free: {ITEM.LASTVALUE1}

    Zabbix 1.8.x Result:

    Total Space (MB): 10 GB
    Space Free (MB): 500 MB
    % Free: 4.88 %

  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Email template:
    Code:
    Total Space (MB): {ITEM.LASTVALUE3}
    Space Free (MB): {ITEM.LASTVALUE2}
    is ok.

    Lastvalue is UKNOWN:
    Code:
    Total Space (MB): *UNKNOWN*
    Space Free (MB): *UNKNOWN*
    if you don't mention items in trigger expression.

    So update your trigger and add there missed items (Total space/Space free). I recommend you add them as always true conditions. Proof of concept: (FREE<20%) AND (SPACE_FREE>0) AND (TOTAL_SPACE>0)
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • tkrn
      Junior Member
      • May 2014
      • 10

      #3
      Thanks for the hint. I figured it out. The value needs to be in the Expression before it can be referenced in an action/email.

      I went from (in my expression)

      {SW_Windows:vfs.fs.size[{#FSNAME},free].last(0)}<{$DISASTERSPACEBYTES}

      to

      ({SW_Windows:vfs.fs.size[{#FSNAME},free].last(0)}<{$DISASTERSPACEBYTES} | {SW_Windows:vfs.fs.size[{#FSNAME},pfree].last(0)}<{$DISASTERPCT}) & {SW_Windows:vfs.fs.size[{#FSNAME},total].last(0)}>0

      Thanks!

      Comment

      Working...