Monitor QNAP NAS devices with vROPS SNMP Adapter
vRealize Operations (vROPS) is a great tool to monitor your vSphere environment. What’s so great about vROPS is that it can be extended with (3rd-party) Management Packs to communicate with a wide variety of infrastructure components such as servers, network switches and storage devices and integrate the provided metrics into vROPS to monitor your complete infrastructure stack. But what if there’s no Management Pack available for your device? This is where you can use the vROPS SNMP Adapter.
The SNMP adapter comes with the latest vROPS Management Pack for SNMP. Earlier versions of the SNMP adapter only supported SNMP v1. Support has been added for SNMP v2c and v3.
The Management Pack also includes automatic discovery of SNMP devices, build-in support for common MIB’s, adding custom MIB’s and the availability of predefined MIB statistics.
In this blogpost I’ll explain how to download and install a QNAP MIB file, add and configure a SNMP Adapter instance, add and configure a policy to monitor specific QNAP SNMP metrics and build a dashboard to visualize and monitor QNAP NAS device KPI’s.
Installation of the vROPS Management Pack for SNMP requires a vRealize Operations 8.1 Advanced or Enterprise environment.
Enable SNMP on the QNAP NAS device
- Login to the QNAP Management GUI with admin rights.
- Go to Control Panel. Under Network & File Services, select SNMP.
- Enable SNMP Service.
- Select which traps you want to receive.
- Enter the IP address of your vROPS server as trap receiver.
- Select the SNMP version you want to use, V1/V2 or V3.
- Enter a community string and credentials depending on the SNMP version you have chosen.
- Download the NAS SNMP MIB file by clicking the Download button.
- Finally click Apply.
Install the SNMP Management Pack and add NAS MIB file to vROPS
- Download the PAK file from VMware Marketplace and save it in a temporary folder on your local system.
- Login to vROPS with admin rights.
- In the top menu, select Administration.
- In the left menu, select Repository. Scroll down and click Add/Upgrade.
- Select the downloaded PAK file and click Upload.
- Accept the EULA, click Next.
- When the installation is complete, click Finish.
MIB’s define the management information and structure of the information available via SNMP for a specific device. Before monitoring any device via SNMP with vRealize Operations, the proper MIB’s must be available to support the collection and processing of the SNMP information. VMware already included a collection of commonly utilized MIB’s in the SNMP Management Pack. The complete list of MIB’s included in the SNMP Management Pack can be found here. In my case I want to use the MIB file I downloaded from my QNAP NAS device.
- Make sure SSH is enabled on your vROPS node(s).
- Login with root using SSH.
- Copy the NAS MIB file to $ALIVE_BASE/user/plugins/inbound/snmp_adapter3/conf/mibs.
- Provide executive permissions to the updateMibs.sh file in $ALIVE_BASE/user/plugins/inbound/snmp_adapter3/conf.
- Run the updateMibs script and check the mib-import.log for errors.
- Open the describe.xml file and increase the version number. For example, if the version is ‘8’, change it to ‘9’.
- If you have more then one vROPS node, you have to repeat step 3 through 6 on every node.
- Go back to the vROPS GUI. On the Administration page, in the left menu, select Support.
- Under Support, select Redescribe. Click Redescribe.
- When the redescribe operation is successfully completed you can select the NAS MIB from the MIB file drop-down menu when you configure the SNMP adapter instance.
Add a SNMP Adapter instance
- On the vROPS Administration page, in the left menu, select Other Accounts.
- Click Add Account. Select SNMP Adapter.
- Enter a name for the Adapter instance.
- Enter a Start and End IP for the discovery.
- Select the NAS MIB file.
- Add a credential by clicking on the + button.
- Select the credential kind.
- Give the credential a name and enter the community string and username and password if you have chosen for SNMP v3. Click Ok.
- If you successfully validated the connection click Save.
Add a Custom Group
- In the vROPS top menu, select Environment.
- Select the Custom Groups tab. Click Add.
- Enter a name for the Group, for example QNAP NAS devices, and select Environment as Group Type.
- Under Object to always Include, search and select the QNAP NAS device(s), click Add and then Ok.
Create a policy to collect SNMP data
- On the vROPS Administration page, in the left menu, select Policies.
- Go to the Policy Library tab and click Add.
- Enter a name for the Policy.
- Under Start with:, select the vSphere Solution’s Default Policy as Base Policy.
- Under Collect Metrics and Properties, select NAS.mib as Object Type. This wil show you all the metrics available in the QNAP NAS MIB file.
Use the filter and search for systemCPU-Usage. This will show you one entry,
- Change the state of this metric from Inherited to Local.
- Repeat these steps for the metrics:
- Under Apply Policy to Groups, select the QNAP NAS devices group. Click Save.
Create a dashboard to visualize the SNMP data
In my case I wanted to have an overview dashboard of my QNAP NAS devices and their actual state. Also, did I want it to be able to select a specific QNAP NAS device and see the average, minimum and maximum over a one week period.
So, first I builded five Views for CPU Usage, Free Memory, System Temperature, CPU Temperature and System FAN Speed.
- In the vROPS top menu, select Dashboards.
- In the left menu, select Views.
- Click on the Actions drop-down button and select Create View.
- Enter a name for the view, for example QNAP CPU Usage.
- Select List for Presentation.
- Select NAS.mib for Subjects.
- In the filter, search for systemCPU-Usage. Drag this metric to the right to include it in the view. Do this four times.
- Select the Data tab and edit the Transformation configuration of the four metrics. Change the first metric in to Last, second metric in to Average, third metric in to Minimum and fourth metric in to Maximum. Also enter a Label name for each metric.
- Select the Time Settings tab and change the Time Range accordingly. In my case, I use 7 Days (or 1 Week).
- Select the Summary tab, click on the + button and change the Summary title into CPU Usage (%). Click Save.
- You can see the result of your View by selecting a Preview Source. In my case, one of my QNAP NAS devices.
- Repeat step 3 through 10 to build a view for the metrics:
Then I created a Dashboard with several widgets. The first widget I added was a Scoreboard with a custom color schema for the actual state of the NAS devices, then I added an Object List where you can select each NAS device and use this as input for the five View widgets I created earlier.
- In the vROPS top menu, select Dashboards.
- In the left menu, select Dashboards.
- Click on the Actions drop-down button and select Create Dashboard.
- Select the Scoreboard widget and drag it on the Dashboard.
- Click on the pencil to edit the configuration of the Scoreboard widget.
- Enter a name for the scoreboard, for example QNAP System KPI’s.
- Under Configuration, change Refresh Content and Self Provider from Off to On.
- Change the Visual Theme from Default to Opaque and select Sparkline to Show.
- Change the Period Length to Last 24 hours.
- Change Layout Mode to Fixed Size and show Old Metric Values.
- Under Input Data, select Metrics and click on the + button.
- In the first filter, enter the IP address of your QNAP NAS device and select your NAS device object.
- In the second filter, enter systemCPU-Usage and select the yellow metric. Click Ok.
- Repeat step 11 through 13 for all your NAS devices and the metrics:
- Enter a Box Label and Unit for each metric. Also change the Color Method from Symptom to Custom and enter values for Yellow, Orange and Red.
- Click Save.
- Select the Object List widget and drag it on the Dashboard.
- Click on the pencil to edit the configuration of the Object List widget.
- Enter a name for the Object List, for example Select QNAP NAS device.
- Under Configuration, change Self Provider from Off to On.
- Under Input Data, select Objects and click on the + button.
- Enter the IP address of your NAS device in the filter and select the NAS device object. Click Ok. Repeat this step for all your NAS devices.
- Click Save.
- Toggle from Widgets to Views and select the List widget and drag it on the Dashboard.
- Click on the pencil to edit the configuration of the List widget.
- Enter a name for the List View, for example System CPU Usage (1 week).
- Under Output Data, select the System CPU Usage View you created earlier. Click Save.
- Repeat step 24 through 27 for the other four Views, System Free Memory, System Temperature, CPU Temperature and System Fan Speed.
- In the dashboard, click Show Interactions and drag a line from the Object List output to each View input.
- Save the Dashboard.
This is just a very simple example of what you can do to visualize important information of your infrastructure components using SNMP. I already connected my QNAP NAS Devices to vRealize Log Insight to gather the logs and and send login alerts to vROPS in my dashboard. In a next release of my dashboard I’m adding also availability and performance data of the physical disks, volumes and LUN’s.
Other articles in the series vRealize Operations:
- Introduction of vRealize Operations 6.0
- Hands-on lab: Cloud Management with vRealize Operations
- vRealize Automation Management Pack for vRealize Operations Manager available now
- Cisco releases UCS Manager Management Pack for vRealize Operations
- vRealize Operations 6.2 released
- Monitor vCenter Server appliance with the End-Point Operations Agent
- Monitor Windows services with the End-Point Operations Agent
- vRealize Operations: Adding an OS Monitor Script
- Monitor hybrid, multi-cloud architectures with the new Microsoft Azure Management Pack for vROPS
- vRealize Operations 6.6: You need this!
- Monitor JBoss EAP with vRealize Operations
- Monitor Microsoft Exchange with vRealize Operations Manager
- vCenter Operations Manager for View
- How to monitor your VMware SDDC Management health?
- DRS got even smarter with Predictive DRS
- Why you want to discover services in your environment
- Application monitoring with VMware Wavefront
- vRealize Operations 6.x certificate expires soon
- Monitor QNAP NAS devices with vROPS SNMP Adapter