Ad Widget

Collapse

Retrieve value of a text item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vinz
    Junior Member
    • Sep 2006
    • 14

    #1

    Retrieve value of a text item

    Hi,

    I've created an item of type text to show top ten process by CPU Usage.

    I want to put the item value in a mail when cpu load is high, the trigger for that work but the value is not shown for the text item ?!

    Mail looks like that :

    Top ten of CPU Usage on {HOSTNAME} by process
    ===============================================

    {{HOSTNAME}:topten_proc.last(0)}


    It returns nothing, but in latest data i see :

    USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
    root 516 49.8 0.0 16 16 - A Oct 18 57838:16 wait
    root 774 49.8 0.0 16 16 - A Oct 18 57820:45 wait
    zabbix 17938 0.0 0.0 472 288 - A Nov 24 1:43 /usr/local/zabbix
    root 4190 0.0 0.0 612 620 - A Oct 18 21:13 /usr/sbin/syncd 6
    zabbix 20848 0.0 0.0 668 484 - A Nov 24 1:11 /usr/local/zabbix
    root 0 0.0 0.0 20 20 - A Oct 18 7:31 swapper
    root 9144 0.0 0.0 24 24 - A Oct 18 6:13 rpc.lockd
    root 2580 0.0 0.0 72 72 - A Oct 18 3:39 gil
    root 1 0.0 0.0 860 872 - A Oct 18 0:43 /etc/init


    ... how can i do that ?

    Thx,
  • vinz
    Junior Member
    • Sep 2006
    • 14

    #2
    it works in fact

    ok excuse me, it works ;-)

    Comment

    • iftitutul
      Member
      • Sep 2017
      • 51

      #3
      Could you share your solution how can you do it?

      Comment

      • sby
        Member
        • Jan 2017
        • 59

        #4
        Hi Vinz,

        Can you share this solution here.

        Comment

        Working...