Search All Sites
Nagios Live WebinarsLet our experts show you how Nagios can help your organization.
Don't miss your chance to attend the 2014 Nagios World Conference, Oct 13-16th. Informative Sessions, Networking, Food and Cocktails! Visit go.nagios.com/conference/ for more information or to register.
- Nagios 3.x
Version 0.2 (26.06.2013)
check_cisco_ucs is a Nagios plugin to monitor Cisco UCS rack and blade center hardware.
The plugin uses the Cisco UCS XML API via HTTPS to do a wide variety of checks.
It uses the Google Go progamming language because of no need to install any libraries.
For Go installation instructions see http://golang.org/doc/install
32 bit binary version can be found at:
64 bit binary version can be found at:
The binary was compiled with Go 1.1 on CentOS 6.x 2.6.18 i686
This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY.
It may be used, redistributed and/or modified under the terms of the GNU General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).
1. UCSC-C240-M3S server and CIMC firmware version 1.5(1f).24
2. Cisco UCS Manager version 2.1(1e) and UCSB-B22-M3 blade center
Cisco UCS Rack-Mount Servers CIMC XML API Programmer's Guide http://www.cisco.com/en/US/docs/unified_computing/ucs/c/sw/api/b_cimc_api_book.html
Version 0.1 (11.06.2013) initial release
Version 0.2 (26.06.2013)
usage text debug flag added,
write errors to stdout instead of stderr,
flag -E to show environment variables added
flag -V to print plugin version added
1. better error handling
2. add performance data support
3. command line flag to influence TLS cert verification
works great from the command line,
./check_cisco_ucs -H x.x.x.x-t class -q topSystem -a "name address currentTime mode" -e "stand-alone" -u username-p password
OK - Cisco UCS topSystem (name,address,currentTime,mode) ServerName,x.x.x.x,Mon Jun 24 17:29:28 2013
,stand-alone (1 of 1 ok)
When i add as a Nagios service check, i just get status unknown "error: EOF"?? Any ideas?
*Faults are Major/Critical
*Faults are unaknowleged
Best regards Michael Unterhuber
For the issue of working from command line and not working on GUI, I did following:
# go build go build check_cisco_ucs.go
The you will get the binary file check_cisco_ucs in the same folder.
After that move the binary file to the nagios libexec folder. (e.g. /usr/local/nagios/libexec)
Then change the owner and permissions on file check_cisco_ucs:
# chmod 755 check_cisco_ucs
# chown nagios.nagios check_cisco_ucs
Test the new binary at CLI with user nagios:
# su – nagios
$ cd /usr/local/nagios/libexec
$ ./check_cisco_ucs -H 172.18.4.7 -t class -q equipmentPsu -a "id model operability" -e "operable" -u kmp -p password
Finally, I am able to monitor all switch ports and power supply units of cisco UCS 5108.
However, I would like to know what other commands I can use? I don't know where I can find CISCO UCS XML API Object class names or DN (distinguished name).
It would be good if I can monitor other components also but don't know what names these components/parts are called in XML API.