第六十五章 使用 SNMP 监控 IRIS - 用户定义的 SNMP 监视器类示例
本节介绍如何定义可通过 SNMP 查询的用户应用程序监视器类的示例。应用程序监视器仅包括 SNMP 数据中具有 %Monitor 数据类型的属性。
Example Sample Class
以下是此示例的示例类:
Class SNMP.Example Extends %Monitor.Adaptor
{
/// Give the application a name. This allows you to group different
/// classes together under the same application level in the SNMP MIB.
/// The default is the same as the Package name.
Parameter APPLICATION = "MyApp";
/// This groups a set of properties together at the "table" level of the
/// SNMP MIB hierarchy. The default is the Class name.

.png)



.png)

