HostOnNet Blog

monitord – Service that restarts other standalone services

Looking for Linux Server Admin or WordPress Expert? We can help.

After installing APC cache, i found the Apache crashed and was down for near 12 hours.
 
In Cpanel Servers, there is a service called chkservd, that will monitor services and if any of the service found down, it will restart it. On my FreeBSD servers with control panel, so far all servers working with out the need for such a software. Now because of APC, Apache when down. Anyway i have removed apache, still want to make sure this won’t happen again.
 
On checking FreeBSD ports found port monitord, that will monitor services and if any go down, will restart it.
 
Port:   monitord-0.4.1
Path:   /usr/ports/sysutils/monitord
Info:   Service that restarts other standalone services
 
This port allows one to monitor other standalone services and automatically restart them if they are accidentally and unwittingly terminated, or crash either because of instability or a DoS attack. It simplifies a task capable of being performed by cron(8) by not requiring custom scripts to be written for each service being monitored. The configuration file is simple and easily setup.
 
I have installed monitord with
 
freebsd# cd /usr/ports/sysutils/monitord
freebsd# make install
===>  Installing for monitord-0.4.1
===>   Generating temporary packing list
===>  Checking if sysutils/monitord already installed
“Makefile”, line 28: warning: duplicate script for target “monitord” ignored
install  -s -o root -g wheel -m 555 monitord /usr/local/sbin
if [ ! -e /usr/local/etc/monitord.conf.sample ] ; then install  -o root -g wheel -m 444 monitord.conf.sample /usr/local/etc; fi
install  -o root -g wheel -m 444 -c monitord.8 /usr/local/man/man8
===>   Compressing manual pages for monitord-0.4.1
===>   Registering installation for monitord-0.4.1
freebsd# make clean
===>  Cleaning for monitord-0.4.1
freebsd#
 
Now we need to configure it, first step is
 
# cd /usr/local/etc/
# cp monitord.conf.sample monitord.conf
 
Now edit monitord.conf and put your email address and service that you need to monitor.
 
Read monitord man page for more info
 
# man monitord
 

Posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.