NIXStats / nixstatsagent

NIXStats monitoring agent
https://www.nixstats.com
Other
92 stars 38 forks source link

LiteSpeed plugin: "invalid syntax" #37

Closed rinogo closed 3 years ago

rinogo commented 5 years ago

The LiteSpeed plugin fails with the following error:

root@host [10015 11:34:10 ~]# nixstatsagent --test litespeed
litespeed:
Load error: invalid syntax (connectionpool.py, line 100)

The problem ultimately is that the plugin appears to require Python 2.7+ (I was using Python 2.6 on my CentOS 6 system).

To fix the problem, uninstall nixstatsagent:

pip uninstall nixstatsagent

Then, reinstall nixstatsagent within the 2.7+ Python environment. On my system, this looked like this:

python2.7 -m pip install nixstatsagent