Discussion:
[rancid] Email notifications - summary at the top
Brian G
2010-09-01 18:54:37 UTC
Permalink
I've recently acquired a server that is running rancid (2.3.4). I noticed the email notifications do not include a summary of what files have changes.

Here is an example from another server I run which shows a quick summary at the top of the email on what routers "changed"

bur-7606 | 16 ++++++----------
menoalls-7606 | 20 ++++++++++----------
ville-7609 | 15 ++++++---------
3 files changed, 22 insertions(+), 29 deletions(-)


How can I get 2.3.4 to include the "summary"? Could it be differences in the diff version or cvsweb installed?

Thanks,
Brian
Brian G
2010-09-02 01:23:50 UTC
Permalink
Actually, this was the rancid-core and rancid-util package that got
installed from the debian (lenny) release. Not sure what they changed in
this release to do this. (or what file to be specific)

--------------------------------------------------
From: "Brian G" <***@hotmail.com>
Sent: Wednesday, September 01, 2010 7:56 PM
To: "john heasley" <***@shrubbery.net>
Subject: Re: [rancid] Email notifications - summary at the top
Happen to know which file got modified to make it do that? I was looking
to add this, as it's neat to see what changed at the top of the email.
--------------------------------------------------
Sent: Wednesday, September 01, 2010 5:59 PM
Subject: Re: [rancid] Email notifications - summary at the top
Post by Brian G
I've recently acquired a server that is running rancid (2.3.4). I
noticed the email notifications do not include a summary of what files
have changes.
Here is an example from another server I run which shows a quick summary
at the top of the email on what routers "changed"
bur-7606 | 16 ++++++----------
menoalls-7606 | 20 ++++++++++----------
ville-7609 | 15 ++++++---------
3 files changed, 22 insertions(+), 29 deletions(-)
How can I get 2.3.4 to include the "summary"? Could it be differences
in the diff version or cvsweb installed?
Thanks,
Brian
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
it was a local change.
Jon Lewis
2010-09-02 04:41:51 UTC
Permalink
I must have added this to ours way back when I installed it. It's just a
tiny change in control_rancid adding the diffstat command. Obviously,
make sure you have diffstat installed.

# Mail out the diffs (if there are any).
if [ -s $TMP.diff ]; then
sendmail -t <<EMAIL
To: $mailrcpt
Subject: $subject
Precedence: bulk

`diffstat $TMP.diff`

`cat $TMP.diff`
EMAIL
Post by Brian G
Actually, this was the rancid-core and rancid-util package that got
installed from the debian (lenny) release. Not sure what they changed in
this release to do this. (or what file to be specific)
--------------------------------------------------
Sent: Wednesday, September 01, 2010 7:56 PM
Subject: Re: [rancid] Email notifications - summary at the top
Happen to know which file got modified to make it do that? I was looking
to add this, as it's neat to see what changed at the top of the email.
--------------------------------------------------
Sent: Wednesday, September 01, 2010 5:59 PM
Subject: Re: [rancid] Email notifications - summary at the top
Post by Brian G
I've recently acquired a server that is running rancid (2.3.4). I
noticed the email notifications do not include a summary of what files
have changes.
Here is an example from another server I run which shows a quick summary
at the top of the email on what routers "changed"
bur-7606 | 16 ++++++----------
menoalls-7606 | 20 ++++++++++----------
ville-7609 | 15 ++++++---------
3 files changed, 22 insertions(+), 29 deletions(-)
How can I get 2.3.4 to include the "summary"? Could it be differences in
the diff version or cvsweb installed?
Thanks,
Brian
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
it was a local change.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
----------------------------------------------------------------------
Jon Lewis, MCP :) | I route
Senior Network Engineer | therefore you are
Atlantic Net |
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________
Per Carlson
2010-09-02 07:33:23 UTC
Permalink
 Actually, this was the rancid-core and rancid-util package that got
installed from the debian (lenny) release.  Not sure what they changed in
this release to do this.  (or what file to be specific)
Try installing diffstat, it's only considered an "Suggest" on Debian.
--
Pelle

RFC1925, truth 11:
 Every old idea will be proposed again with a different name and
 a different presentation, regardless of whether it works.
Loading...