Hello Andreas, I’m trying your special agent without any luck. I tried with both CMK 1.6 and 2.0, they throw both two different error:
In 1.6:
ERROR: Agent exited with code 1: Traceback (most recent call last):
File "/omd/sites/mysite/local/share/check_mk/agents/special/agent_lenovo_xclarity", line 24, in <module>
import lenovo_utils as utils
File "/omd/sites/mysite/local/lib/python/lenovo_utils.py", line 23, in <module>
import redfish
ImportError: No module named redfish
In 2.0:
Agent exited with code 1: Traceback (most recent call last):
File "/omd/sites/mysite/local/share/check_mk/agents/special/agent_lenovo_xclarity", line 24, in <module>
import lenovo_utils as utils
ImportError: No module named lenovo_utils
There is an overall health check already included. At the moment i don’t know if i have done it also for the XClarity but for the latest Dell iDRAC it is there.
With Redfish you have for every component one normal health state and one rollup health state if this component included other sub components.
For the wanted overall health state you can use the chassis rollup health state and this will show the complete system state.
Inside the XClarity check this part is missing.
On my to-do list, is the point - unified Redfish agent for all manufacturers.
If i have some Lenovo systems in the meantime i will have a look at the system state.
It is also on thing to do - on the special agent site - configurable sections for the agent.
Here you can make a smart exclude rule that you only see the ambient temperature or nothing.
i was struggling with my xClarity and thinksystem system… because they are delivering only two checks over snmp “uptime and snmp info” so i find your special agent, in hope he could fetch more.
i donwloaded the mkp file and add it as an extension over the cmk GUI
i still dont really now how to use it thou? i normally find every special agent und the “other integrations” section or only by tipping the name in search bar. and than configure it.
i have a 2.1.0p9.cfe still testing the Enteprise free Edition.
Beside this you need also to install the Redfish Python module with “pip3 install redfish” as site user. This is written inside the package info.
After this and also before you should see the xClarity special agent inside the other integrations section.
after deleting the mkp package and installing it again, and restarting the checkmk appliance, nothing happend and still doesnt show up under the others packages.
hello, so downloaded the plugin with the 2.6 version. and he is now availble.
i configured it with giving it the username and the password. and set the agent to “Api configurend else checkmk agent” when making connections i got this error in the agent section.
Agent exited with code 1: Traceback (most recent call last):
File "/omd/sites/checkmkmo/local/share/check_mk/agents/special/agent_lenovo_xclarity", line 186, in <module>
result = get_hw_inventory(ip, login_account, login_password)
File "/omd/sites/checkmkmo/local/share/check_mk/agents/special/agent_lenovo_xclarity", line 43, in get_hw_inventory
REDFISH_OBJ = redfish.redfish_client(
File "/omd/sites/checkmkmo/local/lib/python3/redfish/rest/v1.py", line 1096, in redfish_client
return HttpClient(base_url=base_url, username=username, password=password,
File "/omd/sites/checkmkmo/local/lib/python3/redfish/rest/v1.py", line 1008, in __init__
super(HttpClient, self).__init__(base_url, username=username,
File "/omd/sites/checkmkmo/local/lib/python3/redfish/rest/v1.py", line 492, in __init__
self.get_root_object()
File "/omd/sites/checkmkmo/local/lib/python3/redfish/rest/v1.py", line 587, in get_root_object
raise ServerDownOrUnreachableError("Server not reachable, " \
redfish.rest.v1.ServerDownOrUnreachableError: Server not reachable, return code: 404
is it beacuase of the httpclient? my xClarity is reachbale under httpS://IP. if it is so how can i redirect to https
OMD[checkmkmo]:~$ curl -v https://192.168.20.12/redfish/v1
* Expire in 0 ms for 6 (transfer 0x55f9348c99d0)
* Trying 192.168.20.12...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x55f9348c99d0)
* Connected to 192.168.20.12 (192.168.20.12) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: self signed certificate in certificate chain
* Closing connection 0
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
i got this response. it seems to have some certificate issues.
That is nearly “normal”. As most management interfaces i saw in the last 20 years had only self signed certificates. You can add the option to curl to ignore the certificate problem.
Naja ich hab keine Antwort auf den letzten Post bekommen und offensichtlich bietet das System keinen Redfish Endpoint an. Kann sich meiner Meinung nach nur um ein Konfigurationsproblem auf dem Management Interface handeln.
Wenn der SR650 einen ordentlichen XClarity Controller hat so muss er auch Redfish können.