Page 2 of 2
Re: Trouble installing a plugin
Posted: Fri Feb 02, 2018 1:47 pm
by npolovenko
@angus, Can you show us the list of python packages you have installed?
It also looks like you have Python2.6 installed and it could be that the plugin was written for Python 2.7. This may cause syntax errors during the execution.
Re: Trouble installing a plugin
Posted: Fri Feb 02, 2018 3:19 pm
by angus
Below are my packages.
s]# pip list
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the
- section) to disable this warning.
argparse (1.2.1)
backports.ssl-match-hostname (3.4.0.2)
bitmath (1.3.1.2)
cachez (0.1.2)
certifi (2018.1.18)
chardet (3.0.4)
distribute (0.6.10)
docopt (0.6.2)
enum34 (1.1.6)
ethtool (0.6)
idna (2.6)
iniparse (0.3.1)
iwlib (1.0)
lxml (2.2.3)
nagios-unity (0.1.2)
nose (0.10.4)
numpy (1.4.1)
ordereddict (1.2)
persist-queue (0.3.4)
pip (9.0.1)
py-rrdtool (0.2.1)
pycurl (7.19.0)
pygpgme (0.1)
pymongo (2.5.2)
pymssql (1.0.2)
python-dateutil (2.6.1)
pyxdg (0.18)
PyYAML (3.12)
requests (2.18.4)
retryz (0.1.9)
setuptools (0.6rc11)
simplejson (2.0.9)
six (1.11.0)
storops (0.5.7)
urlgrabber (3.9.1)
urllib3 (1.22)
yum-metadata-parser (1.1.2)
Re: Trouble installing a plugin
Posted: Fri Feb 02, 2018 3:54 pm
by dwhitfield
I have confirmed this works on Python 2.7 but not Python 2.6. Unfortunately, this leaves you with two inconvenient options:
1. Upgrade Python on CentOS (this is a TERRIBLE idea unless you really know what you are doing. If you destroy your system doing this, we aren't going to be in a place to help you out...so take backups if you want to give it a shot).
2. Migrate to CentOS 7. This will be painful, but is supported through our backup/restore scripts.
Re: Trouble installing a plugin
Posted: Tue Feb 06, 2018 9:44 am
by angus
Thanks for the explanation on this! How difficult would it be for me to migrate? is there a KB article that covers this topic well?
thanks again.
Re: Trouble installing a plugin
Posted: Tue Feb 06, 2018 10:44 am
by kyang
Hello,
Assuming you mean for CentOS Python 2.7?
We don't have any kb articles that cover this setup. This is customizing Nagios, and we have not yet tested this fully.
this is a TERRIBLE idea unless you really know what you are doing. If you destroy your system doing this, we aren't going to be in a place to help you out...so take backups if you want to give it a shot
As dwhitfield mentioned.
Re: Trouble installing a plugin
Posted: Tue Feb 06, 2018 11:08 am
by angus
I was referring to installing Nagios on Centos7 and bringing my config over to the new server. I assume i can install python 2.7 once upgraded without issue, correct?
Re: Trouble installing a plugin
Posted: Tue Feb 06, 2018 12:30 pm
by kyang
CentOS upgrades are not a Nagios related issue. Our doc does cover it a little bit.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Otherwise, CentOS 7 does comes with Python 2.7.
Re: Trouble installing a plugin
Posted: Tue Feb 06, 2018 1:46 pm
by angus
OK, thank you. please lock this thread.
Re: Trouble installing a plugin
Posted: Tue Feb 06, 2018 1:56 pm
by kyang
Sounds good! I'll be closing this thread!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!