Advanced Cacti basic knowledge (1)

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.