Discussion:
[rancid] e-mail summary notification
Reinhard Kucera
2010-10-20 13:43:48 UTC
Permalink
Hey,
first, thanks to Shrubbery for this, well, awesome tool :)
I am running it on FreeBSD and everything is working fine. I'm using it to
monitor and backup around 40 Cisco devices.

So here is the thing: I would prefer that I am not getting an email with all
the changes everytime I do rancid-run but getting an email, telling me that
it backupped all the 40 routers successfully and that the configs of router
number (e.g.) 12 and 36 have been changed.
Then, if I want to, I can look it up on the CVS respository.
If there are no changes, rancid doesn't backup, so the e-mail could say,
there were no changes and there is no backup but it was kinda successfully.

Is there any way to do that?

ryan
john heasley
2010-10-23 21:36:02 UTC
Permalink
Post by Reinhard Kucera
Hey,
first, thanks to Shrubbery for this, well, awesome tool :)
I am running it on FreeBSD and everything is working fine. I'm using it to
monitor and backup around 40 Cisco devices.
So here is the thing: I would prefer that I am not getting an email with all
the changes everytime I do rancid-run but getting an email, telling me that
it backupped all the 40 routers successfully and that the configs of router
number (e.g.) 12 and 36 have been changed.
Then, if I want to, I can look it up on the CVS respository.
If there are no changes, rancid doesn't backup, so the e-mail could say,
there were no changes and there is no backup but it was kinda successfully.
Is there any way to do that?
pipe the mail to a script and count the cvs index lines w/ grep. it
doesnt send mail when there are no changes. it does send mail about
devices that havent been successful in OLDTIME hours.

Loading...