LoginSignup
1
0

More than 1 year has passed since last update.

vnstatを日本語環境で使うときの注意点

Last updated at Posted at 2018-03-03

vnstatは日本語環境で使うと文字化けする

alt

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.

Man page of VNSTATI

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0