Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_netapp-du
2.3a
2015-01-23
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
- Nagios Fusion
GPL
68374
File | Description |
---|---|
check_netapp-du | Plugin code |
netapp-shares.map | Share to volume mapping file |
netapp-gencache | Cache generation |
NETWORK-APPLIANCE-MIB.txt | NetApp MIBs |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This is a disk space checker for NetApp filers, based on an older plugin by Rob Hassing. The plugin interrogates the NAS via SNMP and supports both Volumes and subdirectories with user quota aka QTrees, also ones larger than 2TB.
The plugin uses a map file (netapp-shares.map) and some basic heuristics to translate Windows share names to volume/Qtree names (CIFS share names are not exposed via SNMP).
Usage:
check_netapp-du.pl -H -v [-C community] -w -c [-e] [-f files-warn] [-F files-crit] [--force-gencache] [--prefix=/vol] [--debug]
For performance reasons, the SNMP Volume and QTree IDs are looked up from a local cache file rather than retrieved from the NetApp filer every time. It will be necessary to regenerate this cache regularly, as volumes are added or changed on the NAS.
Since the running time of this cache generation may be too long for Nagios (depending on the global service check time-out), it is recommended to do this only from an interactive shell or a cron job. Run a check on any volume adding the "-–force-gencache" parameter to regenerate the volume ID cache. A sample script is provided which can be run from cron, provided you are running Opsview, and provided all NetApp filers are in the same host group.
The plugin uses a map file (netapp-shares.map) and some basic heuristics to translate Windows share names to volume/Qtree names (CIFS share names are not exposed via SNMP).
Usage:
check_netapp-du.pl -H
For performance reasons, the SNMP Volume and QTree IDs are looked up from a local cache file rather than retrieved from the NetApp filer every time. It will be necessary to regenerate this cache regularly, as volumes are added or changed on the NAS.
Since the running time of this cache generation may be too long for Nagios (depending on the global service check time-out), it is recommended to do this only from an interactive shell or a cron job. Run a check on any volume adding the "-–force-gencache" parameter to regenerate the volume ID cache. A sample script is provided which can be run from cron, provided you are running Opsview, and provided all NetApp filers are in the same host group.
Reviews (1)
bygm_rajkumar, April 3, 2013
Hi,
I have used this plugin got the below error message,
print() on closed filehandle LOCKFILE at ./check_netapp-d line 140
sh: /data/scripts/nagios/NAS/.netapp-oidcache.10.65.5.4: No such file or directory
CRITICAL: Could not cache list of shares: error 1
found that there is a folder should be created in this path to generate a cron job script for specific settings. So i created manually to resolve this. After that, its working fine...
I have used this plugin got the below error message,
print() on closed filehandle LOCKFILE at ./check_netapp-d line 140
sh: /data/scripts/nagios/NAS/.netapp-oidcache.10.65.5.4: No such file or directory
CRITICAL: Could not cache list of shares: error 1
found that there is a folder should be created in this path to generate a cron job script for specific settings. So i created manually to resolve this. After that, its working fine...