Re: prevent email
Koen <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, > How to prevent or reduce cricket from sending emails. When a system is > down every 5 minutes a mail is generated. Sometimes this can be quite a > lot. I doubt cricket itself (the collector) is sending you these E-mails. More likely it's the cron system that is generating mail upon receiving output from the collector every time it runs it. Several options for you: * redirect all output from the collector to a file (append ' > /dev/null 2>&1' to the crontab-lines that contain "collect-subtrees" you want to mute) * specify an alternative user to send the mail to by adding a MAILTO environment variable assignment to your crontab * filter the output of the "collect-subtrees" lines using a script you make (tip: awk(1)) * filter the mails to another mailfolder with procmail(1) to be able to analyze them later In case you run GNU/Linux, you can look for the crontab in /etc/cron.d/ (/etc/cron.d/cricket in my case), or with 'crontab -l' if you run the collector from a per-user crontab. I prefer to keep and read the E-mails though, to (needless to say) solve problems when they occur... kind regards, koen. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV