Re: Easy way to add /etc/motd to Logwatch report?

Mike Tremaine <mgt-DY+kYuDXiUrz68fS/h/[email protected]> Tue, 18 May 2021 18:07:25 -0700
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
--===============2727520638962928089==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_6EC5C873-56CB-4373-AFA4-4AF080E0B220"


--Apple-Mail=_6EC5C873-56CB-4373-AFA4-4AF080E0B220
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Take a look at one of the simpler scripts like zz-runtime  [ by default =
in  /usr/share/logwatch/scripts/services ]

You could roll your own service by copying that and then added the =
configuration or you could just as easily just hack that one to add your =
output.

-Mike


> On May 18, 2021, at 1:19 PM, Threet, Robert A <[email protected]> =
wrote:
>=20
> I have some information going into /etc/motd that refreshes 3x a week =
and is unique to the server.  I would like that added to my logwatch =
report.
>=20
> Seems like it'd be easy?
>=20
>=20
> Robert Threet
> Confidentiality Statement: This email message, including any =
attachments, is for the sole use of the intended recipient(s) and may =
contain confidential and privileged information.
> _______________________________________________
> Logwatch-devel mailing list
> [email protected] =
<mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/logwatch-devel =
<https://lists.sourceforge.net/lists/listinfo/logwatch-devel>

--Apple-Mail=_6EC5C873-56CB-4373-AFA4-4AF080E0B220
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Take =
a look at one of the simpler scripts like zz-runtime &nbsp;[ by default =
in &nbsp;/usr/share/logwatch/scripts/services ]<div class=3D""><br =
class=3D""></div><div class=3D"">You could roll your own service by =
copying that and then added the configuration or you could just as =
easily just hack that one to add your output.</div><div class=3D""><br =
class=3D""></div><div class=3D"">-Mike</div><div class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On May 18, 2021, at 1:19 PM, Threet, Robert A &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
charset=3D"UTF-8" class=3D""><div style=3D"font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; font-family: Calibri, Arial, Helvetica, =
sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);" =
class=3D"">I have some information going into /etc/motd that refreshes =
3x a week and is unique to the server.&nbsp; I would like that added to =
my logwatch report.</div><div style=3D"font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; font-family: Calibri, Arial, Helvetica, =
sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);" =
class=3D""><br class=3D""></div><div style=3D"font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; font-family: Calibri, Arial, Helvetica, =
sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);" =
class=3D"">Seems like it'd be easy?</div><div style=3D"font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; font-family: Calibri, Arial, Helvetica, =
sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);" =
class=3D""><br class=3D""></div><div style=3D"font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; font-family: Calibri, Arial, Helvetica, =
sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);" =
class=3D""><br class=3D""></div><div style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><div id=3D"Signature" class=3D""><div =
class=3D""><div name=3D"divtagdefaultwrapper" style=3D"font-family: =
Calibri, Arial, Helvetica, sans-serif; margin: 0px;" class=3D""><div =
class=3D"BodyFragment"><font size=3D"2" class=3D""><div =
class=3D"PlainText">Robert Threet<br class=3D"">Confidentiality =
Statement: This email message, including any attachments, is for the =
sole use of the intended recipient(s) and may contain confidential and =
privileged information.</div></font></div></div></div></div></div><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" =
class=3D"">_______________________________________________</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><span =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; float: none; =
display: inline !important;" class=3D"">Logwatch-devel mailing =
list</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><a href=3D"mailto:[email protected]" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" =
class=3D"">[email protected]</a><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><a =
href=3D"https://lists.sourceforge.net/lists/listinfo/logwatch-devel" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" =
class=3D"">https://lists.sourceforge.net/lists/listinfo/logwatch-devel</a>=
</div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_6EC5C873-56CB-4373-AFA4-4AF080E0B220--


--===============2727520638962928089==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2727520638962928089==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Logwatch-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/logwatch-devel

--===============2727520638962928089==--