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