CACTI: No data Solution

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

CACTI: No data Solution

Soon after Cacti was installed, the image interface came out, but there was no data.

Errors or warnings in Cacti logs are also solved one by one. Some permissions to access files are also available.

Refer to the summary on the Internet: solve the problem that cacti does not have images or data

 

1. system utilities-> Rebuild poller cache 2. the system time is incorrect. Reset the time. the image is not generated. Run #/usr/bin/php/srv/www/htdocs/cacti/poller. php-force 4. permission problem: Modify permission # chmod 777-R/srv/www/htdocs/cacti/rra 5. the database table is damaged and repaired # mysqlcheck-ao cacti-auto-repair-uroot-p 6. restart the snmpd service # service snmpd restart

I tried it all, but I still can't !~

 

Let's take a look at the architecture of the cacti Server:

You can open the page and see the default configuration value of cacti, which proves that PHP and Mysql are normal.

The problem may occur in them: RRDTool and SNMP

Go to mysql to directly execute the following statement;

 

select * from  poller_time;


 

Here, the time is changed every minute to prove that the following poller. php is executed normally (as follows)

Vi/etc/crontab

 

*/1 * * * * /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1


 

Check the installation steps of RRDTool and SNMP again.

I forgot where to see it on the Internet. The rrd in the/var/www/html/cacti/rra directory can be deleted.

Delete them all !~

After deletion, return to the cacti page, open console --> Data Sources --> click Data Source --> click "Turn On/Off Data Source Debug Mode"

The rrd file is generated again.

At last, we restarted the snmp service and rebuilt the Poller Cache. Okay, wait for the image to come out !~

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.