Ad Widget

Collapse

custom trapper items in notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exentrius
    Junior Member
    • Aug 2014
    • 2

    #1

    custom trapper items in notifications

    Hi everyone,

    I have a custom item that is a trapper who receive informacion of a server. it's a percentaje of a free disk of a server that it's critical and need to be empty.
    so when the trigger of the space of this filesystem run, it fire a script that clean a specific folder. Then i run a script that get the actual free space and store this value in this custom item that i created.
    The las thing is to fire a new email that should inform the new free percentaje value of the file sysytem.

    The problem that i have is that i don't know how to call this item becouse i see that all in this case are variables of the trigger.

    i use {custom.item} but i cannot make it work correctly.

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

    #2
    You can't use {custom.item} directly. Workaround: add new (smart) condition to your existing trigger:
    Code:
    AND <ALWAYS TRUE CONDITION WITH {custom.item}>
    And then use it as "trigger variable".
    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

    • exentrius
      Junior Member
      • Aug 2014
      • 2

      #3
      good solution and thanks jan.garaj, but i think that i could make zabbix more flexible if there a way to insert more information in the notification.

      For example, you have a processor overload, and in the notification you want to insert something like the disk load or the memory load. You would say that for that, the history can be checked. But if i'm not in front of a pc to get into zabbix, it could be usefull extra information that can help me quickly.

      i will apply this workaround that will help me, but more of this dynamic data use, could help a lot.


      thanks

      Comment

      Working...