Re: Libprelude api question

Yoann Vandoorselaere <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.devel
Message-ID <1187781619.15415.127.camel@localhost>
Le lundi 20 août 2007 à 21:07 -0400, Paul Robert Marino a écrit :
> I'm currently working on writing an addon to snmptrapd to turn it into a 
> native prelude sensor using the embeded perl plugin to snmptrapd. It is 
> crude due to the early stage of development but it works. I'm having one 
> problem though I haven't figured out how to recover from a failover yet. 
> If any one can give me pointers I would be greatfull even if its in C 
> I've gotten fairly good at turning it into perl code that is acceptable 
> to the api.
> I wiil post some code examples of how I'm connecting later tonight when 
> I get home

Hello Paul,

In order to have working failover / heartbeat support, the libprelude
timer should be waken up.

You can do this automatically by using:
prelude_client_set_flags(client, prelude_client_get_flags(client)|
PRELUDE_CLIENT_FLAGS_ASYNC_TIMER);

or manually by calling prelude_timer_wake_up() every second from the
perl code.

Hope this help,

-- 
Yoann Vandoorselaere | Responsable R&D / CTO | PreludeIDS Technologies
Tel: +33 (0)8 70 70 21 58                  Fax: +33(0)4 78 42 21 58
http://www.prelude-ids.com

_______________________________________________
Prelude-devel site list
[email protected]
http://www.prelude-ids.org/mailman/listinfo/prelude-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.