# /etc/kuwatcher/conf.d/00distrib_rules - standard rules
#
# do not modify this file, will be overwritten on updates!
#
# __copy1__
# __copy2__
#
[check]
  startstate		# undefined
  savestate	true
  interval	60


[test]
  IS_RUNNING	ps -C
  PING		__LIB__/checks/ping
  PING_LDAP	__LIB__/checks/ping_ldap
  CABLE_PLUGGED	__LIB__/checks/cable_plugged
  FREE_SPACE	__LIB__/checks/free_space
  NET_LAG	__LIB__/checks/net_lag
  PS_TIMELIMIT	__LIB__/checks/ps_timelimit

[helper]
  HALT		__LIB__/helpers/delayed_halt
  REBOOT	__LIB__/helpers/delayed_reboot
  MOUNT_NFS	__LIB__/helpers/mount_nfs
  UMOUNT_NFS	__LIB__/helpers/umount_nfs
  MAILTO	__LIB__/helpers/mailto
  SAFEKILL	__LIB__/helpers/safekill



#------------------------------------------------------------------------------
# SAMPLES
# copy relevant definitions on a NEW file in __CONF__/conf.d dir,
# uncomment, and modify for your needs
#------------------------------------------------------------------------------

# sample: disk free check
#   really, the FREE_SPACE checks free space on filesystems, not disks; you
#   can list more than one filesystem, each one needs a tuple of pararmeters,
#   the path and the trigger size (in Mb)
#
#[check.disk-free-mydisk]
#  savestate	false
#  interval	60
#  test		FREE_SPACE \
#			/one/filesystem 2048000 \
#			/another/filesystem 1024000
#  action_fail	MAILTO myaddress@mydomain.com \
#			"WARNING: free space low on $(uname -n)!" \
#			"$(cat $TEMPDIR/free_space.stats)"
#

# sample: checks that /dev/null is a device and not a plain file
#   (believe me, this can be usefull, I found a lot of systems where some
#   monkey written scripts will overwrite /dev/null as a PLAIN FILE, after
#   then shit hit the fan randomly)
#
#[check.dev-null-device]
#  savestate	false
#  interval	60
#  test		test -c /dev/null
#  action_fail	MAILTO myaddress@mydomain.com \
#			"CRITICAL! $(uname -n): /dev/null is no more a device!!" \
#			"$(ls -ld /dev/null)"
