Monitor NetApp SAN via Solarwinds Server and Application Monitor

I was unable to find any examples for how to do this online, so I came up with my own solution using the NetApp Data ONTAP toolkit as well as a slight modification of your powershell profile.

You’ll need to download the toolkit and install it on your SAM machine as a prerequisite for this to work.

Additionally, I needed to modify the powershell profile of the user that will execute the script.  The location of the Powershell profile is stored in the variable $profile.  Just make sure that file contains the line

After you get your environment all set, you’ll need to configure a new Application Template within SAM.

To do this, navigate to Admin -> Settings -> SAM Settings -> Create a New Template

The important Fields to fill in are:

Template Name: I recommend giving this a name that identifies the particular filer you’re connecting to

template1

Then Add a component monitor:

addComponentMonitor

Select the Windows PowerShell Monitor

newPowershellComponent

Paste the script below into the script body, and put the name of the volume in the “Script Arguments” field. As a bonus, you can use a wildcard in the Script Arguments field in order to monitor multiple volumes at the same time.

If you like, you can modify line 28 below to better fit your needs. For example, I have different component that has the line below in place. This allows me more flexibility than what I get by using the script arguments field.

 

I’m using this right now to monitor a production environment with a lot of success. If you want to see a different setup, let me know!

One thought on “Monitor NetApp SAN via Solarwinds Server and Application Monitor

Comments are closed.

Copyright VirtJunkie.com © 2020