pasture projects

You are here -> DoG
MainPage :: LoGin :: You are ec2-3-235-243-45.compute-1.amazonaws.com

dog



Last version : 0.2 / 02 07 2004



DESCRIPTION


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


Usage : dog [-o sender@dom.org ] [ -t dest@dom.org ] [-s server] [-f file]

Options :

-o : sender email address (mandatory)
-t : destinator X email address (any)
-s : SMTP server IP address (mandatory)
-f : file X to check (any)


Example :

To supervise :

  • /var/named/mydomain.zone
  • /var/named/1.168.192.zone
  • on host orion at mydomain.fr
  • sending reports to yoda@jedi.org
  • and also to vador@darkstar.gov
  • using SMTP server 192.168.1.200

Command line should be :


dog -o orion@mydomain.fr \
-t yoda@jedi.org \
-t vador@darkstar.gov \
-s 192.168.1.200 \
-f /var/named/mydomain.zone \
-f /var/named/1.168.192.zone




DOWNLOAD


Location :

DOG can be downloaded HERE.

DOG needs the following perl modules (included in install tarball) :


Install :

Just unpack and run "make" in the "dog" directory
("make uninstall" to uninstall ;))



CONTACT


Jean-Philippe Guillemin - jpgu~AT~users.sourceforge.net


LICENSE



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