Use cacti to monitor your network (IV)-cacti scripts and templates

Source: Internet
Author: User
I. cacti script and template


Cacti script and template Forum: http://forums.cacti.net/forum-12.html

A complete list of cacti scripts and templates: http://forums.cacti.net/about15067.html

 

1. Advance Ping script and template

: Http://forums.cacti.net/about10049.html

Note: To use this template, you must add the -- enable-sockets option to support sockets during PHP compilation.

1). function: This template is used to monitor a TCP/UDP port, ICMP latency, and packet loss.

2) download the ss_fping.php script and put it in the/usr/local/Apache/htdocs/cacti/scripts/directory. Download The cacti_graph_template_ping_advanced_ping_v1_3.xml template and use the cacti template import page to import.


3) Select devices from the left-side menu bar under the console tab to create a new devices for the host to be monitored or select an existing devices. InAssociated graph templatesAddAdvanced pingv1.3Template. And click the topCreate graphs for this hostLink.

InGraph templatesSelectPing-advanced Ping v1.3And then click the create button. The following web page is displayed.

 

The first item indicates how many test packets (20 by default) are sent to the port to be monitored at a time. The second item is the protocol used, which can be ICMP, TCP, or UDP, the third item is the port number to be monitored (only used when the second item is TCP or UDP). After entering the information, click Create.

Select date sources from the left-side menu under the console tab. Select the new data source to modify the information entered above.


Select graph trees from the left-side menu under the console tab to organize a Tree View.

 

On the graphs tab, browse the created advanced Ping monitoring chart.

 
Tcp3360 port (MySQL)

 

Tcp80 port (HTTP)

Pkt loss: Number of packet loss/20 * 100% (20 packets are pinged each time)
AVG loss: average packet loss
Latency: latency
AVG latency: average latency

  

1. MySQL stats Template

Forum discussion: http://forums.cacti.net/about11010.html

: Http://www.faemalia.net/mysqlUtils/

Function: monitors the MySQL status, including index usage, query, sorting, and locking.

1 ). set mysql_stats.php and dumpmemcachedstats. put the PHP script in the cacti Script directory (/usr/local/Apache/htdocs/cacti/scripts /), when importing a template, be sure to select the cacti_host_template_temysql_host-step300-heartbeat600.xml and cacti_host_template_memcached_host-step300-heartbeat600.xml template (default cacti 5-minute fetch data ).

2) configure the MySQL server so that the cacti machine can access the status information of the MySQL server. You must have the "process" permission. To monitor the InnoDB status, you must have the "super" permission.

Grant process on *. * to cacti @ 'cactimachine 'identified by 'cacti ';

Grant super on *. * to cacti @ 'cactimacher' identified by 'cacti ';

3) create a graph. Select devices from the left-side menu bar under the console tab to create a new devices for the host to be monitored or select an existing devices. InAssociated graph templatesAddGraph templates(For example, the temysql-index usage template, which is a series of templates starting with temysql ). And click the topCreate graphs for this hostLink. In the graph templates selection box, select temysql-index usage and click Create. the following web page is displayed.

 

Enter the username and password for accessing the MySQL database and click Create.

 

Select the newly added graph templates and click Create to create a graph.

Select graph trees from the left-side menu under the console tab to organize a Tree View.

View the created MySQL monitoring chart under the graphs tab.

Thumbnail:


3. Other templates

Other templates will be available soon. If you have any good templates, please do not hesitate to give them further suggestions.

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.