SNMP Devices — Prerequisites
Prerequisites for monitoring SNMP Devices with HEAL.
Prerequisites to complete before adding this component in the HEAL Control Center.
This section provides the list of prerequisites that are required for collecting SNMP data from HEAL on the target server.
- The SNMP port should be opened and accessible from the HEAL server.
- From the HEAL Server to the target SNMP Device, the port should be open.
- On the SNMP Device, a community string with read-only access should be created.
- MIB file of the SNMP Device [Optional].
- User id and password to authenticate over SNMP [Optional].
- For SNMP v3, get the below details:
- UserName
- Password
- Authentication Protocol
- Authentication Protocol Passphrase
- Privacy Protocol
- Privacy Protocol Passphrase
The Component Agent collects information remotely. Ensure the following requirements for Component Agent are met on the HEAL server:
- Component agent is installed and configured on the HEAL server.
- In the attributes section, specify the details of the target server.
-
Add the following parameter to the end of the
advanced.propertiesfile located in the below directory:Component agent/configParameter:
local.ip.addresses = <target ip> -
Save the file and launch the agent.
Configure the SNMP client on HEAL server#
Install RPM Packages
- Download the below RPM files.Note: RPMs may change depending on OS version.
net-snmp-libs-5.8-22.el8.x86_64.rpmnet-snmp-utils-5.8-22.el8.x86_64.rpmnet-snmp-agent-libs-5.8-22.el8.x86_64.rpmnet-snmp-5.8-22.el8.x86_64.rpm
-
Install the
.rpmpackages, using the below command:rpm -Uvh net-snmp-libs-5.8-22.el8.x86_64.rpm net-snmp-utils-5.8-22.el8.x86_64.rpm net-snmp-agent-libs-5.8-22.el8.x86_64.rpm net-snmp-5.8-22.el8.x86_64.rpmNote: Ensure to install all required dependencies before continuing.
Get the Object Identifiers (OID)#
To get the object identifiers supported by the SNMP device, run the snmpwalk command as shown below:
-
For SNMP version v2:
snmpwalk -O n -t 5 -r 1 -v2c -c <communityString> <snmp ip>:<snmp port> -
For SNMP version v3:
snmpwalk -O n -t 5 -r 1 -v3 -u <user name> -a <authentication protocol> -A <authentication protocol pass phrase> -x <privacy protocol> -X <privacy protocol pass phrase> <snmp ip>:<snmp port>
Then identify the OIDs that produce an integer value and configure them in the database.
Steps to add OID attributes in CC#
To get the OID attribute in CC for SNMP, execute the following queries in Percona:
INSERT INTO mst_common_attributes (attribute_name, name, attribute_type, is_custom, status, created_time, updated_time, user_details_id, account_id)
VALUES ('OID', 'OID', 'TextBox', 0, 1, '2022-10-18 00:00:00', '2022-10-18 00:00:00', '7640123a-fbde-4fe5-9812-581cd1e3a9c1', 1);
INSERT INTO mst_component_attribute_mapping (mst_common_attributes_id, is_custom, is_mandatory, default_value, mst_common_version_id, mst_component_id, mst_component_type_id, created_time, updated_time, user_details_id, min_length, max_length, regex, error_message)
VALUES ((SELECT id FROM mst_common_attributes WHERE attribute_name='OID'), 0, 1, '', (SELECT id FROM mst_common_version WHERE name='SNMPV.1/SNMPV.2' AND mst_component_id=(SELECT id FROM mst_component WHERE name='SNMP' AND account_id=1)), (SELECT id FROM mst_component WHERE name='SNMP' AND account_id=1), (SELECT id FROM mst_component_type WHERE name='Network'), '2022-10-18 00:00:00', '2022-10-18 00:00:00', '7640123a-fbde-4fe5-9812-581cd1e3a9c1', 1, 255, NULL, '');
INSERT INTO mst_component_attribute_mapping (mst_common_attributes_id, is_custom, is_mandatory, default_value, mst_common_version_id, mst_component_id, mst_component_type_id, created_time, updated_time, user_details_id, min_length, max_length, regex, error_message)
VALUES ((SELECT id FROM mst_common_attributes WHERE attribute_name='OID'), 0, 1, '', (SELECT id FROM mst_common_version WHERE name='SNMPV.3' AND mst_component_id=(SELECT id FROM mst_component WHERE name='SNMP' AND account_id=1)), (SELECT id FROM mst_component WHERE name='SNMP' AND account_id=1), (SELECT id FROM mst_component_type WHERE name='Network'), '2022-10-18 00:00:00', '2022-10-18 00:00:00', '7640123a-fbde-4fe5-9812-581cd1e3a9c1', 1, 255, NULL, '');
INSERT INTO producer_parameters (mst_producer_id, parameter_type, parameter_name, parameter_value, created_time, updated_time, user_details_id, parameter_order)
VALUES ((SELECT id FROM mst_producer WHERE name='Fetch_SNMP_Data'), 'ENV_PARAM', 'OID', '{OID}', '2022-10-18 00:00:00', '2022-10-18 00:00:00', '7640123a-fbde-4fe5-9812-581cd1e3a9c1', '1');
See also: SNMP Devices (what HEAL monitors)