Ad Widget

Collapse

Trigger of a calculated item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nerijus
    Junior Member
    • Jun 2008
    • 15

    #1

    Trigger of a calculated item

    Hello,

    I changed "Number of running processes apache" from type "Zabbix agent" to "Calculated" and Key from proc.num[httpd] to proc.num[httpd]+proc.num[apache2]. Now I want to create trigger when item is < 1, ho do I do that?
    {Template_Linuxroc.num[httpd]+proc.num[apache2]}<1 and {Template_Linux:"proc.num[httpd]+proc.num[apache2]"}<1 gives an error:
    An item key must be used in trigger expression.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    if you want to do that, you must have those items you reference. so with your approach you would end up with 3 items - two to count different apache process names, and one to sum them.
    i'd suggest having two items and working with them in the trigger expression instead. actually, zabbix appliance that was just releases has an example just like that, i'd suggest checking it out
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...