This week I got a call from a customer regarding the use of SNMP with vRealize Operations 6.0 (vROps). I’ve done some projects using the SNMP adapter for vCOPs 5.x but not yet for vROps.
Unfortunately, after some time spent on google, I could not find much information on how to install and configure the SNMP adapter for vROps.
After doing some trial and error, I’ve created this “How to use SNMP with vROps” and show you how you can successfully create a SNMP Object in vROps.
Let the fun begin!
Install the SNMP Adapter
First download the vROps SNMP adapter 2.1 from the VMware Solution Exchange (link).
There isn’t a new SNMP adapter available for vROps so you can use the “old” SNMP adapter from vCOPs 5.x. Which according to the vROps Documentation Center is fully supported (link).
Go to the Solutions page on the vROps GUI and click the green + sign.
Click on “Browse a solution” and select the downloaded vROps SNMP adapter package and click “OK”. Click force installation (and if it is the second time you upload the file, select the “Reset out-of-the-box content) and click “Upload”.
After the file is uploaded click “Next”
On the next page check “I accept the tems of this agreement” (or not.. 😉 ) and when you click “Next” the installation of the SNMP Adapter will start!
Click Finish and proceed with the configuration of the SNMP Adapter.
Configure the SNMP Adapter
Select the SNMP Adapter in the top pane and click on the gears sign to configure the SNMP Adapter.
Fill in the following information :
Display Name : SNMP Instance (or create your own instance)
Click on the green + sign beside Credentials.
Fill in the Credential Name, Community and SNMP version and click OK.
Select the newly created credentials from the dropdown box.
Click “Save Settings”.
Accept the “Warning”.
And finally the accept “Info message”.
The SNMP Adapter is now configured!
Upload the MIB file
If you don’t need some specific MIB file(s) and only need the included default RFC compliant MIBs, you can skip this part and proceed with the last chapter “Create a SNMP object”.
To upload the necessary MIB file(s) SSH has to be enabled on the vROps appliance to upload the MIB file to the appliance with for example WinSCP or your own favorite SCP software.
Open the appliance with the vSphere Client and login in with root and no password. The appliance will ask you to change the password but… It took me some time to come up with a better password and solve the “BAD PASSWORD based on dictionary word” warning… So if you encounter the same issue use as me and getting annoyed, you can use the following temporary password : AxtM123!# and change it immediately after logging in with the temporary password by using the command : passwd .
Now when you’re authenticated on the vROps appliance enable SSH and optionally start it by default.
service sshd start
chkconfig sshd on
Upload the MIB file to the following directory :
on the vROps appliance.
Logon to the vROps appliance using your favorite SSH client, set the correct rights on the files and update the MIB files.
chmod admin *
chgrp admin *
Check the mib-import.log file for errors!
cat mib-import.log | more
After this edit the describe.xml file with VI and increment the version number with 1. Use :wq to save the file.
To make the MIB available within the GUI you will have to trigger a “re-describe” process. You can do this by going to Administration -> Support -> Redescribe.
Click Redescribe and accept the question with “Yes”
Now wait for around 5-10 minutes before the uploaded MIB will be selectable from the GUI.
Change the Policy
Go to the Policy Library and use the pencil sign change the Policy that will used by the object (in our case this will be the default policy).
In the left pane select “Override Attributes” and type the name of the MIB file. Select the MIB file and click on “State” deselect “Local, Local and Inherited” to view if all the metrics are enabled. If not select “Actions”, “Select All”, “Enable” and finally click “Save”.
Now you are ready to continue and create a SNMP object.
Create a SNMP object
Go to Environment and select the green + sign.
Fill in the following information :
Display Name : Fill in the object name
Adapter Type : Select “SNMP Adapter”
Adapter Instance : Select “SNMP Instance” (or your own created instance)
Object type : Select your uploaded MIB file
Host IP : Fill in the IP address of the SNMP object
Port : 161 or fill in the custom SNMP port of the SNMP object
Credentials : Select your credentials or create specific credentials for this object
You can leave the rest default or change it to your own requirements
Wait for a couple of minutes and refresh the GUI to check if the Health Status is green for your newly created SNMP Object and all the beautiful metrics are collected.