solaris, zfs checks
author"Tomas Zeman <tzeman@volny.cz>"
Wed, 14 Jul 2010 08:27:49 +0200
changeset 2 954185277fd8
parent 1 29afbe10f498
child 3 86721b328bbb
solaris, zfs checks
conf/solaris.conf
conf/zfs.conf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/conf/solaris.conf	Wed Jul 14 08:27:49 2010 +0200
@@ -0,0 +1,6 @@
+# Solaris specific checks
+
+# smf(5) monitoring:
+# Returns service status of $1, see svcs(1), should be 'online'
+UserParameter=smf.service.state[*],svcs -H -o state $1
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/conf/zfs.conf	Wed Jul 14 08:27:49 2010 +0200
@@ -0,0 +1,6 @@
+# ZFS checks
+
+# zpool(1M) status, parameters: zpool-name,property
+# parameters eg.: rpool,health
+# see zpool list -o for available properties
+UserParameter=zpool[*],zpool list -H -o $2 $1