Ad Widget

Collapse

IPMI discovery and direct sensor reading not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gabbs
    Junior Member
    • Feb 2020
    • 11

    #1

    IPMI discovery and direct sensor reading not working

    Hi,

    I have an appliance that I would like to monitor via its IPMI interface. This appliance is running OpenBMC Linux firmware.
    I have successfully added the host, set up IPMI authentication (Auth algorithm: RMPC+ , Privilege: Admin) the interface is up,
    I have added the official template so the automatic discovery of sensors can happen but it returns an empty list. I have manually
    added a few items (sensors) which I know for sure they exist, but zabbix says 'sensor or control does not exist'.
    I have tried to prefix them like "id:" and "name:" but they made no difference. I also tried suffixing the sensors IDs with 0 as some of the OpenIPMI implementations differ but that made no change either.

    If I manually run "ipmitool sensor" command on the Zabbix proxy (from where this host is monitored) it returns all the sensors correctly. If I run "ipmitool sensor powersupply0" or "ipmitool sensor fan0_0" they return correct answer.

    I am a bit puzzled at this stage and trying to understand what is failing and why.

    Thanks!



    Here are Zabbix Proxy logs at DebugLevel=4

    Code:
    6493:20210419:112950.767 In ipmi_poller_process_value_request()
    6493:20210419:112950.767 ipmi_poller_process_value_request() for discovery itemid:411949 addr:bmc001.test.net port:623 authtype:6 privilege:4 username:root
    6493:20210419:112950.767 In get_discovery_ipmi() itemid:411949
    6493:20210419:112950.767 In zbx_init_ipmi_host() host:'[bmc001.test.net]:623'
    6493:20210419:112950.767 In zbx_get_ipmi_host() host:'[bmc001.test.net]:623'
    6493:20210419:112950.767 End of zbx_get_ipmi_host():(nil)
    6493:20210419:112950.767 In zbx_allocate_ipmi_host() host:'[bmc001.test.net]:623'
    6493:20210419:112950.767 End of zbx_allocate_ipmi_host():0x55aa9ee85450
    6493:20210419:112950.769 In zbx_perform_openipmi_ops() host:'[bmc001.test.net]:623' phost:0x55aa9ee85450 from zbx_init_ipmi_host()
    6493:20210419:112950.850 INFO: 0 0 ipmi_lan.c(connection_up): Connection 0 to the BMC is up
    6493:20210419:112950.850 INFO: 0 0 ipmi_lan.c(connection_up): Connection to the BMC restored
    6481:20210419:112950.861 In DCconfig_get_ipmi_poller_items()
    6481:20210419:112950.861 End of DCconfig_get_ipmi_poller_items():0
    6493:20210419:112951.112 End zbx_perform_openipmi_ops() from zbx_init_ipmi_host()
    6493:20210419:112951.112 End of zbx_init_ipmi_host():0x55aa9ee85450 domain_nr:0
    6493:20210419:112951.112 End of get_discovery_ipmi() value:[]
    6493:20210419:112951.112 End of ipmi_poller_process_value_request()
    
    
    
    6493:20210419:113818.812 In ipmi_poller_process_value_request()
    6493:20210419:113818.812 ipmi_poller_process_value_request() itemid:412098 addr:bmc001.test.net port:623 authtype:6 privilege:4 username:root sensor:powersupply0
    6493:20210419:113818.812 In get_value_ipmi() itemid:412098
    6493:20210419:113818.812 In zbx_init_ipmi_host() host:'[bmc001.test.net]:623'
    6493:20210419:113818.812 In zbx_get_ipmi_host() host:'[bmc001.test.net]:623'
    6493:20210419:113818.812 End of zbx_get_ipmi_host():0x55aa9ee85450
    6493:20210419:113818.812 End of zbx_init_ipmi_host():0x55aa9ee85450 domain_nr:0
    6493:20210419:113818.812 In zbx_get_ipmi_sensor_by_id() sensor:'powersupply0@[bmc001.test.net]:623'
    6493:20210419:113818.812 End of zbx_get_ipmi_sensor_by_id():(nil)
    6493:20210419:113818.812 In zbx_get_ipmi_control_by_name() control: powersupply0@[bmc001.test.net]:623
    6493:20210419:113818.812 End of zbx_get_ipmi_control_by_name():(nil)
    6493:20210419:113818.813 End of ipmi_poller_process_value_request()
    
    6493:20210419:113818.813 In ipmi_poller_process_value_request()
    6493:20210419:113818.813 ipmi_poller_process_value_request() itemid:412098 addr:bmc001.test.net port:623 authtype:6 privilege:4 username:root sensor:fan0_0
    6493:20210419:113818.813 In get_value_ipmi() itemid:412098
    6493:20210419:113818.813 In zbx_init_ipmi_host() host:'[bmc001.test.net]:623'
    6493:20210419:113818.813 In zbx_get_ipmi_host() host:'[bmc001.test.net]:623'
    6493:20210419:113818.813 End of zbx_get_ipmi_host():0x55aa9ee85450
    6493:20210419:113818.813 End of zbx_init_ipmi_host():0x55aa9ee85450 domain_nr:0
    6493:20210419:113818.813 In zbx_get_ipmi_sensor_by_id() sensor:'fan0_0@[bmc001.test.net]:623'
    6493:20210419:113818.813 End of zbx_get_ipmi_sensor_by_id():(nil)
    6493:20210419:113818.813 In zbx_get_ipmi_control_by_name() control: fan0_0@[bmc001.test.net]:623
    6493:20210419:113818.813 End of zbx_get_ipmi_control_by_name():(nil)
    6493:20210419:113818.813 End of ipmi_poller_process_value_request()
    Here are the logs from command line

    Code:
    # ipmitool -I lanplus -U root -P <password> -H bmc001.test.net sensor | grep power
    powersupply0 | 0x0 | discrete | 0x0100| na | na | na | na | na | na
    powersupply1 | 0x0 | discrete | 0x0100| na | na | na | na | na | na
    
    # ipmitool -I lanplus -U root -P <password> -H bmc001.test.net sensor | grep fan0_0
    fan0_0 | 500.000 | RPM | ok | na | 6900.000 | 7700.000 | 3800.000 | 5200.000 | na
    
    
    # ipmitool -I lanplus -U root -P <password> -H bmc001.test.net sensor get powersupply0
    Locating sensor record...
    Sensor ID : powersupply0 (0x9)
    Entity ID : 10.1
    Sensor Type (Discrete): Power Supply
    States Asserted : Power Supply
    [Presence detected]
    
    # ipmitool -I lanplus -U root -P <password> -H bmc001.test.net sensor sensor get fan0_0
    Locating sensor record...
    Sensor ID : fan0_0 (0x32)
    Entity ID : 29.1
    Sensor Type (Threshold) : Fan
    Sensor Reading : 600 (+/- 0) RPM
    Status : ok
    Lower Non-Recoverable : na
    Lower Critical : 6900.000
    Lower Non-Critical : 7700.000
    Upper Non-Critical : 3800.000
    Upper Critical : 5200.000
    Upper Non-Recoverable : na
    Positive Hysteresis : Unspecified
    Negative Hysteresis : Unspecified
    Component versions:

    Code:
    # rpm -qa | grep zabbix
    zabbix-agent2-5.0.10-1.el7.x86_64
    zabbix-proxy-sqlite3-5.0.0-1.el7.x86_64
    
    # rpm -qa | grep -i openipmi
    OpenIPMI-2.0.27-1.el7.x86_64
    OpenIPMI-libs-2.0.27-1.el7.x86_64
    OpenIPMI-modalias-2.0.27-1.el7.x86_64
    
    # rpm -qa | grep -i ipmitool
    ipmitool-1.8.18-7.el7.x86_64
Working...