Monitoring Virtuozzo Objects via SNMP
You can monitor Virtuozzo 6 hardware nodes via the Simple Network Management Protocol (SNMP). The implementation conforms to the same Structure of Management Information (SMI) rules as the data in the standard SNMP context: all Virtuozzo objects are organized in a tree; each object identifier (OID) is a series of integers corresponding to tree nodes and separated by dots.
General information:
- The OID of the root subtree with all the objects you can monitor is
1.3.6.1.4.1.26171.1.1. - Two management information base (MIB) files are required to monitor Virtuozzo objects:
SWSOFT-SMI.txtandSWSOFT-VIRTUOZZO-MIB.txt. Both are installed along with VA Agent. Their default location is/usr/share/snmp/mibs.
The following subsections describe ways to enable and use SNMP to monitor Virtuozzo objects.
Enabling SNMP Access on Hardware Node
To enable SNMP access on a hardware node, do the following:
- Install the
net-snmppackage. - Make sure the
snmpdservice is running. - Install VA Agent with the SNMP component.
Accessing Virtuozzo Objects via SNMP
You can access Virtuozzo Objects with SNMP tools of your choice. Let us examine the procedure on the example of the free Net-SNMP suite.
To display the entire Virtuozzo object tree, use the snmpwalk command in the console. For example:
Typical output for a Linux Hardware Node may be:
| |
Description of Virtuozzo Objects
The table below describes Virtuozzo objects you can monitor:
| Object | Description |
|---|---|
| SWSOFT-VIRTUOZZO-MIB::vzHWID | The Hardware Node unique identifier used by different management tools to identify the Hardware Node. |
| SWSOFT-VIRTUOZZO-MIB::vzVersion | Virtuozzo version currently installed on the Hardware Node. |
| SWSOFT-VIRTUOZZO-MIB::vzLicenseStatus | Virtuozzo license status. |
| SWSOFT-VIRTUOZZO-MIB::vzEnvID | Container ID. (The Service Container is always marked as Container 1.) |
| SWSOFT-VIRTUOZZO-MIB::vzEnvEid | The unique container ID used by |
| SWSOFT-VIRTUOZZO-MIB::vzEnvType | Container virtualization technology. |
| SWSOFT-VIRTUOZZO-MIB::vzEnvName | Container hostname. |
| SWSOFT-VIRTUOZZO-MIB::vzEnvDescription | Container description, if set. |
| SWSOFT-VIRTUOZZO-MIB::vzEnvOS | OS template the container is based on. |
| SWSOFT-VIRTUOZZO-MIB::vzEnvOrigSample | Container original sample unique ID used by Virtuozzo tools to identify the container sample. |
| SWSOFT-VIRTUOZZO-MIB::vzEnvState | Current container state. |
| SWSOFT-VIRTUOZZO-MIB::vzEnvTransition | Transitional container state. |
| SWSOFT-VIRTUOZZO-MIB::ipAddrEntAddress | Container IP address. |
| SWSOFT-VIRTUOZZO-MIB::ipAddrEntNetMask | Container network mask. |
| SWSOFT-VIRTUOZZO-MIB::envQuotaDiskSpace | Disk space currently consumed by the container. |
| SWSOFT-VIRTUOZZO-MIB::envQuotaDiskSpaceSoft | Soft disk space limit set for the container. |
| SWSOFT-VIRTUOZZO-MIB::envQuotaDiskSpaceHard | Hard disk space limit set for the container. |
| SWSOFT-VIRTUOZZO-MIB::envQuotaDiskInodes | Number of disk inodes (files, directories, symbolic links) currently used by the container. |
| SWSOFT-VIRTUOZZO-MIB::envQuotaDiskInodesSoft | Soft disk inodes limit set for the container. |
| SWSOFT-VIRTUOZZO-MIB::envQuotaDiskInodesHard | Hard disk inodes limit set for the container. |
| SWSOFT-VIRTUOZZO-MIB::envQuotaUgid SWSOFT-VIRTUOZZO-MIB::envQuotaUgidHard | Number of user/group IDs allowed for container’s internal disk quota. (Disabled for the Service Container.) |
| SWSOFT-VIRTUOZZO-MIB::envNetworkClass | Network classes currently existing on the Hardware Node. |
| SWSOFT-VIRTUOZZO-MIB::envNetstatIncomingBytes | Incoming traffic, in bytes, consumed by the container. |
| SWSOFT-VIRTUOZZO-MIB::envNetstatIncomingPackets | Incoming traffic, in packets, consumed by the container. |
| SWSOFT-VIRTUOZZO-MIB::envNetstatOutgoingBytes | Outgoing traffic, in bytes, consumed by the container. |
| SWSOFT-VIRTUOZZO-MIB::envNetstatOutgoingPackets | Outgoing traffic, in packets, consumed by the container. |