Hi,
I need to check if a logfile is updated regularly in order to check if some software is still doing what it is supposed to do and hasnt crashed or hangs.
This is the expression i came up with for my trigger:
({leonardo:system.localtime.last(0)}-{leonardo:vfs.file.time[/root/testfile].last(0)})>60
The general idea is to do current-time - timestamp-of-last-modification-to-file = time that it has not been updated.
This gives the error that (0-0)>60 is not a valid expression.
Any help VERY MUCH appreciated.
Vorik.
I need to check if a logfile is updated regularly in order to check if some software is still doing what it is supposed to do and hasnt crashed or hangs.
This is the expression i came up with for my trigger:
({leonardo:system.localtime.last(0)}-{leonardo:vfs.file.time[/root/testfile].last(0)})>60
The general idea is to do current-time - timestamp-of-last-modification-to-file = time that it has not been updated.
This gives the error that (0-0)>60 is not a valid expression.
Any help VERY MUCH appreciated.
Vorik.
Comment