January 2019
Intermediate to advanced
798 pages
20h 33m
English
The data that we sent so far was considered to be received at that exact moment—the values had the timestamp assigned by the server when it got them. Every now and then, there's a need to send values in batches for a longer period of time or import a backlog of older values. This can be easily achieved with zabbix_sender—when sending values from a file, it supports supplying a timestamp. When doing so, the value field in the input file is shifted to the right and the timestamp is inserted as the third field. For a quick test, we could generate timestamps one, two, and three days ago:
$ for i in 1 2 3; do date -d "-$i day" "+%s"; done
Take the resulting timestamps and use them in a new input file:
- room.persons ...
Read now
Unlock full access