cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1451
Views
0
Helpful
1
Replies

nagios UCS python error - IndexError: list index out of range

slowswitch
Level 1
Level 1

Nagios Plug-Ins for Cisco UCS

I am  trying to integrate some B-series severs with a clients Nagios system and get this error.

Traceback (most recent call last):

  File "./installer.py", line 467, in <module>

    extracted_name = name_list[0] + "_" + name_list[1] + "_" + name_list[2]

IndexError: list index out of range

[root@opsviewprim10 dave]#

It is the latest python 2.7

nagios core 3.23

Redhat 5.5

and latest Cisco SDK

thanks

1 Reply 1

prvashis
Cisco Employee
Cisco Employee

Hello Ian,

It seems to be an issue with the directory from where you are running the installer script.

Can you please provide the listing of your directory from where you are executing the script.

The directory should be similar to below output.

[root@nagios-centos cisco-ucs-nagios-0.9.3]# ls -lrt

total 92

-rwxr-xr-x 1 root root 32379 Jan 29 15:01 installer.py

-rw-r--r-- 1 root root  3456 Jan 29 15:01 INSTALL

-rw-r--r-- 1 root root 49473 Jan 29 15:01 cisco-ucs-nagios-0.9.3.tar.gz

We need to execute the "installer.py" from this directory only not from outside. And the naming convention of the tar.gz present in the directory should not be changed.

thanks

Cisco UCS X-Series Energy Efficiency Offer