Skip to main content

    584 Ideas

    Aleksey
    AlekseySteward **

    Redfish REST API plugin for Cisco UCS servers.Needs Votes

     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 --verboseUse 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 [code: '415'] [message: '']checking chassis======> request sendPOST https://imc101:443/redfish/v1/SessionService/Sessions/Accept: application/json;charset=UTF-8User-Agent: centreon::plugins::backend::http::useragentContent-Type: application/json;charset=UTF-8{"Password":"mypwd","UserName":"monitor"}======> response doneHTTP/1.1 415 Unsupported Media TypeConnection: keep-aliveDate: Mon, 22 Jul 2024 14:45:07 GMTServer: webserverWWW-Authenticate: Basic, charset="UTF-8"Content-Length: 0Content-Type: application/jsonClient-Date: Mon, 22 Jul 2024 14:45:07 GMTClient-Peer: 10.160.2.149:443Client-Response-Num: 1Client-SSL-Cert-Issuer: /DC=com/DC=holding/CN=IT-Dept-CA1Client-SSL-Cert-Subject: /CN=IMC101.holding.comClient-SSL-Cipher: TLS_AES_256_GCM_SHA384Client-SSL-Socket-Class: IO::Socket::SSLClient-SSL-Version: TLSv1_3