- Cacti Beginner's Guide(Second Edition)
- Thomas Urban
- 300字
- 2021-07-02 20:15:30
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:
- Log on to your Cacti system and go to Templates | Data Source.
- 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.
- Enter Host-Resource-Mib: Running Processes in the Name field.
- 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.
- Select Get SNMP Data as the Data Input Method.
- Select System Default as the Data Source Profile, we will look into the High Collection Rate at a later time:
- Enter runProcesses as the Internal Data Source Name of the Data Source Item.
- The Data Source Type should be Gauge, as this is what the preceding snmpwalk example returns.
- Enter 1000 as the Maximum Value ("U" for No Minimum). This will tell Cacti to check the data against this value.
- Keep everything else to the default values and click Create:
- 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.
- 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:
- Click the Save button and you're done.