Skip to content

Commit

Permalink
added checkcommand definition netapp_cdot_nagios_quota
Browse files Browse the repository at this point in the history
  • Loading branch information
mkayontour committed Dec 12, 2018
1 parent 69e2709 commit ab66fe1
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion contrib/icinga2/commands-netapp-cdot-nagios.conf
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,31 @@ object CheckCommand "netapp_cdot_nagios_aggr" {
vars.netapp_cdot_nagios_aggr_perf = false
}

object CheckCommand "netapp_cdot_nagios_quota" {
import "netapp-cdot-nagios-common"
command = [ PluginDir + "/netapp-cdot-nagios/check_cdot_quota.pl" ]
arguments += {
"-w" = {
value = "$netapp_cdot_nagios_quota_warning$"
description = "The Warning threshold for data space usage in %"
}
"-c" = {
value = "$netapp_cdot_nagios_quota_critical$"
description = "The critical threshold for data space usage in %"
}
"--volume" = {
value = "$netapp_cdot_nagios_quota_vol_name$"
description = "Optional: The name of the volume to check"
}
"-t" = {
value = "$netapp_cdot_nagios_quota_target$"
description = "Optional: The target of a specific quota / qtree that should be checked. To use this option, you **MUST** specify a volume."
}
}
vars.netapp_cdot_nagios_quota_warning = 80
vars.netapp_cdot_nagios_quota_critical = 90
}

object CheckCommand "netapp_cdot_nagios_clusterlinks" {
import "netapp-cdot-nagios-common"
command = [ PluginDir + "/netapp-cdot-nagios/check_cdot_clusterlinks.pl" ]
Expand Down Expand Up @@ -258,4 +283,3 @@ object CheckCommand "netapp_cdot_nagios_spare_disk" {
import "netapp-cdot-nagios-common"
command = [ PluginDir + "/netapp-cdot-nagios/check_cdot_sparedisks.pl" ]
}

0 comments on commit ab66fe1

Please sign in to comment.