# ::copy::
# ::maintainer::
#
# check that /dev/null is still a char device and NOT A PLAIN FILE
#
# (really, I saw many systems fucked up by badly written scripts that
# removes /dev/null and overwrite it as plain file, then bad things
# happens, expecially if you *read* garbage from /dev/null, or if
# you use the syntax 'cp /dev/null filename' to create an empty
# file -- really, don't do that, use ':> filename' instead)
#
# uses:
#
# \::contact.sysadmin.email\::
#
[check.auto-dev-null-device]
  savestate	false
  interval	60
  test		test -c /dev/null
  action_fail	MAILTO	::contact.sysadmin.email:: \
  			"CRITICAL! $(uname -n): /dev/null is no more a char device!" \
			"$(ls -ld /dev/null)"
