Security related tools :
Other projects :
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 email@example.com ] [ -t firstname.lastname@example.org ] [-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 :
Command line should be :
dog -o email@example.com \
-t firstname.lastname@example.org \
-t email@example.com \
-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) :
Digest-Perl-MD5 - http://search.cpan.org/~delta/Digest-Perl-MD5-1.6/
Mail-Sendmail - http://search.cpan.org/~mivkovic/Mail-Sendmail-0.79/
MIME-Base64? - http://search.cpan.org/~gaas/MIME-Base64-3.01/
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