The problem may be that the session is not subscribed to receive events,
when the resource failed event is reported. By the time you run hpievents,
the event already came and went.
If you put your code in get_event like I've already suggested, it should
work.
You can also try running hpievents blocking for events (hpievents -h for
more info) while running hpitree to get your code to generate the event.
You can also look at the domain event log (with hpiel) to see if the event
got logged there. Events get logged in the domain event log if they are of
high enough severity (MINOR by default). This severity threshold can be
changed in openhpi.conf.
Saludos,
--Renier
Lionel Tricon <[EMAIL PROTECTED]> wrote on 06/07/2007 05:11:04 AM:
> Renier Morales a écrit :
> >
> > Are you seeing the "evenement envoye" printf? Have you tried taking
> > the code that sets the resource to failed and creates the event
> > outside of the switch and any if conditions?
> Yes, i got the "evenement envoye" output.
>
> # openhpid -c /etc/openhpi/openhpi.conf -n
> ** id=1
> ** value=35.000000
> [...]
> ** value=185.000000
> ** id=1
> ** value=195.000000
> ** ResourceFailed **
> ** evenement envoye ....
>
> Lionel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel