Ad Widget

Collapse

Trigger only tests the first lile of a TEXT type of value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acucatti
    Junior Member
    • Jan 2008
    • 4

    #1

    Trigger only tests the first lile of a TEXT type of value

    Hi,

    We have an item configured with "Text" as "Type of information". That item gets the content of a file.
    We are trying to put the content of this file into trigger´s Comments filed and email it, but it puts only the first line. And the trigger expression tests only the first line of the file.

    that is the trigguer expression: {server:item.diff(0)}=0

    that is the line on trigger Comments filed to try the contents of the file: {server:item.last(0)}

    Well, the trigger is true when the last and previous value are the same (remenber that the value type is text and item gets a content of a file), but trigger tests only the first line. Changes on other parts of the file don´t changes the trigger.

    On the latest data we can view all content of file captured by the item.

    We want to know if there is a way for the trigger to compare all content of the text captured by the item, because diff, abschange and change functions seams to work only with "string" type of value; or a way to put all the content captured by the item on trigger´s Comments filed, bacause that way it would be able to email the file content along whit the trigger email.


    thanks
    Last edited by acucatti; 09-06-2008, 18:45.
  • cristhiano
    Member
    • Nov 2007
    • 48

    #2
    I have same problem and write one patch.
    But, zabbix developers ignore this bug.

    See: http://www.zabbix.com/forum/showthread.php?t=8725

    Comment

    Working...