Hi guys.
I'm getting strange long-long-long float number in trigger emails. Here's an example:
From: [email protected] <[email protected]>
To: [email protected]
Sent: Mon Aug 03 00:42:45 2009
Subject: OK:2.129999999999999893418589635984972119331359863 28125:Physical CPU used:somehost: Zabbix trigger
Physical CPU used : 2.129999999999999893418589635984972119331359863281 25
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Event ID: 200200000035695
Hostname: somehost
IP address: 192.168.200.12
Item key: system.run[ vmstat 1 1 | tail -1 | awk '{print $18}' | cut -c -4]
=============================================
Subject is evaluated from an expression:
{STATUS}:{ITEM.LASTVALUE}:{TRIGGER.NAME}:{HOSTNAME }: Zabbix trigger
The issue is that ITEM.LASTVALUE shows incredible-long float value while 'last values' table shows only 4 digits as returned after 'cut' command.
N.B. The client host is an AIX host, but anyway, the value returned does not have so much decimals after comma according to item expression.
N.B. 1: Type of item information in Zabbix is Numeric(float)
N.B. 2: This is distributed setup, e-mail is sent from a secondary node
N.B. 3: Zabbix is 1.6.5
N.B. 4: Zabbix server host is running CentOS 4
Where the problem could be?
I'm getting strange long-long-long float number in trigger emails. Here's an example:
From: [email protected] <[email protected]>
To: [email protected]
Sent: Mon Aug 03 00:42:45 2009
Subject: OK:2.129999999999999893418589635984972119331359863 28125:Physical CPU used:somehost: Zabbix trigger
Physical CPU used : 2.129999999999999893418589635984972119331359863281 25
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Event ID: 200200000035695
Hostname: somehost
IP address: 192.168.200.12
Item key: system.run[ vmstat 1 1 | tail -1 | awk '{print $18}' | cut -c -4]
=============================================
Subject is evaluated from an expression:
{STATUS}:{ITEM.LASTVALUE}:{TRIGGER.NAME}:{HOSTNAME }: Zabbix trigger
The issue is that ITEM.LASTVALUE shows incredible-long float value while 'last values' table shows only 4 digits as returned after 'cut' command.
N.B. The client host is an AIX host, but anyway, the value returned does not have so much decimals after comma according to item expression.
N.B. 1: Type of item information in Zabbix is Numeric(float)
N.B. 2: This is distributed setup, e-mail is sent from a secondary node
N.B. 3: Zabbix is 1.6.5
N.B. 4: Zabbix server host is running CentOS 4
Where the problem could be?
Comment