Hi Corey,

For threshold sensor's event handler for example as below, we are getting value 
as 0 only all the times. Only the raw_value is coming properly. 
int sensorThresholdEventHandler(ipmi_sensor_t       *sensor,
                                                      
enum ipmi_event_dir_e      
direction,
                                                       enum ipmi_thresh_e       
   threshold,
                                                       enum 
ipmi_event_value_dir_e high_low,
                                                       enum 
ipmi_value_present_e   value_present,
                                                       unsigned int             
   raw_value,
                                                       double                   
   value,
                                                       void                     
   *cb_data,
                                                       ipmi_event_t             
   *event)

We are testing the events by using ipmitool to change the threshold value of 
the sensor so that its current value is outside the threshold. This way we are 
getting the event generated and handler function being called. But we are not 
getting the current value. Always it is coming as 0 only.
For temperature sensors it was ok, as both raw_value is same as actual value. 
But for voltage sensors, we are not able to extract value from the raw_value 
obtained in the event handler. 

Could you please help in resolving the problem?

thanks and regards
S Sarath 
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to