Checks if a vserver is running or in another state.
$ check_netapp_vserver state -H <host> [...] [--help]
$ check_netapp_vserver state -H <host> --ok-state=[…] […] [--help]
The vserver plugin retrieves the vserver state and compares ist with the value of --ok-state (string or regular expression) which defaults to running.
--include / --exclude: Filter on the instance name <svm> (e.g. svm1). See Regular Expressions.
For all other parameters consult --help on the commandline.
Check all vservers for their state using the --ok-state default:
$ check_netapp_vserver state -H filer
NETAPP VSERVER OK - 5 vservers checked
na-01.vserv_b: running
na-01.vserv_a: running
na-02.vserv_a: running
na-02.vserv_b: running
na-00.vserv_a: running
In a metrocluster, the vservers are arranged in pairs, with one of the two always down. To exclude these intentionally stopped vservers, simply set the --exclude='~-mc$' option on the dormant cluster node.
Example without --exclude='~-mc$':
$ check_netapp_vserver state -H filer
NETAPP VSERVER CRITICAL - 8 vservers checked, 4 CRITICAL
NAS2_prbsvm1-mc: stopped (CRITICAL)
NAS2_svm1-mc: stopped (CRITICAL)
NAS2_daphne-mc: stopped (CRITICAL)
NAS2_svm2-mc: stopped (CRITICAL)
NAS1_svm3: running
NAS1_svm2: running
NAS1_svm1: running
NAS1_daphne: running
Example with --exclude='~-mc$':
$ check_netapp_vserver state -H filer --exclude='~-mc$'
NETAPP VSERVER OK - 4 vservers checked
4 instances skipped because of --include/--exclude settings
NAS1_svm1: running
NAS1_daphne: running
NAS1_svm3: running
NAS1_svm2: running