Ad Widget

Collapse

HPE iLO by HTTP : Error: maximum count of HttpRequest objects was reached

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ltep
    Member
    • Nov 2022
    • 42

    #1

    HPE iLO by HTTP : Error: maximum count of HttpRequest objects was reached

    Hi All,

    I'm trying to use the HPE iLo by HTTP but without any luck. This template was a Zabbix feature request, see [ZBXNEXT-8522] HPE iLo 5 by HTTP - ZABBIX SUPPORT
    I thought the template would work out of the box but it seems not. I have no idea what i'm doing wrong here?​

    The Zabbix version i'm running is 6.4.10
    The iLo version is 2.95 (iLo 5 on a DL380 Gen10)

    Regarding to the readme, an iLo user zbx_monitor with the ReadOnly role was created

    In Zabbix i created a new host with the HPE iLO by HTTP linked template.
    The host has 3 macro's set:
    ILO.URL which has value https://192.168.1.205
    ILO.USER which has value zbx_monitor
    ILO.PASSWORD which has the password of the zbx_monitor user

    In the iLO session list i can see the zbx_monitor has an active session
    In the iLO Event Log i can see the zbx_monitor user has Browser login / Browser logout activity

    When i check the discovery rules on the created host. The info label is showing an error message for each discovery rule:

    Preprocessing failed for: {"error":"Error: maximum count of HttpRequest objects was reached."}
    1. Failed: TypeError: cannot read property 'map' of undefined
    at [anon] (duktape.c:59387) internal
    at [anon] (function:3) preventsyield
  • ltep
    Member
    • Nov 2022
    • 42

    #2
    Rebooting the whole server fixed the issue.

    Comment

    • Audriusas
      Junior Member
      • Jan 2024
      • 2

      #3
      Hi,
      Template does not work out of the box, because it have bugs out of the box .
      I guess after some time of you will need to reboot server again as template code unable to logout from ilo and session count is growing .
      I pointed these bugs to Zabbix support, but nobody cares.
      See my issue and I hope you will find how to fix template yourself.

      at least use 1. from my fixes proposed.

      Comment

      • Audriusas
        Junior Member
        • Jan 2024
        • 2

        #4
        Below what needs to be changed in template at least :
        'Get Data' item code have bugs:

        In apiLogout function lines should be changed ( changed line starts with comment)

        1. from:
        url = encodeURI(ilo.session_url);


        to:
        url = encodeURI(ilo.params.ilo_url.replace(/\/$/, "") + ilo.session_url);

        Comment

        • ltep
          Member
          • Nov 2022
          • 42

          #5
          Thank you Audriusas.
          So far no growing sessions with the original code.. I'll keep an eye on it.

          Comment

          • ltep
            Member
            • Nov 2022
            • 42

            #6
            It seems the discovery rules show a different error message with the apiLogout fix:
            The user has a readonly profile.

            Preprocessing failed for: {"error":"Deleting of session failed with status code 403: <html>\n\n<head>\n <meta http-equiv...
            1. Failed: TypeError: cannot read property 'map' of undefined
            at [anon] (duktape.c:60534) internal
            at [anon] (function:3) preventsyield​

            Comment

            Working...