Trouble installing a plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Trouble installing a plugin

Post by npolovenko »

@angus, Can you show us the list of python packages you have installed?

Code: Select all

pip list
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Trouble installing a plugin

Post 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)
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Trouble installing a plugin

Post 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.
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Trouble installing a plugin

Post 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.
kyang

Re: Trouble installing a plugin

Post 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.
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Trouble installing a plugin

Post 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?
kyang

Re: Trouble installing a plugin

Post 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.
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Re: Trouble installing a plugin

Post by angus »

OK, thank you. please lock this thread.
kyang

Re: Trouble installing a plugin

Post 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!
Locked