HP iLo exporter Installation failure : https://github.com/n27051538/hpilo-exporter

189 views
Skip to first unread message

Pratik Khandelwal

unread,
Apr 20, 2021, 8:36:06 AM4/20/21
to Prometheus Users
Hello,

I'm trying to install the HP iLO node exporter and facing issues while installing. Please help me to resolve this issue.

Steps followed:

1. pip install -e $HPILO_EXPORTER_DIR - Latest Released Version
2. Added the environment variables export ilo_user=userexport ilo_password=password export ilo_port=443
3. Configured the Prometheus.YML as shown below.

- job_name: 'hpilo'
    scrape_interval: 1m
    scrape_timeout: 30s
    params:
      ilo_host: ['HOSTNAME/IP']
      #ilo_port: ['443']                 # set in exporter ENV
      #ilo_user: ['username']        # set in exporter ENV
      #ilo_password: ['password']  #set in exporter ENV
    static_configs:
      - targets:
        - ' HOSTNAME/IP'
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_ilo_host
      - source_labels: [__param_ilo_host]
        target_label: ilo_host
      - target_label: __address__
        replacement: hpilo:8082  # hpilo exporter.

NOTE: As shown above, I am modifying only the BOLD variables. I am giving Hostname or IP address for  ilo_host and  targets , facing the same installation issue as shown below. 
Also, I tried uncommenting the port, user, and password and gave the proper details too.

4. I am running the HPILO exporter as shown below. I tired giving the iLO IP qaddress but the exporter doesn't work with any other IP address.

command: hpilo-exporter --address=0.0.0.0 --port=9416 --endpoint="/metrics"


5. Error observed. 

Get "http://hpilo:8082/metrics?ilo_host=HOSTNAME": dial tcp: lookup hpilo on  HOSTNAME:53: read udp  HOSTNAME :36428-> HOSTNAME:53: read: connection refused

I have tried with all the scenarios I could looking the multiple forums but still facing the same error. Not sure where exactly it's having the problem. We checked the network configuration too.
I have installed other exporters like Vmware, SNMP, and windows and I didn't face this issue before. 

HP ilo Details :  

Product Name : ProLiant DL360 Gen9

Firmware Version : 2.74 May 08 2020

Please help me resolve this issue.

Thanks,
Pratik

Stuart Clark

unread,
Apr 20, 2021, 8:49:34 AM4/20/21
to Pratik Khandelwal, Prometheus Users
On 2021-04-20 13:36, Pratik Khandelwal wrote:
> Hello,
>
> I'm trying to install the HP iLO node exporter and facing issues while
> installing. Please help me to resolve this issue.
>
> Steps followed:
>
> 1. pip install -e $HPILO_EXPORTER_DIR - Latest Released Version
> 2. Added the environment variables EXPORT ILO_USER=USEREXPORT
> ILO_PASSWORD=PASSWORD EXPORT ILO_PORT=443
> 3. CONFIGURED THE PROMETHEUS.YML AS SHOWN BELOW.
>
> - job_name: 'hpilo'
> scrape_interval: 1m
> scrape_timeout: 30s
> params:
> ilo_host: ['HOSTNAME/IP']
> #ilo_port: ['443'] # SET IN EXPORTER ENV
> #ilo_user: ['username'] # SET IN EXPORTER ENV
> #ilo_password: ['password'] #SET IN EXPORTER ENV
> static_configs:
> - targets:
> - ' HOSTNAME/IP'
> relabel_configs:
> - source_labels: [__address__]
> target_label: __param_ilo_host
> - source_labels: [__param_ilo_host]
> target_label: ilo_host
> - target_label: __address__
> replacement: hpilo:8082 # hpilo exporter.
>
> NOTE: As shown above, I am modifying only the BOLD variables. I am
> giving Hostname or IP address for ILO_HOST AND TARGETS , facing the
> same installation issue as shown below.
> Also, I tried uncommenting the PORT, USER, AND PASSWORD and gave the
> proper details too.
>
> 4. I am running the HPILO exporter as shown below. I tired giving the
> iLO IP qaddress but the exporter doesn't work with any other IP
> address.
>
> COMMAND: HPILO-EXPORTER --ADDRESS=0.0.0.0 --PORT=9416
> --ENDPOINT="/METRICS"
>
> 5. ERROR OBSERVED.
>


The exporter command you gave above suggests it is listening on port
9416, but the Prometheus job config lists 8082. I'd suggest matching the
port numbers and trying again.

--
Stuart Clark
Reply all
Reply to author
Forward
0 new messages