vnstatは日本語環境で使うと文字化けする
gdライブラリが原因
エクスポートに使われているgdライブラリが原因。
locale
を指定すれば解決
locale
vnstati -hs --locale C -o hsum.png
vnstat.confでも設定可
/etc/vnstat.conf
- Locale "-"
+ Locale "C"
RESTRICTIONS
Depending on the font provided by the GD library, not all characters may end up shown correctly when a UTF-8 locale is used.
Using long date output formats may cause misalignment in shown columns if the length of the date exceeds the fixed size allocation.