Hello.
I'm quite new to zabbix and I've got myself to dead end =(
Can some one tell me how can I parse time (or uptime) from a log in H:MM:SS.mmm format and then treat it as float to calculate avg, min and max?
For example:
I have a log item wich stores those timings, parsed from log, in H:MM:SS.mmm format as strings (0:03:42.056 for example)
logrt[/path/to/log,@ssessions,,,,\1]
where @ssessions is "session time: (.:..:..\....)"
How to treat that data as numbers? avg() function in 'Calculated' item can't evaluate that.
I even tried to make "00342.056" from example above and it still can't evaluate that.
/Thanks for any help
I'm quite new to zabbix and I've got myself to dead end =(
Can some one tell me how can I parse time (or uptime) from a log in H:MM:SS.mmm format and then treat it as float to calculate avg, min and max?
For example:
I have a log item wich stores those timings, parsed from log, in H:MM:SS.mmm format as strings (0:03:42.056 for example)
logrt[/path/to/log,@ssessions,,,,\1]
where @ssessions is "session time: (.:..:..\....)"
How to treat that data as numbers? avg() function in 'Calculated' item can't evaluate that.
I even tried to make "00342.056" from example above and it still can't evaluate that.
/Thanks for any help
Comment