[rancid] Re: Email notifications
Steve Ousley
steve at host-it.co.uk
Thu Jun 26 12:27:39 UTC 2008
OK, upon further investigation, it wasn't in fact cron that was failing.
The cron was running the script no problems, however having implemented a
new script that also backs the configs up, we hadn't added the "rancid-run"
command to this (it takes a little while to run, and wanted to know it would
copy the files ok).
I think your solution (with this in mind) is the best way to go about it.
Since that will also report if cron fails, OR if rancid-run fails.
Is there a file that gets updated every time rancid runs? Or is it best to
simply add in something like:
echo "" >> /path/to/rancid/did.it.run
so that when it runs, it will update that file, and therefore the
modification time on that file.
You think this would be the best way?
Steve Ousley - SO620-RIPE
-----Original Message-----
From: Burton Windle [mailto:bwindle at fint.org]
Sent: 26 June 2008 13:21
To: Steve Ousley
Subject: Re: [rancid] Email notifications
Perhaps something that monitors the RANCID log directory, and takes note
when no files have been added recently?
What was causing cron to fail?
--
Burton Windle bwindle at fint.org
On Thu, 26 Jun 2008, Steve Ousley wrote:
>
> Hi
>
>
>
> We have just noticed that our rancid cron job was not running, and
therefore the devices were not being backed up. Does anyone know of a
> way that you could get this to email when rancid has run, wether it
changed anything or not, so that we at least get a notification that
> this has run.
>
>
>
> Hopefully with this being the case, we should be able to notice if it?s
not working again, and sort it a lot sooner than the month or so
> that it took to notice it this time.
>
>
>
> Alternatively, if anyone knows of a way to get the cron job to mail a
successful/unsuccessful run of rancid-run, then this would also be
> useful.
>
>
>
> Thanks in advance.
>
>
>
> Steve Ousley - SO620-RIPE
>
More information about the Rancid-discuss
mailing list