
上QQ阅读APP看书,第一时间看更新
Defining a data source template
You are now going to define a data source template for the host MIBhrSystemProcesses. Although a data template already exists for this, it provides a good example of how to create SNMP-based data templates. For this to work, let's assume that your CentOS-based Cacti server is already configured with an SNMP daemon. You can check your box with the following command:
[root@localhost ~]# snmpwalk -On -c public -v 2c localhost HOST-RESOURCES-MIB::hrSystemProcesses.0 .1.3.6.1.2.1.25.1.6.0 = Gauge32: 432