Ad Widget

Collapse

Server gets only part of the result

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 6-MarViN
    Junior Member
    • Sep 2011
    • 13

    #1

    Server gets only part of the result

    Hello,

    I have a problem concerning the result of a command.

    I have an item who's purpose is to send me the result of the following command:

    ps aux --sort=-rss | head -n5
    (basically command that will give me the first 5 processes that use the most memory).

    i've associated a trigger and an action so that this information would be stroed in a log file on the machine where the Zabbix server is.

    The problem is that when i go to Monitoring->Latest data, I see that this item only returns the first 3 lines.

    Also the action i've set is the following remote command:
    Zabbix server:echo '{ITEM.LASTVALUE}' > /home/zabbix/memory.log

    when the action is triggered, I can see in Monitoring-> Events that the command has status executed but the memory.log file is empty.

    Does any one have an answer to either of these problems?
  • 6-MarViN
    Junior Member
    • Sep 2011
    • 13

    #2
    I've solved the first part. The problem is I still havec the second one. My guess is that because this is a multiline value i'm trying to echo, it will fail.

    Anyone knows how to format the output?

    Comment

    Working...