DSfW Monitor daemon

I just created a demonized version of the DSfW Monitor script.  For more information on the script look the DSfW Monitor script post.

Now you don’t have to create a cronjob to continuously run the tool.  Simply download and install the dsfwmon.rpm.

The install will create the /etc/init.d/dsfwmon startup script, the /opt/dsfwdude/conf/dsfwmon.conf file to edit the configuration and the dsfwmon daemon.  It also has log rotating enabled.

The install will enable the dsfwmon script so that when the server starts, the script will start monitoring the services.

Edit the /opt/dsfwdude/conf/dsfwmon.conf to send an e-mail if a service has to be restarted.  Do not adjust the delay time less than 5 minutes.  The script could possibly step on itself, trying to check the services while restarting the services.

Common changes are to enable e-mail setting to be sent when the services restart, the e-mail address, and the Delay between it runs.  Some people want increase the time to 15 or 30 minutes.  Do not go below 5.
EMAIL_SETTING=1
EMAIL_TO=”your email”
DELAY=10

DOWNLOAD the rpm and install using the command:
rpm -ivh dsfwmon.rpm

Start the service with the command:
rcdsfwmon start

The log is located at /var/opt/novell/xad/log/dsfwmon.log

Here are the configurations you can do by editing the /opt/dsfwdude/conf/dsfwmon.conf

############### dsfwmon Configration ###########################################################

# Set RESTART_DSFW to 1 to reload DSfW services if one or service is not running,
# Set RESTART_DSFW to 0 to leave the services in reported state
RESTART_DSFW=1

# Set LOGTOSYSLOG to 1 to send messages to /var/log/messages via a SYSLOG
LOGTOSYSLOG=1

# Set RESET__LOG to 1 to reset the health check log. Set to 0 to disable or 1 to enable
# If EMAIL_ATTACHMENT=1 then RESET__LOG will automatically be set to 1 to minimize the log size.
RESET_LOG=0

# DELAY is the time in minutes
DELAY=10

# netcat=1 or telnet=0
PORTOPTION=1

# Set EMAIL_SETTING to 1 to send e-mail log if an error is returned. Set to 0 to disable or 1 to enable
EMAIL_SETTING=0

# Set EMAIL_ATTACHMENT to 1 to include log as attachment.
EMAIL_ATTACHMENT=0

# Set TEXT_SETTING to 1 to send text message if an error is returned. Set to 0 or remove the 1 to disable
TEXT_SETTING=0

# $EMAIL_TO = the recipient of the alert email
EMAIL_TO=”rance@novell.com”

Comments are closed.

Categories