Cacti Template Helper Tools

Aside from the tools documented elsewhere, there are the following tools:

pmp-cacti-graph-defs

This tool helps you make boilerplate text to plug into a definitions file. If you create the definitions file and add the data input as suggested in the documentation on creating graphs, then you can take the input items and copy them into a new file. Then group them into paragraphs in the order you want the graphs to be created. Leave one blank line between each paragraph. For example:

OPVZ_kmemsize_held        => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_kmemsize_failcnt     => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',

OPVZ_lockedpages_held     => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_lockedpages_failcnt  => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_privvmpages_held     => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_privvmpages_failcnt  => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_shmpages_held        => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_shmpages_failcnt     => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_physpages_held       => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_physpages_failcnt    => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_vmguarpages_held     => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_vmguarpages_failcnt  => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_oomguarpages_held    => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',
OPVZ_oomguarpages_failcnt => 'hash_07_VER_2442551920abf4f05121043fe4cd51d7',

That’s a sample used to create the OpenVZ graphs. It will create boilerplate for two graphs.

Then run this script with that file as input. The output will be generic text that’s ready to paste into the graphs section of your definitions file. You’ll need to edit all of the things like the data input name, the name of each file, the colors, data types, and so on. But this can be a fast way to get started.

When you’re done, make sure you generate new hashes for everything, or you’ll re-use hashes from another template. The best way to do this is to run pmp-cacti-make-hashes with the --refresh option on that to generate all new hashes.

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)

Table Of Contents

Previous topic

Creating Graphs

Next topic

2013-10-02: version 1.0.5



© 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 @} ]]>