[rancid] Script for notification

heasley heas at shrubbery.net
Wed Oct 19 05:44:16 UTC 2022


Tue, Oct 18, 2022 at 01:07:41PM -0300, OlivaFN88:
> Sorry.
> 
> I want to send a report with who failed/successful.

So, you can probably just send the rancid admin mail, either via procmail
or your MTA's alias, to email-to-telegram
(https://pypi.org/project/email-to-telegram/).  The example appears to
create a user whose mbox is used for delivery, then forwarded to telegram.

Presumbly this could easily be modified to just read stdin, if you prefer
that.

> Thank you.
> 
> Em ter., 18 de out. de 2022 às 12:50, heasley <heas at shrubbery.net> escreveu:
> 
> > Tue, Oct 18, 2022 at 11:42:17AM -0300, OlivaFN88:
> > > Hi, I'm new here.
> > >
> > > I'm looking for some way to send a report through script, Telegram in my
> > > case.
> > >
> > > Is it possible? How?
> >
> > You have not indicated what you want to send to telegram.  I presume that
> > you do not want to send diffs.  So, a report of what exactly?
> >
> > I see there are a few email to telegram tools.  If the report is from
> > email, such as the rancid-group-admin reports, then this would be one
> > solution.  If you want some custom report, there is an a tool called
> > telegram-cli; whatever output could be piped to that.
> >
> 
> 
> -- 
> 
> 
> *Felipe N. OlivaNet/Sys/SecAdmin*



More information about the Rancid-discuss mailing list