Discussion:
[rancid] Sending Summary E-Mails
Gordon Ross
2007-08-23 08:23:32 UTC
Permalink
Rancid, as I see at the moment, sends an e-mail with the full text of
changes in it. Is it possible to configure rancid to also send a summary
e-mail saying "Device X configuration has changed", without the actual
diffs in it (and still send the e-mails with the fill diffs to elsewhere
?)

GTG
--

Gordon Ross,
Network Manager/Rheolwr Rhydwaith
Countryside Council for Wales/Cyngor Cefn Gwlad Cymru
Austin Schutz
2007-08-23 08:22:02 UTC
Permalink
Post by Gordon Ross
Rancid, as I see at the moment, sends an e-mail with the full text of
changes in it. Is it possible to configure rancid to also send a summary
e-mail saying "Device X configuration has changed", without the actual
diffs in it (and still send the e-mails with the fill diffs to elsewhere
?)
You could run cvs stat right before or after the email is sent in
control_rancid. You would have to do a little extra work to format it the way
you want.

Rancid won't do anything like that out of the box, but it would not
be a monstrous task to do if you have any experience with shell or perl
programming.

Austin
john heasley
2007-08-23 15:49:10 UTC
Permalink
Post by Austin Schutz
Post by Gordon Ross
Rancid, as I see at the moment, sends an e-mail with the full text of
changes in it. Is it possible to configure rancid to also send a summary
e-mail saying "Device X configuration has changed", without the actual
diffs in it (and still send the e-mails with the fill diffs to elsewhere
?)
You could run cvs stat right before or after the email is sent in
control_rancid. You would have to do a little extra work to format it the way
you want.
Rancid won't do anything like that out of the box, but it would not
be a monstrous task to do if you have any experience with shell or perl
programming.
also see share/rtrfilter

Loading...