Time for action - defining a data source template

The hrSystemProcesses MIB provides information on the current number of running processes on a system supporting the host resource MIB. This MIB is a collection of system-specific data such as logged in users, disk space, installed software packages, and other valuable information that can be retrieved using SNMP:

  1. Log on to your Cacti system and go to Templates | Data Source.
  2. Click the Add link at the top-right corner of the list. This will open a new page where you can define your data source template.
  3. Enter Host-Resource-Mib: Running Processes in the Name field.
  4. Enter |host_description|- Running Processes as the Name for the Data Source. The |host_description| text is a special Cacti variable that will be replaced with the actual host description of the device where this data template will be added. You can find a list of these Cacti variables in the Appendix.
  5. Select Get SNMP Data as the Data Input Method.
  6. Select System Default as the Data Source Profile, we will look into the High Collection Rate at a later time:
  1. Enter runProcesses as the Internal Data Source Name of the Data Source Item.
  2. The Data Source Type should be Gauge, as this is what the preceding snmpwalk example returns.
  3. Enter 1000 as the Maximum Value ("U" for No Minimum). This will tell Cacti to check the data against this value.
  1. Keep everything else to the default values and click Create:
  1. You're not done yet. Clicking the Create button should have added some additional fields to the end of the page. Here you can add the SNMP-specific Custom Data.
  2. As you are going to retrieve the active processes, enter .1.3.6.1.2.1.25.1.6.0 as the OID. You can leave the SNMP settings as their default values:
  1. Click the Save button and you're done.