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?
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?
Comment