NetApp: Monitoring of SnapVault/SnapMirror/LUN/Snapshot information with Nagios

As I wrote before, we have a bunch of filers (and a ton of volumes w/ luns on them), that I need to monitor. At first, I tried the existing NetApp Nagios-Plugin(s), but they all use SNMP and with that I can either watch all volumes or none. And that didn’t satisfy me.

Don’t get me wrong, the existing plugins are okay and I still use them for stuff (like GLOBALSTATUS or FAN/CPU/POWER) which isn’t present in the API or real hard to get at, however I wanted more. So I ended up looking at the NetApp API, and ended up writing a “short” plugin for Nagios using Perl.

Maybe if I’m ever bored, I’ll rewrite it using C, but for now the Perl plugin has to suffice.

So far the plugin supports the following things:

  • Monitoring FlexVolumes (simply watching the free space)
  • Monitoring LUN space (the allocated space inside a FlexVolume for iSCSI/FC LUNs)
  • Monitoring Snapshot space (the allocated space inside a FlexVolume for Snapshots)
  • Monitoring SnapVault relations (and their age)
  • Monitoring SnapMirror relations (and their age)

The plugin will return performance data for most (if not all) of those classes. It needs a user on the filer you wish to monitor – which sadly needs to have the admin role.

4 thoughts to “NetApp: Monitoring of SnapVault/SnapMirror/LUN/Snapshot information with Nagios”

  1. Very nice! My #1 check is

    I watch a bunch of other things (like IOPS per protocol) but mostly for historical purposes. Generally if there is an actual problem with the filer this will pick it up.

  2. Hi,

    Like what you written but wondered if you had anything similar that did not require nagios that would simply monitor the snapmirror and restart a relationship if it dies.

    Can you let me know.? Thanks

    Phillip

  3. Hi,
    This script doesn’t works for me.
    This error appears:

    readline() on unopened filehandle S at /usr/local/lib/perl5/site_perl/5.10.1/NetApp/NaServer.pm line 467.

    Could you send me the script?
    Regards

Leave a Reply to Christian Cancel reply

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

I accept that my given data and my IP address is sent to a server in the USA only for the purpose of spam prevention through the Akismet program.More information on Akismet and GDPR.

This site uses Akismet to reduce spam. Learn how your comment data is processed.