自宅環境で、Zabbix3.0を使用しているわけですが、Unboundの統計情報をZabbixに送信しようとしてうまく遅れていないことに気が付きました。
manページを見る限り、それに言及する言葉はないようにみえるのですが、どうにも添付する際のUnixtimeはint型でなければ駄目のようです。
-T, –with-timestamps
This option can be only used with –input-file option.Each line of the input file must contain 4 whitespace delimited entries:
. Timestamp should be specified in Unix timestamp format. If target item has triggers referencing it, all timestamps must be in an increasing order, otherwise event calculation will not be correct. An example of a line of the input file:
“Linux DB3” db.connections 1429533600 43
For more details please see option –input-file.
float型のUnixtimeで送付しようとすると以下のようなエラーが発生します。
zabbix_sender [3682]: Warning: [line 1] invalid 'Timestamp' value detected
Sending failed.
int型に変換すれば問題なく送付できます。
このあたりはZabbix 3.0で仕様が変わったんでしょうか?
2019年9月29日:追記
今さらながらですが。
zabbix_sender
のhelpを見たら、タイムスタンプにはUnix Timestamp formatを使用しろって書いてありましたね。
-T --with-timestamps Each line of file contains whitespace delimited:
<host> <key> <timestamp> <value>. This can be used
with --input-file option. Timestamp should be
specified in Unix timestamp format