Hi,
    I have been testing the openHPI subagent to verify its ability to
send traps.  I am able to cause events to occur by changing a sensor
"Upper Minor" threshold for my power supply, but am unable to see a trap
generated for the event.  Details of the sensor and thresholds are:
 
RPT number: 3
    RPT id =   3 RDR id = 131184  sensornum = 112  Data = PS1 Status0
    RPT id =   3 RDR id = 131192  sensornum = 120  Data = PS1 AC Current
    RPT id =   3 RDR id = 131194  sensornum = 122  Data = PS1 +12V
Current
    RPT id =   3 RDR id = 131196  sensornum = 124  Data = PS1 +12V Power
Sensor number: 120
    RecordId: 131192
    RdrType: SENSOR_RDR
    Entity Path: {SYSTEM_CHASSIS,6}{SYS_MGMNT_MODULE,32}{POWER_SUPPLY,1}
    IsFru: FALSE
    Sensor Num: 120 (78 hex)
      Type: CURRENT
      Category: THRESHOLD
      EnableCtrl: TRUE
      EventCtrl: PER_EVENT
      Events: UPPER_MINOR | UPPER_MAJOR
      Data Format:
        IsSupported: TRUE
        Reading Type: FLOAT64
        Base Unit: Amps
        Percentage: FALSE
        Range Max: 31.875 Amps
        Range Min: 0.000 Amps
        Range Nominal: 8.875 Amps
        Range Normal Max: 9.875 Amps
        Range Normal Min: 0.875 Amps
        Accuracy: 1.080000
      Threshold Definitions:
        IsAccessible: TRUE
        Readable Thresholds:
          LOW_HYSTERESIS | UP_MINOR | UP_MAJOR | UP_HYSTERESIS
        Writeable Thresholds:
          LOW_HYSTERESIS | UP_MINOR | UP_MAJOR | UP_HYSTERESIS
        Nonlinear: FALSE
      OEM: 0
    IdString:
      Data Type: TEXT
      Language: ENGLISH
      Data Length: 14
      Data: PS1 AC Current
 
Reading value:      0.625 Amps
  Thresholds:
    Supported Thresholds:
    11.125       Upper Major Threshold(ua):
     0.500       Upper Minor Threshold(ui):
     0.250       Positive Threshold Hysteresis(ph):
     0.250       Negative Threshold Hysteresis(nh):
 
 
    When an event occurs, I am able to see a new entry for the event
stored in the saHpiEventEntry table, but am also expecting to see a trap
relating to this event.  In fact I do not see any traps from the openHPI
subagent.  My subagent config file is as follows:
 
 cat /etc/snmp/hpiSubagent.conf 
# Should EVENTS be sent during startup for new found
# RPT and RDR entries
# 
# on|off
send_traps_on_startup on
 
# Check the HPI API for changes. In seconds.
#check_hpi_interval 60
 
# Maximum number of event rows.
max_event_rows 1024 

 
I am able to receive warmstart traps from the snmpd and have opened a
local snmptrapd session to view those traps.   My snmpd.conf contains
following trap2sink command:
 
trap2sink 127.0.0.1 public
 
I know that the subagent is able to communicate with the snmpd and see
connection errors in the hpiSubagent log after bringing down snmpd. 
 
Is there some additional configuration that I need to do to enable
openHpi subagent traps?
 
Thank you,
       John Fulreader
-------------------------------------------------------------------------
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

Reply via email to