Ad Widget

Collapse

Using LLD Macros in trigger equations

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sbockelman
    Junior Member
    • Oct 2008
    • 16

    #1

    Using LLD Macros in trigger equations

    Here is what I am trying to accomplish. Custom vfs.fs.discovery that will return the following on each server:

    {#FSNAME} - name of the filesystem
    {#FSTYPE} - type of filesystem
    {#FSTRIGGER} - value in % that trigger will alert. This value will be pulled in from a file stored locally on a server or return a default. ie 90

    So for each filesystem, I will be able to modify what % the trigger gets set off at.

    This is what I want my trigger to look like:
    {Template_OS_Linux:vfs.fs.size[{#FSNAME},pused].last(0)}>{#FSTRIGGER}

    However, after saving I get:
    ERROR: Cannot update trigger
    * Array

    Is this just a bug in zabbix 1.9.1?
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    what is {#FSTRIGGER} actually ?
    so you mean saving the trigger works, but then you see the error in the frontend ? if so, where and when exactly do you see it ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • sbockelman
      Junior Member
      • Oct 2008
      • 16

      #3
      Lld

      Originally posted by richlv
      what is {#FSTRIGGER} actually ?
      so you mean saving the trigger works, but then you see the error in the frontend ? if so, where and when exactly do you see it ?
      {#FSTRIGGER} is returned by my custom discovery script. Example:

      {
      "{#FSNAME}":"\/",
      "{#FSTYPE}":"ext4",
      "{#FSTRIGGER}":"90"
      }

      The {#FSTRIGGER} is what will be customized by a local file on the server.

      I receive the error when I try to save the new trigger. The error appears in the web frontend at the top where errors and details normally appear.

      Also, I know the {#FSTRIGGER} works because I am able to use the macro in the item description.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        it would be nice if you could try with svn head or at least latest nightly snapshot - is the problem is still there, please, report it on the tracker
        Zabbix 3.0 Network Monitoring book

        Comment

        • sbockelman
          Junior Member
          • Oct 2008
          • 16

          #5
          Tried latest 1.9.2 download and it did not work. Submitted:

          Comment

          Working...