Apache Application apache-stats.py NameError: name 'states' is not defined

Hello,

i follwed the guide to enable the apache application. I choose the snmp way.

When I start the apache-stats.py I get the following error.
root@web:/etc/snmp# python apache-stats.py
U
U
U
U
U
U
U
U
U
Traceback (most recent call last):
File “apache-stats.py”, line 88, in
print states[state]
NameError: name ‘states’ is not defined

python-urlgrabber python-pycurl is installed. Apache mod_status is configured

Has anyone an idea what I can do to fix this error ?

edit your url in apache-stats.py to a known working server-status url in my case that was an ssl url not an http url

1 Like