Translations of this page:

This is an old revision of the document!


A converter

The script libexec/rrd_convert.pl will be used to switch RRD_STORAGE_TYPE to MULTIPLE and to migrate the RRD databases.

Significant as always with PNP is the Nagios check command.

rrd_convert.pl --check_command=<nagios_check_command> | --list_commands [ --dry-run ] [ --tmp_dir=<temp-directory ]
[ --no_structure_check ]

You have to specify at least one of ”--check_command” or ”--list_commands”, respectively. Using the open --check-command= you tell the script which check command should be searched for.

rrd_convert.pl will now browse all PNP XML files for this command and output some statistics.

After confirmation from the user the conversion of the appropriate RRD databases will start displaying the progress. Pressing <ENTER> as an answer will terminate the script so please enter a letter.

If you are unsure then use --list_commands to get a list of the check commands used in the XML files.

The option --dry-run will convert the RRD databases but they will be stored in /tmp/rrd_convert in separate folders per host instead. This way you'll get a feeling about the runtime and the amount of data.

If you want to change the temporary directory you can use --tmp_dir=<alternative temp dir>.

Sometimes the number of datasources in the RRD files doesn't match the number in the XML files. This might happen if a plugin suddenly returns more datasources than usual (like check_disk as mentioned above). Using the option --no_structure_check these RRD files will be converted as well.

back to contents | NPCD details

fr/pnp-0.6/rrd_convert.1351953598.txt.gz · Last modified: 2012/11/03 15:39 by jacques.soubelet
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0