Cacti Beginner's Guide(Second Edition)
上QQ阅读APP看书,第一时间看更新

Time for action - defining a host template

Cacti comes with a very small number of host templates for general use only. To reduce some manual work, you want to create your own host template. Let's look at how to create one for the CentOS system:

  1. Go to Templates | Device and click the Add link.
  2. Enter SNMP Enabled Cent OS Server as the Name for this host template.
  3. Click Create.
  4. Two additional sections will show up. At the Associated Graph Templates section, select your Host - Running Processes template and click Add.
  5. At the Associated Data Queries, add SNMP - Get Mounted Partitions, SNMP- Get Processor Information, and the SNMP - Interface Statistics data query.
  6. Click the Save button:

You created your first device template containing your newly-created graph template and three SNMP-based data queries. Once you assign this device template to a device, all four items will be automatically added to that device.

Create device templates for standard devices in your network

Creating a device template will reduce the time for creating a device within Cacti, especially if there are many devices in a network that share the same graphs.