Sunday, October 02, 2022

Re: Daily output empty

On Sat, Oct 01, 2022 at 22:02:05 -0400, Steven Shockley wrote:
> I noticed that for the past couple of days I haven't been getting the
> {daily, weekly, monthly} output from my 8 OpenBSD machines. I am getting
> emails for other cron jobs.
>
> If I run /bin/sh /etc/daily, I get no output (or email). If I run /bin/sh
> -x /etc/daily, I get what looks like expected output (commands plus their
> output) on console and via email. The contents of /var/log/*.out are zero
> bytes. I have plenty of disk space on all partitions.
>
> Running /usr/libexec/security seems to work as expected when there are
> changes.
>
> If I add an echo to daily.local it emails the sysctl, uptime, and
> daily.local parts.
>
> Am I going nuts here, or should I still be getting daily outputs?

Check your /var/log/maillog, but also, if there's nothing to report, the
scripts don't report anything. Consult the start_part() and end_part()
functions at the top of the script, and the very last line. The headers
are *not* part of the consideration for whether there's any output.

In short, no news is good news.
--
Cheers,
luna

No comments:

Post a Comment