Last version : 0.2 / 02 07 2004
DOG is an SMTP "watchdog" tool to track configuration files changes remotely.
As an example DOG will be launched by cron everyday to supervise changes in several configuration files. If DOG detects that a file was changed, it will send an email to 1 or more recipients. The mail will handle the new file and timestamp information. The file will be saved for changelog tracking.
DOG simply calculate MD5 hashes to detect changes.
Usage : dog [-o firstname.lastname@example.org ] [ -t email@example.com ] [-s server] [-f file]
-o : sender email address (mandatory)
-t : destinator X email address (any)
-s : SMTP server IP address (mandatory)
-f : file X to check (any)
To supervise :
- on host orion at mydomain.fr
- sending reports to firstname.lastname@example.org
- and also to email@example.com
- using SMTP server 192.168.1.200
Command line should be :
dog -o firstname.lastname@example.org \
-t email@example.com \
-t firstname.lastname@example.org \
-s 192.168.1.200 \
-f /var/named/mydomain.zone \
DOG can be downloaded HERE
DOG needs the following perl modules (included in install tarball) :
Just unpack and run "make" in the "dog" directory
("make uninstall" to uninstall ;))
Jean-Philippe Guillemin - jpgu~AT~users.sourceforge.net
Copyright Jean-Philippe Guillemin.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Please take a look at http://www.gnu.org/copyleft/gpl.html