#!/bin/sh

# Returns the state of a given host

# Notes: 
# 1) This script is not intended to be used as an 
#    event handler by itself.  Instead, it is used by other
#    event handler scripts (like the redundancy examples)
#    to put NetSaint into active mode.  Read the HTML
#    documentation for more information on event handlers.

echocmd="/bin/echo"
grepcmd="/bin/grep"

StatusFile="/usr/local/netsaint/test/var/status.log"


# Find the status entry in the log file
statusentry = `$grepcmd "] HOST;$1;" $StatusFile`


exit 0




