Ad Widget

Collapse

Help with triggers and actions/expressions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wmo
    Junior Member
    • Feb 2007
    • 18

    #1

    Help with triggers and actions/expressions

    Hi all,

    i got a problem with the way how i can let zabbix report certain data to us when a trigger is set.

    For instance, i would like zabbix to report to me when computer_A has equaled or passed a predefined numbe rof processes.

    In the email being sent to me i not only want to see the processes message but i also want to see some more info about the affected system.

    So i have set-up the following in Zabbix:

    There are to many processen running on: {HOSTNAME} with {IPADDRESS}

    More info about {HOSTNAME}:

    Total on C: {vfs.fs.size[c:,total].last(0)}
    Free on C: {vfs.fs.size[c:,free].last(0)}
    Free memory: {vm.memory.size[free].last(0)}
    CPU Load: {system.cpu.load[,avg1].last(0)}

    The message i receive is this:

    There are to many processen running on: {HOSTNAME} with {IPADDRESS}

    More info about {HOSTNAME}:

    Total on C:
    Free on C:
    Free memory:
    CPU Load:

    As you can see it gives out nothing. Am i doing something wrong here?
    Once i got a message about the total space on c: but that was in B, can you also tell me how to get that in GB? is that something like: ({vfs.fs.size[c:,total].last(0)}/1024)

    Thx, wmo
  • wmo
    Junior Member
    • Feb 2007
    • 18

    #2
    Anybody here that can help me out? It's pretty important for me so it would be great if someone can help me out.

    wmo

    Comment

    • wmo
      Junior Member
      • Feb 2007
      • 18

      #3
      No one here that can help me out? I've read the manual twice now and still it gives me nothing or it gives me the same values for everything like this:

      Total on C: {vfs.fs.size[c:,total].last(0)}
      Free on C: {vfs.fs.size[c:,free].last(0)}
      Free memory: {vm.memory.size[free].last(0)}
      CPU Load: {system.cpu.load[,avg1].last(0)}

      it gives me something like:

      Total on C: 18123545295.00 B
      Free on C: 18123545295.00 B
      Free memory: 18123545295.00 B
      CPU Load: 18123545295.00 B

      Comment

      • knarfling
        Member
        • Sep 2006
        • 47

        #4
        I realize this may sound simple, but it looks like you are missing the hostname from each line. I believe this is what you should be using in your action.

        Total on C: {{HOSTNAME}:{vfs.fs.size[c:,total].last(0)}}
        Free on C: {{HOSTNAME}:{vfs.fs.size[c:,free].last(0)}}
        Free memory: {{HOSTNAME}:{vm.memory.size[free].last(0)}}
        CPU Load: {{HOSTNAME}:{system.cpu.load[,avg1].last(0)}}

        Comment

        Working...