Upgrading Percona Monitoring Plugins for Cacti

Upgrading is normally a simple process. Before you begin, find the version of the templates and scripts that is currently installed. You can find this as a GPRINT item, as in the following screenshot:

../_images/mysql-cacti-templates-installed-version.png

This shows that the MySQL templates installed were generated from version 1.1.4 of the templates, against version 1.1.4 of the PHP script file.

Check the installed scripts for their version:

# grep ^.version /path/to/ss_get_mysql_stats.php
$version = "1.1.4";

To upgrade Percona Cacti scripts simply overwrite ss_get_*.php files from a new tarball or update the package:

yum update percona-cacti-templates

or:

apt-get install percona-cacti-templates

Afterwards, re-import templates into Cacti using the web interface or from the command line, e.g.:

php /usr/share/cacti/cli/import_template.php --filename=/usr/share/cacti/resource/percona/templates/cacti_host_template_percona_gnu_linux_server_ht_0.8.6i-sver1.0.3.xml \
--with-user-rras='1:2:3:4'

Then rebuild the poller cache under Cacti -> System Utilities.

If any special upgrade steps are necessary, the changelog will explain them.

Percona Monitoring Plugins
Call Us
+1-888-316-9775 (USA - Sales)
+1-208-473-2904 (USA - Sales)
+44-208-133-0309 (UK - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-877-862-4316 (Emergency)
+1-855-55TRAIN (Training)
+1-925-271-5054 (Training)

Previous topic

Customizing Percona Monitoring Plugins for Cacti

Next topic

Percona MySQL Monitoring Template for Cacti



© Copyright 2012, Percona Inc.
Except where otherwise noted, this documentation is licensed under the following license:
CC Attribution-ShareAlike 2.0 Generic
{@ footer_documentation_bugs @}
This documentation is developed in Launchpad as part of the Percona Monitoring Plugins source code.
If you spotted innacuracies, errors, don't understood it or you think something is missing or should be improved, please file a bug.
{@ /footer_documentation_bugs @} ]]>