Lenovo XClarity Integrator plugin for Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
a7530995
Posts: 5
Joined: Mon Mar 29, 2021 4:29 am

Lenovo XClarity Integrator plugin for Nagios

Post by a7530995 »

Hi all ,

I meet some problem during using the nagios with Lenovo XClarity Integrator plugin.

I follow the link to install and setting everything.

https://sysmgt.lenovofiles.com/help/ind ... setup.html

But I got many different errors on the nagios, I have no idea how to solve it.

it's seem like the python's problems. I use Python 3.5.2 version.(Because the link suggest this version)

Please help ~
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Lenovo XClarity Integrator plugin for Nagios

Post by ssax »

What XI version are you running?

What OS/version are you running?

Code: Select all

uname -a
cat /etc/*release
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Lenovo XClarity Integrator plugin for Nagios

Post by ssax »

Did you run this command to generate the creds?

Code: Select all

/usr/local/nagios/libexec/xclarity_integrator_check.py generate_credentials
SSH into the XI server, run this command as the nagios user, and send the full output:
- Change LXCA to whatever you entered in when you ran the command above

Code: Select all

/usr/local/nagios/libexec/xclarity_integrator_check.py --lxca LXCA
To get rid of that CryptographyDeprecationWarning you can do this:

Code: Select all

pip3.5 install cryptography==2.2.2
Does your XI system have access to it?
- Change X.X.X.X to the IP of your xclarity

Code: Select all

nmap -Pn -p 443 X.X.X.X
EDIT: Make sure you have this installed as well:

Code: Select all

pip3.5 -y install pycryptodome
a7530995
Posts: 5
Joined: Mon Mar 29, 2021 4:29 am

Re: Lenovo XClarity Integrator plugin for Nagios

Post by a7530995 »

ssax wrote:What XI version are you running?

What OS/version are you running?

Code: Select all

uname -a
cat /etc/*release


Hi this my version.
You do not have the required permissions to view the files attached to this post.
a7530995
Posts: 5
Joined: Mon Mar 29, 2021 4:29 am

Re: Lenovo XClarity Integrator plugin for Nagios

Post by a7530995 »

Did you run this command to generate the creds?

CODE: SELECT ALL
/usr/local/nagios/libexec/xclarity_integrator_check.py generate_credentials

Ans : Yes , and it let's me input some information


CODE: SELECT ALL
/usr/local/nagios/libexec/xclarity_integrator_check.py --lxca LXCA

Ans : When I input this command, it shows errors.


pip3.5 install cryptography==2.2.2
Ans : I had already installed this plugin.


CODE: SELECT ALL
nmap -Pn -p 443 X.X.X.X
Ans : Yes But I use pip3. As the attachment..

CODE: SELECT ALL
pip3.5 -y install pycryptodome
Ans : Yes But I use pip3...
a7530995
Posts: 5
Joined: Mon Mar 29, 2021 4:29 am

Re: Lenovo XClarity Integrator plugin for Nagios

Post by a7530995 »

Sorry I forgot upload the attachment
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Lenovo XClarity Integrator plugin for Nagios

Post by ssax »

When you did this, did you use LXCA for the LXCA name?

Code: Select all

/usr/local/nagios/libexec/xclarity_integrator_check.py generate_credentials
You'll need to use whatever you entered in the above command in this command (replacing LXCA with whatever name you entered for the LXCA name):

Code: Select all

/usr/local/nagios/libexec/xclarity_integrator_check.py --lxca LXCA
Please run t from the command line and send me the full output.
a7530995
Posts: 5
Joined: Mon Mar 29, 2021 4:29 am

Re: Lenovo XClarity Integrator plugin for Nagios

Post by a7530995 »

Hi Sir ,

Now when I run this command , it's show error.

/usr/local/nagios/libexec/xclarity_integrator_check.py generate_credentials
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Lenovo XClarity Integrator plugin for Nagios

Post by ssax »

Please run these commands:

Code: Select all

pip3.5 install --upgrade pip==20.3.4
pip3.5 install keyring keyrings.cryptfile requests pbkdf2 pycrypto
# These next ones are to resolve an issue of installation order with pycrypto/pycryptodome
# https://github.com/pycrypto/pycrypto/issues/297#issuecomment-601698577
pip3.5 uninstall -y pycryptodome
pip3.5 install pycryptodome
Then try it again.
Locked