www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-10542) Puppet created cron jobs are flooding with email
Date Sun, 04 Oct 2015 11:25:26 GMT

    [ https://issues.apache.org/jira/browse/INFRA-10542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14942644#comment-14942644

Sebb commented on INFRA-10542:

I noticed the same on projects-vm; the crontab jobs produce a lot of output.
In that case, the emails aren't a nuisance because they stay on the box.
However they get ignored unless one is looking for a problem.

For the www-data crontab jobs I was thinking of wrapping them in a shell script which redirects
stdout to a time-stamped log file.
[If this is placed under /var/logs it can be automatically rotated/archived.]
Stderr could be left for the mailer, or could be redirected to the file as well.
In which case the script could grep the output looking for problems, and redirect those so
they go to the mailer.
This latter is the approach taken by the people.apache.org cron job; it only directs known
error messages to mail.

Just my 2p; perhaps there are already better solutions for this issue.

> Puppet created cron jobs are flooding with email
> ------------------------------------------------
>                 Key: INFRA-10542
>                 URL: https://issues.apache.org/jira/browse/INFRA-10542
>             Project: Infrastructure
>          Issue Type: Bug
>          Components: Puppet
>            Reporter: David Nalley
> Cron jobs from puppet are spewing mail, and ENOCARE. 
> Email is also a poor mechanism to let us know that something is wrong, esp when it is
something that sends a dozen emails every night, if we need monitoring/alerting, lets do that
in something that we will actually pay attention to rather than something we ignore. 
> In example, look for this subject for messages: 
> Cron <root@mysql1-us-mid> /root/purge_old_kernels -y

This message was sent by Atlassian JIRA

View raw message