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.system utilities–>rebuild Poller Cache
2. System time is not accurate, reset time must pay attention to the system time
3. Image not generated, run #/usr/bin/php/srv/www/htdocs/cacti/poller.php–force specific path varies according to Linux system
4. Permissions issues, modify permissions #chmod 777-r/srv/www/htdocs/cacti/rra
5. database table damaged, repair #mysqlcheck-ao cacti–auto-repair-uroot-p
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;
Mysql-u root-p
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