Sambar Server Documentation

Watcher Daemon


While Sambar Technologies takes all crashes very seriously, the most important consideration is the availability of the WWW server. Therefore, the Sambar Server Watcher Daemon was developed to monitor the Sambar Server and ensure that it is always running.

The Watcher Daemon can be run either when running the Sambar Server as a windows GUI (bin\server.exe) or when running as an NT Service (bin\ntserver).

Important: The Watcher Daemon does not run by default. The Watcher Daemon can be configured to run through the Sambar Server administration interface. The Watcher Daemon should not be started manually.

The Watcher Daemon performs a www-ping of the server every 5 minutes (configurable) and if the server does not respond, it is terminated and restarted. A log of all actions taken is written to the log/watcher.log file.

The following [server] configuration parameters are used by the watcher:

Run Watcher true or false
Watcher Timeout # (minutes)
Watcher Server server.exe
Watcher Notify webmaster@foobar.com

The Watcher Daemon connects to the Sambar Server via the localhost address (127.0.0.1). In the event of a WatcherLog failure, a message is written to the log\watcher.log file.

In addition, if the Watcher Daemon fails to successfully restart the Sambar Server and the Watcher Notify parameter is configured, e-mail will be sent to the administrator indicating the server is down. Note: The e-mail notification feature is only available with Sambar Server Pro.

© 1999 Sambar Technologies. All rights reserved. Terms of Use.