Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello.
i have a centos 6.2 64bit box that i've installed tripwire on. ( opensource tripwire )
now, i configured tripwire to automatically report to me via crontab everyday at 12:00 AM every change made to the system.
the tripwire command has a flag that when issued send a mail as defined in it's policy file.
the problem is i need crond to send emails too.
i dont only have tripwire giving reports, i also have yum check-update emails sent once a day.
the problem was fine until prelink automagically ran one time, then report sizes were skyrocketing, so i disabled prelink, not much use for it on a 99.99% uptime box anyway.
my question is, how can i only have tripwire itsself sending me emails and how can i disable crond's report for tripwire but keep crond's report for yum ?
It sounds like you have two separate cronjobs sending you tripwire reports, correct? (You set up one that you wish to keep, and the package - or script - that you installed tripwire with must have set up another.)
Check /etc/crontab, root's crontab (# crontab -l), /etc/cron.d, and /etc/cron.daily for the other cronjob.
well, crond, if configured, sends emails from all cron entries stdout at runtime.
tripwire itself can send emails and i have a line in /etc/crontab that sais:
0 0 * * * root `which tripwire` -m c -M -v
the -M flag is for mail.
so the result is as follows
i have a mail coming from crond
and i have another mail coming from tripwire itself.
i want to keep the tripwire mail but configure cron to stop sending mails for tripwire alone.
i have other cronjobs that i do want to receive reports of.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.