Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index out of range on CentOS 6 #7

Open
rillip3 opened this issue Apr 22, 2015 · 6 comments
Open

Index out of range on CentOS 6 #7

rillip3 opened this issue Apr 22, 2015 · 6 comments

Comments

@rillip3
Copy link

rillip3 commented Apr 22, 2015

After Issue #6 I tried the script on a CentOS 6 installation from the repo and got this:

[root@philip ~]# python varnishtuner.py
The field 'n_wrk_lqueue' is not a valid field
usage: varnishstat [-1lV] [-f field_list] [-n varnish_name] [-w delay]
-1 # Print the statistics once and exit
-f field_list # Comma separated list of fields to display.
# If it starts with '^' it is used as an exclusion list
-l # Lists the available fields to use with the -f option
-n varnish_name # The varnishd instance to get logs from
-V # Display the version number and exit
-w delay # Wait delay seconds between updates. The default is 1.
-x # Print statistics once as XML and exit.
Traceback (most recent call last):
File "varnishtuner.py", line 541, in
VC = VarnishConfig(options_file)
File "varnishtuner.py", line 183, in init
self.memorySetting = self.getMemorySetting(self.all_options_text)
File "varnishtuner.py", line 256, in getMemorySetting
mem_str = i.split(',')[2].strip('"')
IndexError: list index out of range

@lmancilla
Copy link

+1 Ubuntu 14.04 LTS

@unixy
Copy link
Owner

unixy commented Aug 30, 2015

Are you on varnish 3.x or 4.x?

@alxzndr
Copy link

alxzndr commented Sep 17, 2015

+1 on ubuntu 14.04ltw with varnish-4.0.3 revision b8c4a34

@baurmatt
Copy link

+1 on Ubuntu 14.04 LTS with Varnish-Plus 4.0.3r3-3~trusty

@unixy
Copy link
Owner

unixy commented Sep 27, 2015

Only Varnish 3.x was tested. Varnish 4.x is next.

@IhabY
Copy link

IhabY commented Dec 28, 2016

+1 CentOS 6 - varnish-3.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants