In this network information age, O & M personnel and network management personnel do not have a software suitable for themselves. If the work is not smooth, try it.CactiFor new access to Cacti, you must refer to this article and introduce some CactiBasic knowledgeAdvanced:
Why are the characters in the monthly or yearly traffic diagram garbled?
This is because rrdtool does not support Chinese characters. My situation is even more serious. When Chinese characters appear in the figure, the segment fault is lost during rrdtool graph.
Because the date display in the Chinese environment displays the week and month as Chinese by default, garbled characters appear in your graph because Chinese characters cannot be displayed.
There are two ways to solve this problem. One is to enable rrdtool to display the English date, and the other is to enable rrdtool to support Chinese characters. Both methods involve modifying the source code of rrdtool. I am taking the first idea, so that rrdtool should not read the language environment variables in the Chinese environment and force it to use English.
When compiling rrdtool1.2, I changed the content in the src/rrd_graph.c file:
Setlocale (LC_TIME ,"");
Change
Setlocale (LC_ALL, "en_US.ISO-8859-1 ");
Then compile. That's all. If not, change the language environment in your environment variables to English:
Export LC_ALL = en_US
Export LANG = en_US
Export LANGUAGE = en_US
Export LC_CTYPE = en_US
Export LC_TIME = en_US
Or, you just need to let rrdtool support Chinese Based on abel's approach.
Http://bbs.chinaunix.net/viewthr... p; extra = & page = 1