Checkmk - HPE OneView Agent

Hi Team

We are using Checkmk Raw Edition 2.1.0p18.
Checkmk special agent for Oneview is not discovering all the Device bays in the Synergy frames, Maximum discover device is 32.

Is it something related to agent limit …such that it can discover maximum up to 32 device bays?

BR
//Prachi

There is no builtin special agent for OneView.
What mkp do you have installed?

Hi ,

Ohk…We have installed hpe_oneview-1.4.mkp
Checkmk Exchange

MKP is working for few which has 32 device bays but the one which has more than 32 device bays there it is not discovering all the bays.

BR
//Prachi

Hi Prachi,

the mkp was written by my colleague @jwiederh who is unavailable this week, but you can ping him the output of the special agent in a private message and maybe there is a quick way to fix this.

Gerd

3 Likes

Thank you for your acknowledgement:)

BR
//Prachi

We fixed an error with the default filtering on the HPE API.
The newest Package is also uploaded to the checkmk exchange.

Thanks for the input, Prachi!

Cheers Jeronimo

3 Likes

Hi Jeronimo,

Thank you so much, you are a very skilled and a strong technical professional. Just in minutes you resolved it!!!

Best Regards
//Prachi

I do not see new version ?
Checkmk Exchange

There is only 1.4 from Jul of 2022

Hi Stefan,

image

It is currently under review, so it should be visible in the next days.

Cheers Jeronimo

1 Like

New agent is online, and it works great, thanks a lot for update.

Is there possibility to get “serverName” and not “name”
Because “serverName” is descriptive like Webserver1
and “name” is just frame 1 bay 7

Example:

serverName

The name of the server as reported by the iLO. The iLO gets this information from a running operating system that has monitoring software installed, like Agentless Management Service.

name

For blade servers, it is the location based name of the server, which is formed by concatenating the enclosure name and the bay number. For rack servers, it is the serial number prefixed by word “ILO” (e.g. ILOUSE31835LS).

So just this change would do:
from

    "hpe_oneview_server_hardware": {"url":"/rest/server-hardware?start=0&count=128",
        	                "output_members": ["name", "state", "status"]},

to

    "hpe_oneview_server_hardware": {"url":"/rest/server-hardware?start=0&count=128",
        	                "output_members": ["serverName", "state", "status"]},

As per docs
HPE OneView REST API Reference

And you would probably need to bump API version:

def api_calls(address, token):
    headers = {
        "X-Api-Version": "1200",
        "Content-Type": "application/json",
        "Auth": token
    }

to

def api_calls(address, token):
    headers = {
        "X-Api-Version": "2400",
        "Content-Type": "application/json",
        "Auth": token
    }

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.