Attached is a new watchdog script to be used in conjunction with the
fence_scsi agent. Note that this script requires the previous two
patches I posted for fence_scsi. Specifically, this script depends on
the existence of the fence_scsi.key and fence_scsi.dev files located
in /var/run/cluster directory.
This script gets the local node's key from the fence_scsi.key file and
a list of devices from the fence_scsi.dev file. Each of these files is
created when unfencing occurs. The watchdog script then periodically
checks that the key is registered with at least one of the
devices. Note that the script will only trigger reboot via watchdog
(exit 2) if the key is not registered with any of the devices.