Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195877 - app-admin/tenshi - group_host doesn't work
Summary: app-admin/tenshi - group_host doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Tenshi (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tenshi Group User
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-14 18:16 UTC by Sebastian Wieseler
Modified: 2007-10-15 09:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Wieseler 2007-10-14 18:16:59 UTC
My tenshi.conf looks like:

set queue host1_misc     tenshi@localhost user@localhost [* * * * *]
set queue host1_critical tenshi@localhost user@localhost [now] tenshi CRITICAL report

group_host host1:
        # criticals
        host1_critical ^(?:/usr/bin)?sudo:
        host1_critical ^Oops
        host1_critical ^Linux
        host1_critical ^init
        # all other
        host1_misc .*
group_end




When tenshi tries to go through the log messages it says:
[MAIN]  got message: Oct 14 20:13:23 host1 innfeed[12383]: ME articles active 0 bytes 0
[MAIN]  skipping to regex: 6 after failed match for group regex on line: innfeed: ME articles active 0 bytes 0
[..........]
[MAIN]  got message: Oct 14 20:14:10 host1 innfeed[12383]: foo:0 idle tearing down connection
[MAIN]  skipping to regex: 6 after failed match for group regex on line: innfeed: foo:0 idle tearing down connection
[..........]

Every log message contains the host name of the sender but tenshi seems to be unable to filter the hostname.
So it seems that group_host has no effect.

I would like to filter log messages because of the name of host. Is this possible? Why doesn't group_host work for me?

Regards,
Sebastian Wieseler
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-14 19:18:49 UTC
Which ebuild and version is this about?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-10-14 19:19:00 UTC
Which ebuild and version is this about?
Comment 3 Sebastian Wieseler 2007-10-14 19:22:08 UTC
app-admin/tenshi-0.7

# $Header: /var/cvsroot/gentoo-x86/app-admin/tenshi/tenshi-0.7.ebuild,v 1.6 2007/09/22 23:20:59 philantrop Exp $
Comment 4 Sebastian Wieseler 2007-10-14 19:34:47 UTC
app-admin/tenshi-0.9.1 has got the same "problem".
Comment 5 Andrea Barisani (RETIRED) gentoo-dev 2007-10-14 22:29:44 UTC
You are using the wrong syntax, check the man page.

It's not

group_host host1:

but

group_host host1

You have an extra ':' there.
Comment 6 Andrea Barisani (RETIRED) gentoo-dev 2007-10-15 09:09:20 UTC
Closing as INVALID. Re-open if necessary. Cheers