I see Cisco has a somewhat official Nagios plugin that uses their XML API, but it's built for Nagios Core and it seems like it takes quite a bit of manual work that isn't in the plugin documentation to adapt it to XI. I've also seen two exchange plugins it looks like one uses SNMP and the other the XML API.
I already have the plugin published by Cisco installed on my Nagios box and I can successfully run it from command line, I know how to create a command in Nagios to execute it, but I have no idea how to have Nagios parse the response looking for an error or what queries I should be running against the CIMC.
So I guess what I'm getting at is, has anyone done it, and if so what's the best approach?
Monitoring Cisco UCS Servers with XI
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Monitoring Cisco UCS Servers with XI
You will want to follow this to create a command definition just as you would in Core:
http://assets.nagios.com/downloads/nagi ... lugins.pdf
Can you give us a link to said plugin so we can take a look? Thanks!
http://assets.nagios.com/downloads/nagi ... lugins.pdf
Can you give us a link to said plugin so we can take a look? Thanks!
-
motoxrdr21
- Posts: 10
- Joined: Mon Aug 18, 2014 8:11 am
Re: Monitoring Cisco UCS Servers with XI
Thanks for the link.
The plugin and related docs can be found here: https://communities.cisco.com/docs/DOC-52835
The CIMC Python SDK also has to be installed from here: https://communities.cisco.com/docs/DOC-50404
The plugin and related docs can be found here: https://communities.cisco.com/docs/DOC-52835
The CIMC Python SDK also has to be installed from here: https://communities.cisco.com/docs/DOC-50404
-
motoxrdr21
- Posts: 10
- Joined: Mon Aug 18, 2014 8:11 am
Re: Monitoring Cisco UCS Servers with XI
I had already setup the command, but didn't test it since like I said I didn't know how to setup Nagios to parse the result, but I just went ahead and tested it and it pulls both OK and Critical status' fine, just for reference below is the command I created, the ARGs are as follows:
-ARG1 = IMC username
-ARG2 = IMC password
-ARG3 = query type (class/dn)
-ARG4 = the query
-ARG5 = additional options
$USER1$/cisco_imc_nagios --NoSsl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -t $ARG3$ -q $ARG4$ $ARG5$
I had to add the --NoSsl flag, because there is an issue with the IMC self-signed SSL certs, and there is also an open firmware bug dealing with an issue importing third party signed certs, so as of v2.0.1(a) it seems like we're limited to non-ssl communication with a stand-alone C-Series IMC.
As a base test I used the below values which displayed an OK status until I pulled the cord on a redundant PSU and got a critical alert.
Test service:
ARG3: class
ARG4: ComputeRackUnit
-ARG1 = IMC username
-ARG2 = IMC password
-ARG3 = query type (class/dn)
-ARG4 = the query
-ARG5 = additional options
$USER1$/cisco_imc_nagios --NoSsl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -t $ARG3$ -q $ARG4$ $ARG5$
I had to add the --NoSsl flag, because there is an issue with the IMC self-signed SSL certs, and there is also an open firmware bug dealing with an issue importing third party signed certs, so as of v2.0.1(a) it seems like we're limited to non-ssl communication with a stand-alone C-Series IMC.
As a base test I used the below values which displayed an OK status until I pulled the cord on a redundant PSU and got a critical alert.
Test service:
ARG3: class
ARG4: ComputeRackUnit
Re: Monitoring Cisco UCS Servers with XI
Have you run into any other issues or is it working alright now?
Former Nagios employee
-
motoxrdr21
- Posts: 10
- Joined: Mon Aug 18, 2014 8:11 am
Re: Monitoring Cisco UCS Servers with XI
It seems to be working fine now that I have it setup.
Re: Monitoring Cisco UCS Servers with XI
I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee