Cacti sudden break diagram, Solution:

Source: Internet
Author: User
Tags rrd rrdtool

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:

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.