Hello.
I've a weird situation, maybe somebody can help.
My zabbix test server is running 2.4 version and zabbix agent 2.2. I've configured new media type that will trigger on process too high on specific host.
In that new alert script I'm executing through zabbix_get command on the agent specified in UserParameter and basically I'm calling "ps" command to get top 10 top CPU processing and I'm sending those via email. Everything is working flawlessly aside from one thing: characters on the ps commands are limited on the 60 characters. Example output from my email:
If I run the same command manually anywhere, whole line is displayed of course (lines have between 180 or even 220 characters). Any idea what am I missing? How to fix this? I've tried to put whole email in file and it has only 1,2K
I've a weird situation, maybe somebody can help.
My zabbix test server is running 2.4 version and zabbix agent 2.2. I've configured new media type that will trigger on process too high on specific host.
In that new alert script I'm executing through zabbix_get command on the agent specified in UserParameter and basically I'm calling "ps" command to get top 10 top CPU processing and I'm sending those via email. Everything is working flawlessly aside from one thing: characters on the ps commands are limited on the 60 characters. Example output from my email:
Sun May 1 04:06:52 CEST 2016
90.3 26416 root /usr/lib/jvm/jre1.6.0_45/bin/java -Xmx128m -cp /usr/lib/XXXX
8.5 1721 mysql /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --u
90.3 26416 root /usr/lib/jvm/jre1.6.0_45/bin/java -Xmx128m -cp /usr/lib/XXXX
8.5 1721 mysql /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --u