Installing SNMP on the monitoring server
Install your SNMP monitoring package on your monitoring server.
The following procedure is an example only. As environments and workloads vary, you must use your own SNMP expertise and resources to take advantage of SNMP monitoring.
In the following commands, use res-snmp as the username, replace
sample_password with your chosen password, and replace
RESILIENT_IP with the IP address of the SOAR Platform. You must use the exact same username and
password as used when you created the SNMP user on the SOAR Platform.
Install SNMP software on the server that is to monitor the SOAR Platform. The name of the packages might vary depending on
your operating system. The following example installs packages on an RHEL
system.
sudo yum --noplugins install -y net-snmp
sudo yum --noplugins install -y net-snmp-utilsWhen installed, you can run the SNMP commands where you specify the user credentials, as shown in
the following
example:
snmpget -v 3 -u res-snmp -l authPriv -a MD5 -x DES -A sample_password -X sample_password RESILIENT_IP hrSystemUptime.0To run a simpler version of the SNMP command, you can store the user credentials in a
configuration file.
- Create the
~/.snmpdirectory, if it does not exist. - Create the
~/.snmp/snmp.conffile with the following contents:defSecurityName res-snmp defSecurityLevel authPriv defAuthType MD5 defPrivType DES defAuthPassphrase sample_password defPrivPassphrase sample_password defversion 3
When you create the configuration file, you can use the following commands to query the SOAR Platform.
# Get the system uptime:
snmpget RESILIENT_IP hrSystemUptime.0
# Get information about system storage:
snmptable RESILIENT_IP hrStorageTable