cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1845
Views
0
Helpful
3
Replies
Highlighted

Cisco UCS Manager Plugin Release 0.9.3 for Nagios - Issues with plugin and autodiscovery

Hi,

I am running Nagios Core 4.0.7 on a Fedora Core test server and have a UCSC-C220-M4 running firmware 2.0(3e) on the CIMC.

I've installed the Nagios UCS Plugin (0.9.3), ImcSdk-0.6.2 and UcsSdk-0.8.3.

Unfortunately whenever I either run the autodiscover (having given the correct IP, credentials and connection type in the config) or use the libexec/plugin, they both fail and report back errors.
Please see below - can anyone offer any suggestions on how to resolve this?

Thanks in advance.

Paul

************ Output from the IMCSDK test ************


[root@localhost ImcSdk-0.6.2]# python
Python 2.7.8 (default, Nov 10 2014, 08:19:18)
[GCC 4.9.2 20141101 (Red Hat 4.9.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ImcSdk
>>> ImcSdk.__version__
'0.6.2'
>>> from ImcSdk import *
>>> h=ImcHandle()
>>> h.SetDumpXml()
>>> h.Login('1.1.1.1,'******','*******')
None ====> <?xml version="1.0" ?><aaaLogin inName="******" inPassword="******"/>
None <==== <aaaLogin cookie="" response="yes" outCookie="1430804378/bd87081e-154f-154f-8007-ee44d202b884" outRefreshPeriod="600" outPriv="read-only" outSessionId="14" outVersion="2.0(3e)"> </aaaLogin>

None ====> <?xml version="1.0" ?><configResolveDn cookie="1430804378/bd87081e-154f-154f-8007-ee44d202b884" dn="sys/rack-unit-1" inHierarchical="false"/>
None <==== <configResolveDn cookie="1430804378/bd87081e-154f-154f-8007-ee44d202b884" response="yes" dn="sys/rack-unit-1">
<outConfig>
<computeRackUnit dn="sys/rack-unit-1" adminPower="policy" availableMemory="65536" model="UCSC-C220-M4S" memorySpeed="1866" name="UCS C220 M4S" numOfAdaptors="1" numOfCores="16" numOfCoresEnabled="16" numOfCpus="2" numOfEthHostIfs="0" numOfFcHostIfs="0" numOfThreads="32" operPower="off" originalUuid="C7F87DE7-4293-4B78-8429-0B93CA807147" presence="equipped" serverId="1" serial="FCH1910V09E" totalMemory="65536" usrLbl="" uuid="C7F87DE7-4293-4B78-8429-0B93CA807147" vendor="Cisco Systems Inc" ></computeRackUnit></outConfig>
</configResolveDn>

None ====> <?xml version="1.0" ?><configResolveClass classId="networkElement" cookie="1430804378/bd87081e-154f-154f-8007-ee44d202b884" inHierarchical="false"/>
None <==== <error cookie="" response="yes" errorCode="ERR-xml-parse-error" invocationResult="594" errorDescr="XML PARSING ERROR: no class named networkElement" />

None ====> <?xml version="1.0" ?><configResolveDn cookie="1430804378/bd87081e-154f-154f-8007-ee44d202b884" dn="sys" inHierarchical="false"/>
None <==== <configResolveDn cookie="1430804378/bd87081e-154f-154f-8007-ee44d202b884" response="yes" dn="sys">
<outConfig>
<topSystem dn="sys" address="1.1.1.1" currentTime="Tue May  5 05:39:44 2015
" localTime="Tue May  5 05:39:44 2015 UTC" timeZone="UTC" mode="stand-alone" name="C220-FCH1910xxxx" ></topSystem></outConfig>
</configResolveDn>

True


******* Output from the nagios plugin *********

./cisco_ucs_nagios -H 1.1.1.1 -u ****** -p ****** --type dn -q sys/rack-unit-1

Error is of Type :   UcsException  Message >> [ErrorCode]: ERR-xml-parse-error[ErrorDescription]: XML PARSING ERROR: No such XML API method by name configResolveDns
Error while trying to run the UCS Nagios monitoring service.
Check for Nagios logs as it may help finding error details.


******* Output from autodiscovery *************

[root@localhost autodiscovery]# ./NagiosAutoDiscoveryUCS.py
UCS host information csv file   /usr/local/nagios/ucs/autodiscovery/UCSHostInfo.csv
/usr/local/nagios/ucs/autodiscovery/NagiosAutoDiscoveryUCS.cfg File exists
Removing the folder path : /usr/local/nagios/etc/cisco/ucsObjs
Copying the payload to /usr/local/nagios/etc/cisco/ucsObjs
------------------------------------------------------------
Connecting to UCS - '1.1.1.1' with user '*****' and password 'xxxxxxxxxx'
Connect using NoSsl as 'False', port as '443' and  proxy as 'None'
Error while trying to discover :  1.1.1.1
Error is of Type :   Exception  Message >> cannot concatenate 'str' and 'NoneType' objects
Error while trying to auto discover UCS Infrastructure. Check if any of the UCS are reachable.
[root@localhost autodiscovery]#

Everyone's tags (6)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Cisco UCS Manager Plugin Release 0.9.3 for Nagios - Issues with plugin and autodiscovery

Paul

I think you need the IMC plugin and not the UCS manager version.

Cisco IMC Plugin for Nagios (version 0.9.2)

Try this and let us know

Arun

3 REPLIES 3
Cisco Employee

Re: Cisco UCS Manager Plugin Release 0.9.3 for Nagios - Issues with plugin and autodiscovery

Paul

I think you need the IMC plugin and not the UCS manager version.

Cisco IMC Plugin for Nagios (version 0.9.2)

Try this and let us know

Arun

Re: Cisco UCS Manager Plugin Release 0.9.3 for Nagios - Issues with plugin and autodiscovery

Thanks Arun - that explains it. I'm now getting a good response.

Re: Cisco UCS Manager Plugin Release 0.9.3 for Nagios - Issues with plugin and autodiscovery

Hi Paul,

As I understand you are using UCS Nagios plugin to monitor a rack server.

This is the reason why you may be having issues with the plugin and

autodiscovery .

Try using the IMC Nagios plugin which can be found at

https://communities.cisco.com/docs/DOC-52673

Regards

Prateek Tripathi

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards
This widget could not be displayed.