Ad Widget

Collapse

Problem with Actions!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rjorge99
    Junior Member
    • Mar 2008
    • 27

    #1

    Problem with Actions!!

    Hi, Im using ZABBIX 1.4.5; the problem is the next...

    I created a Template for server monitoring; I add items to monitor in this template; then I add Triggers to this template, for example:

    ITEM in Template_Servidores
    ---------------------------------------------------------
    Item:
    Description
    Free disk space on cPorcentaje)

    Key
    vfs.fs.size[c:,pfree]
    ---------------------------------------------------------

    Trigger in Template Servidores
    ---------------------------------------------------------------
    Name:
    Espacio en C: entre 36% y 64%

    Expression:
    ({Template_Servidores:vfs.fs.size[c:,pfree].last(0)}<64)&({Template_Servidores:vfs.fs.size[c:,pfree].last(0)}>36)
    ---------------------------------------------------------------------


    So if I Add a Host with the "template Servidores" I add the item and tigger to the host:
    Item in host to monitor:
    -------------------------------------------------------
    Description:
    Template_Servidores:Free disk space on cPorcentaje)

    Key
    vfs.fs.size[c:,pfree]
    ----------------------------------------------------------

    Trigger in host to monitor:
    ------------------------------------------------------------
    Name:
    Template_Servidores:Espacio en C: entre 36% y 64%

    Expression:
    ({Camaras Nainari:vfs.fs.size[c:,pfree].last(0)}<64)&({Camaras Nainari:vfs.fs.size[c:,pfree].last(0)}>36)

    -----------------------------------------------------------------------


    So, the action for this is:
    Name:
    Espacion en C entre el 36% y 64%

    Conditions:
    Trigger = "Espacio en C: entre 36% y 64%"
    Trigger value = "TRUE"

    Operations:
    Send message to Group "Zabbix administrators"
    ------------------------------------------------------------------------------


    The problem is that I have assigned this Template to 4 hosts, I have other items like the one that i showed; when a tigger is fired, this could be fired for one host or 4; I mean, the trigger can be fired for more than one host at the time, when this happend, no one action is fired; I dont know why, this should work right???

    What I have wrong??

    I only need to create one item, one trigger and one action right?? if I one to monitor host with the same parameters!!

    May be the actions are wrong???

    Thanks for you help
  • artesvida
    Junior Member
    • May 2007
    • 18

    #2
    Maybe it's a trigger problem

    If I'm reading your expression correctly, you're asking the trigger to fire if the C: drive has between 36% and 64% free. I think you really want the trigger to fire if the C: drive has less than X% free. (Do you really care if has 64% or more free?) The expression should be for the problem condition. It is a problem when your disk free space is less than X%. It isn't a problem when it's over Y%. That's how you should set up your trigger.

    Comment

    • rjorge99
      Junior Member
      • Mar 2008
      • 27

      #3
      Hi, thanks.. I really care because I need a alarm of "Warning" when the C: has between 36&% and 64%; and other of "high" when it has less than 35% free. Thats the values because Im talking of Free porcent free; so:
      Less than 35%: High
      Between: 36% and 64% Warning
      More tan 65% free non action

      Comment

      • rjorge99
        Junior Member
        • Mar 2008
        • 27

        #4
        I check the themplate and I had errors I think, because in the Triggers of the template I had the name for example:

        Uso de CPU.

        So all the hosts with this template had the trigger name of:

        Uso de CPU.

        But I changed the name of the trigger in the template:

        Uso de CPU en {HOSTNAME}


        So. the host now has the name of:
        Uso de CPU en 12.12.12.12
        Uso de CPU en 13.13.13.13

        changing the {HOSTNAME} for the name of the host, sow, now i can add a action for each host; but, do i need do this??

        Or can i add an action for the "Template" and the actions will be added to the hosts??!!

        I ask this because I add an action for each host:

        An action wheN:
        Uso de CPU en 12.12.12.12 is true
        Uso de CPU en 13.13.13.13 is true

        etc.
        Thanks

        Comment

        • artesvida
          Junior Member
          • May 2007
          • 18

          #5
          Problem with actions

          Sorry, misunderstood.

          You should only add a triggers to the template, then link the template to the hosts. When a template is linked to the host, you should be able to see all the template's triggers on the host. You can disable the triggers on the hosts where it doesn't apply.

          You should only need one action. Set the action to react the trigger severity. So, set the e-mails to fire when trigger severity >= "Warning" regardless of which host generated the action.

          Comment

          • Villain
            Member
            • Aug 2006
            • 84

            #6
            Same types of issue

            I'm having the same type of issues with our actions. We hadn't really used them for much before, but now that we're really starting to use Zabbix for more monitoring, I am finding a very difficult limitation in how Actions work.

            Example:

            I added an ICMP Ping item to the default Linux template. I then setup a trigger as follows:

            Trigger = {Template_Linux:icmpping.last(0)}=0

            Action:

            Server Group = Linux Servers
            Trigger = Ping Check (described above)
            Trigger Value = True
            Send Message to Single User (alerts)

            My thought is that this should tell me when any Linux Server (that's listed in the Linux Servers group) fails to respond to a ping, I should get a message to my Single User named alerts. I can then unplug a server from this group, and I see the display for it change in 'Monitoring' -> 'Latest Data' however, no action is taken.

            Is this due to the trigger being called from the template vs. a specific machine? or is this because the host is listed as part of a host group and not specified individually?

            So far, my tests haven't been conclusive on this, so I would like to get more information on what can be used to create an action. Am I not able to use templates to determine the trigger? If that's the case, then I have a really desirable feature request to add for the next release.

            Comment

            Working...