[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Sending email to site admins only?
- Subject: Re: [cobalt-users] Sending email to site admins only?
- From: shimi <shimi@xxxxxxxxxxxxxxxx>
- Date: Tue Sep 4 21:49:24 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Wed, 5 Sep 2001, Carrie Bartkowiak wrote:
> There's been a lot of talk about sending mail to *all* users on the
> server; this is not what I want to do.
> I need to know how the machine determines who the site administrator
> is for a domain.
> What I'm wanting to do is have the server go through the logs once a
> day and email all of the error lines for that domain to the domain's
> site administrator. I've got some site admins who don't bother to
> look at their copy of the logs, and I'm getting pretty fed up with
> having constant entries being logged because an image can't be found.
> It's really filling up the logs before they get chopped up each
> night. I want to make the site admins aware of this noise they're
> throwing into the logs so they can fix it. This would be a cron job,
> of course.
>
> I do have a PHP script written up that greps the error log for a
> certain domain and returns it to a browser, but sending email to the
> site admin is more of an 'in your face' solution that they can't
> ignore (or just neglect to check).
>
> Any ideas?
> --
> CarrieB
>
Take the userlist of the site. I hope you know how to do that.
Take the list, and for each item, check if it's in the group site-adm.
If it's not, erase it from the list.
You'll be left with the site admins for that specific site.
I stand to be corrected... :-)
- shimi.