[ #zabbix] zabbix_sender でタイムスタンプを付けて送付しようとすると、Unixtimeはint型じゃなきゃ駄目っぽい?

zabbix
zabbix_sender

自宅環境で、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
この記事を書いた人

kometchtech

うつ病を患いながら、IT業界の末席にいるおっさんエンジニア。科学計算をしたことがないのに、HPC分野にお邪魔している。興味のある分野で学習したことをblogにまとめつつ、うつ病の経過症状のメモも置いておく日々。じつはRouterboard User Group JPの中の人でもある。 Amazon欲しいものリスト / Arm板を恵んでくれる人募集中

kometchtechをフォローする
タイトルとURLをコピーしました