- Cacti Beginner's Guide(Second Edition)
- Thomas Urban
- 180字
- 2021-07-02 20:15:35
Time for action - exporting a template
As you may have noticed, there are many users that contributed to Cacti by providing their templates. By exporting them you can not only store them for your own re-use, but also make them public to the community as well. Let's look at the export process in more detail:
- Go to Import/Export and click the Export Templates link.
- Select Device Template as the template type that you want to export.
- Select your device template, SNMP Enabled CentOS Server, as the Device Template to Export.
- Leave the rest as their default values.
- Click Export. You can now save the XML file to your desktop:
You have exported your first host template. The XML file contains all the necessary information for the device template. This includes:
- The device template itself
- All graph templates
- All data source templates
- All CDEFs needed (isYellow_435-470 and isGreen_0-434)
- Everything else needed for the device template to work, but excluding scripts or other additional files you've created.
When re-importing this XML file, Cacti will only create items that do not already exist.