Listing 2: System administration notification
if {$failed} {
dnotice -n internet_daemon -d "Internet Server Watchdog" \
-a "Daemon program $daemon is not running. Could \
not restart"
} else {
dnotice -t _internet_daemon -d "Internet Server Watchdog" \
-a "Daemon program $daemon was restarted"
}
#Internet daemon alert to watch over the ns_httpd lead process and
#restart if necessary
internet_daemon {
description = "Internet Server Watchdog";
type = "compound";
enable = false;
period = 30;
threshold = 0%;
priority = "warning";
product = "internet";
trigger = '
source $D_ACTION/internet.tcl
';
timeout = 30;
action = "";
rowselect = "";
schedule = "";
mail = "";
page = "";
snmp = "";
ignore = 0;
}
# End of File
|