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 !~