Monitor NetApp SnapMirror via Solarwinds Server and Application Monitor

So yesterday I talked about using a Powershell script with in Solarwinds to monitor volume sizes. Using the NetApp Data ONTAP Toolkit, we have the ability to do monitor a lot of different things, and track the information using Solarwinds. In this post I will show how to monitor SnapMirror relationships using Solarwinds.

Since my last post, I was able to find a document that gives a bit more… official insight into what Solarwinds expects in terms of Powershell script output. I’ve attached the PDF to the bottom of this post.

A big change from the last script, is that this one utilizes the “Message” field within solarwinds, whereas the old post only references the “Statistic” post.  This allows us to give more information as to why an issue might be occurring.

For example, let’s say a SnapMirror relationship is considered to be in  “critical” status if it has not been replicated in 480 minutes (or 4 hours), but you would like to know why this failure is occurring, without connecting to the CLI on your filer or NetApp System Manager (NSM). You can configure your Powershell to output important information in case of a failure. This script does just that. See an example screenshot below:


Important things to note about this script:

  1. The filer that you will be connecting to is determined by how you have the Application Template / Component config.
  2. The Snapmirror relationship you insert in the “script argument” field should appear just like the output of the source field output of a Get-NaSnapmirror command run directly from powershell.

Configuring_and_Integrating_PowerShell (Alternate link)

The script is below:

As usual, if you have any questions about this, let me know!

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2024