Skip to main content

 

Hello.

Is it possible to add a new plugin for Cisco UCS servers? Cisco IMC (integrated management controller) management modules have different access protocols: SNMP, XML API, Redfish REST API.

Having searched the redfish plugin code, I found a similar plugin "hardware::server::hp::ilo::restapi::plugin". However it doesn't work

 

# ./centreon_plugins.pl --plugin hardware::server::hp::ilo::restapi::plugin --mode hardware --hostname 'imc101' --api-username 'monitor' --api-password 'mypwd' --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE" --timeout 60 --debug --verbose

Use of uninitialized value in concatenation (.) or string at /usr/lib/nagios/plugins/centreon-plugins/hardware/server/hp/ilo/restapi/custom/api.pm line 168.
UNKNOWN: Login error rcode: '415'] ]message: '']
checking chassis
======> request send
POST https://imc101:443/redfish/v1/SessionService/Sessions/
Accept: application/json;charset=UTF-8
User-Agent: centreon::plugins::backend::http::useragent
Content-Type: application/json;charset=UTF-8

{"Password":"mypwd","UserName":"monitor"}
======> response done
HTTP/1.1 415 Unsupported Media Type
Connection: keep-alive
Date: Mon, 22 Jul 2024 14:45:07 GMT
Server: webserver
WWW-Authenticate: Basic, charset="UTF-8"
Content-Length: 0
Content-Type: application/json
Client-Date: Mon, 22 Jul 2024 14:45:07 GMT
Client-Peer: 10.160.2.149:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /DC=com/DC=holding/CN=IT-Dept-CA1
Client-SSL-Cert-Subject: /CN=IMC101.holding.com
Client-SSL-Cipher: TLS_AES_256_GCM_SHA384
Client-SSL-Socket-Class: IO::Socket::SSL
Client-SSL-Version: TLSv1_3

Examples of using Redfish are described here
https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/c/sw/api/4_2/b_cisco-ucs-c-series-servers-rest-api-programmer-s- guide-release-4_2/m_redfish_api_examples_4_2.html


Can you please detail your need here as we do have a Cisco UCS connector (SNMP-based)?

Are you looking at an alternative to SNMP? Or is this a matter of different UCS models than what we support?

Also the link you provided does not work.

 


NewDiscussion ongoing

Also the link you provided does not work.

 

https://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/c/sw/api/4_2/b_cisco-ucs-c-series-servers-rest-api-programmer-s-guide-release-4_2/m_redfish_api_examples_4_2.html


Can you please detail your need here as we do have a Cisco UCS connector (SNMP-based)?


If by "Cisco UCS connector (SNMP-based)" you mean the "hardware::server::cisco::ucs::snmp::plugin" plugin, then this plugin uses a connection to Cisco UCS Manager. We do not have a deployed Cisco UCS Manager and want to monitor the state of Cisco UCS servers via the Cisco IMC (CIMC) integrated management module. Through this interface, we can obtain data on the state of all hardware components of the server.


Discussion ongoingNeeds Votes