Ad Widget

Collapse

Negative and float numbers by the marcos into the Action message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stan.vasiljev
    Junior Member
    • Jan 2008
    • 28

    #1

    Negative and float numbers by the marcos into the Action message

    I use these macroses in the Action message:
    Last value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
    Prev value: {{HOSTNAME}:{TRIGGER.KEY}.prev(0)}

    And when action fired and I receive email from zabbix, received message contains latest and previous values, but in unsigned integer format
    Obliviously, I can't get correct message with float and negative float values.

    For example, Latest value = -65.5500 and Previous value = 2.5500 (I can see they at history.php page).
    But in email I receive Last value: 16777216 T and Prev value: 2.

    About item:
    Type: Zabbix agent
    Key: check.balance (custom UserParameter)
    Type of information: Numeric (float)
    Units: USD
    All other fields have default values

    About server:
    ZABBIX Server (daemon) v1.6.1 (04 November 2008)
Working...