How to remove snapshot reserve from monitoring in netapp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

How to remove snapshot reserve from monitoring in netapp

Post by sgoffar »

Hi Team,

We got the requirement to exclude the snapshot reserve from monitoring within Diskused monitoring.

We are using below command to monitor diskused on netapp device.

/usr/local/nagios/libexec/check_netapp_djt.pl -H <hostnam -C public -V 2c -T DISKUSED -w 85 -c 95

on image highlighted disk used capacity is for snap reserve, actual volume utilization is 74%

Can you please help on this.
You do not have the required permissions to view the files attached to this post.
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to remove snapshot reserve from monitoring in netapp

Post by tgriep »

That plugin looks like there is an exclude option you can use to exclude the snapshot from the check.
-e <vol1[,vol2[,...]]> Exclude volumes from snap check (SNAPSHOT/SNAPSHOTAGE)
Be sure to check out our Knowledgebase for helpful articles and solutions!
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: How to remove snapshot reserve from monitoring in netapp

Post by sgoffar »

I used it but it's not working..Please find below details

/usr/local/nagios/libexec/check_netapp_djt.pl -H sfone -C public -V 2c -T DISKUSED -e SFO_ESXA_3220A_DS4 -w 90 -c 95
CRIT: DISKUSED 120% /vol/SFO_ESXA_3220A_DS4/.. | /vol/SFO_ESXA_3220A_DS4/..=258231456KB;193273527;204010945;;214748364 /vol/SFO_ESXA_3220A_DS4/..:perc=120%;90;95;;100
CRIT: DISKUSED 110% /vol/SFO_ESXA_3220A_DS1/..
[root@da libexec]# /usr/local/nagios/libexec/check_netapp_djt.pl -H sfone -C public -V 2c -T DISKUSED -e /vol/SFO_ESXA_3220A_DS4/.. -w 90 -c 95
CRIT: DISKUSED 120% /vol/SFO_ESXA_3220A_DS4/.. | /vol/SFO_ESXA_3220A_DS4/..=258231460KB;193273527;204010945;;214748364 /vol/SFO_ESXA_3220A_DS4/..:perc=120%;90;95;;100
CRIT: DISKUSED 110% /vol/SFO_ESXA_3220A_DS1/..
[root@dal libexec]# /usr/local/nagios/libexec/check_netapp_djt.pl -H sfone -C public -V 2c -T DISKUSED -e vol -w 90 -c 95
CRIT: DISKUSED 120% /vol/SFO_ESXA_3220A_DS4/.. | /vol/SFO_ESXA_3220A_DS4/..=258231464KB;193273527;204010945;;214748364 /vol/SFO_ESXA_3220A_DS4/..:perc=120%;90;95;;100
CRIT: DISKUSED 110% /vol/SFO_ESXA_3220A_DS1/..
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
kyang

Re: How to remove snapshot reserve from monitoring in netapp

Post by kyang »

I can't test this myself, but does work if you put it in quotes? If not.

How about listing the volume_path first and then using the -e to exclude the snapshot from the check.

Code: Select all

/usr/local/nagios/libexec/check_netapp_djt.pl -H sfone -C public -V 2c -T DISKUSED -v <volume_path> -e SFO_ESXA_3220A_DS4 -w 90 -c 95
Also, when looking at this. (Not sure if this plugin only accepts the -e for specific check types. But try doing it for SNAPSHOTAGE instead of DISKUSED and let us know if -e works for SNAPSHOTAGE or not)

Code: Select all

Available check types:

DISKUSED          - Usage Percentage of volume or aggregate (-w -c -v)
SNAPSHOT          - Snapshot Config (-e volname,volname2,volname3)
SNAPSHOTAGE       - Check the age of volume snapshot which are older than x days (-w -c -v -e)
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: How to remove snapshot reserve from monitoring in netapp

Post by sgoffar »

It's not working
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
kyang

Re: How to remove snapshot reserve from monitoring in netapp

Post by kyang »

It's hard to say what the issue is with the plugin because the last update to the code was almost 2 years ago. Have you tried contacting the owner?

Also, there are a few issues and pull requests that have not been handled.

https://github.com/ranl/monitor-utils/b ... tapp-ng.pl

There seem to be a few NetApp plugins on Github. Not sure if that's what you're looking for.
Locked