Cacti no figure no data and other error resolution

Source: Internet
Author: User
Tags php and mysql rrd rrdtool snmp

CACTI installation soon, the image interface came out, but there has been no data.

Errors or warnings in the Cacti log are all resolved. There are also some permissions that require access to files.


Reference Online Summary: solve cacti no image or no data

  1. 1.system utilities–>rebuild Poller Cache

  2. 2. System time is not accurate, reset time must pay attention to the system time

  3. 3. Image not generated, run #/usr/bin/php/srv/www/htdocs/cacti/poller.php–force specific path varies according to Linux system

  4. 4. Permissions issues, modify permissions #chmod 777-r/srv/www/htdocs/cacti/rra

  5. 5. database table damaged, repair #mysqlcheck-ao cacti–auto-repair-uroot-p

  6. 6. Restart SNMPD service #service snmpd restart


But they didn't solve the problem.

Let's take a look at the architecture diagram of this cacti server:

650) this.width=650; "Src=" http://img.blog.csdn.net/20150428234813407?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqva2sxodu4mda5nje=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "style=" border:none; "/>


can open the page and can see the default configuration value of cacti, it proves that PHP and MySQL are normal.


Problems may occur in them: RRDtool and SNMP


Go straight to MySQL in the following statement;

    1. Mysql-u root-p

    2. SELECT * from Poller_time; Note that the last time you execute SQL is to add; 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M02/72/2C/ Wkiom1xecjuhepn7aafucvcbgu8594.jpg "title=" qq picture 20150827100056.png "alt=" Wkiom1xecjuhepn7aafucvcbgu8594.jpg "/>

I'll show you the same start and end times here, stating that there is no automatic update.

Quit MySQL

Executive Vi/etc/crontab

View this line:*/1 * * * */usr/bin/php/var/www/html/cacti/poller.php >/dev/null 2>&1 Note the top 1 represents your update period of 1 minutes , Focus on Space

Then recheck the installation steps for RRDtool and SNMP, which is really okay.

SNMP Test OK:snmpwalk-v 2c-c public your host IP


Online forgot where to see, directory/var/www/html/cacti/rra inside the RRD can be deleted.

So remove them all! ~

650) this.width=650; "Src=" http://img.blog.csdn.net/20150429000129120?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqva2sxodu4mda5nje=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "style=" border:none; "/>


After deletion, go back to the cacti page, open console-->data sources--> Click Data Source-click on "Turn on/off" source Debug Mode "

The RRD file is regenerated at this time, pay attention to access permission grant! ~ (and possibly no access).


Finally, the SNMP service is restarted, as well as the rebuild Poller Cache. All right, wait for the image to come out! Wait for the image to be patient, do not worry ah ~ ~



This article is from the "Technology" blog, be sure to keep this source http://shevastar.blog.51cto.com/309735/1688741

Cacti no figure no data and other error resolution

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.