Background: The figure ran for one months, the other graphs can be displayed normally, but there are a few pictures suddenly not out of the picture;
Through RRDtool RRD view, all are Nan;
The solution that has been tried:
- Failed to restart SNMP---
- CACTI Rebuild---Failed
- Some people on the internet say that the deletion of the reconstruction is really so, but these pictures are business figures, cannot be deleted.
- Check db table, all OK;
- Network, system, bottleneck analysis, OK;
Finalization scenario:
- Write script timed rrdupdate;
#!/bin/bashstime=$ (date +%s) RRDtool="/usr/local/rrdtool/bin/rrdtool"Cacti_dir="/var/www/html/cacti/scripts/"# Totalucarfirstorder_total_rrd='/VAR/WWW/HTML/CACTI/RRA/57/1653.RRD'Ucarfirstorder_total_num=$ (/usr/bin/php ${cacti_dir}ucarfirstorder_total.php ucarfirstorder|awk-f:'{print $NF}')#Ucarfirstorder_autoUCARFIRSTORDER_AUTO_RRD='/VAR/WWW/HTML/CACTI/RRA/57/1654.RRD'Ucarfirstorder_auto_num=$ (/usr/bin/php ${cacti_dir}ucarfirstorder_auto.php ucarfirstorder|awk-f:'{print $NF}')#iphoneUCARFIRSTORDER_IPHONE_RRD='/VAR/WWW/HTML/CACTI/RRA/57/1658.RRD'Ucarfirstorder_iphone_num=$ (/usr/bin/php ${cacti_dir}ucarfirstorder_3iphone.php ucarfirstorder|awk-f:'{print $NF}') ${rrdtool} update ${ucarfirstorder_total_rrd} ${stime}:$ucarfirstorder _total_num${rrdtool} Update ${ucarfirstorder_auto_rrd} ${stime}:$ucarfirstorder _auto_num${rrdtool} Update ${ucarfirstorder_iphone_rrd} ${stime}:$ucarfirstorder _iphone_num
Summary : The world is big, you can consider other open source tools, such as Zabbix Logstash,elasticsearch,kibana
Cacti sudden break diagram, Solution: