Cacti monitoring image adds support for Redis multi-instance monitoring

Source: Internet
Author: User
Tags percona

1, download Percona template, unzip

wget http://www.percona.com/redir/downloads/percona-monitoring-plugins/1.0.1/percona-monitoring-plugins-1.0.1.tar.gz

2, on the basis of the default template profile of redis add option Port2, users in the new Redis monitoring image required to fill in the Redis port number, is not filled out is the default 6379,ss_get_by_ The ssh.php script connects Redis instances of the specified port via the PORT2 option:

[[email protected]] CD Percona-monitoring-plugins-1.0.1/cacti/bin

[[email protected]]./pmp-cacti-template--SCRIPT/HOME/PACKAGES/PERCONA-MONITORING-PLUGINS-1.0.1/CACTI/SCRIPTS/SS _get_by_ssh.php/home/packages/percona-monitoring-plugins-1.0.1/cacti/definitions/redis.def--mpds Port2 >/home /packages/percona-monitoring-plugins-1.0.1/cacti/templates/cacti_host_template_percona_redis_server_ht_for_ Multi_instance.xml

3. Download the newly created Redis template to your local computer cacti_host_template_percona_redis_server_ht_for_multi_instance.xml

4. Import the newly created Redis template on the Cacti Web Administration page Cacti_host_template_percona_redis_server_ht_for_multi_instance.xml

Console->import/export->import Templates->choose File->import

5. Modify the title of the image in the Redis template so that the image belongs to that instance, this example uses the port number that the user entered when creating the image, and the variable is used in the cacti | | | Reference

Console->templates->graph templates->search ' Redis ' and select a Redis template->in Graph template title- >|host_description| -Redis Commands-|input_port2|->save

6, new Redis monitoring image, remember to fill in the port number

7, if you have to monitor the Redis 6379 before importing the new template, the image display name will not be normal, need to modify the previous DataSource

Console->create->data sources->search ' Redis ' and select a Data source->in the Custom data,let port2=6379-> ; save

7. The script refreshes the image display name

Under the script directory of the cacti server:

[[email protected]] Cd/var/www/html/cacti/cli

[[email protected]] Php-q poller_graphs_reapply_names.php-id=all-d-s=redis


This article is from the "My Ops Road" blog, so be sure to keep this source http://linuxpython.blog.51cto.com/10015972/1637847

Cacti monitoring image adds support for Redis multi-instance monitoring

Related Article

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.