Page 1 of 1

Lenovo XClarity Integrator plugin for Nagios

Posted: Wed Mar 31, 2021 10:36 pm
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 ~

Re: Lenovo XClarity Integrator plugin for Nagios

Posted: Thu Apr 01, 2021 12:31 pm
by ssax
What XI version are you running?

What OS/version are you running?

Code: Select all

uname -a
cat /etc/*release

Re: Lenovo XClarity Integrator plugin for Nagios

Posted: Thu Apr 01, 2021 1:21 pm
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

Re: Lenovo XClarity Integrator plugin for Nagios

Posted: Thu Apr 08, 2021 3:43 am
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.

Re: Lenovo XClarity Integrator plugin for Nagios

Posted: Thu Apr 08, 2021 4:06 am
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...

Re: Lenovo XClarity Integrator plugin for Nagios

Posted: Thu Apr 08, 2021 4:07 am
by a7530995
Sorry I forgot upload the attachment

Re: Lenovo XClarity Integrator plugin for Nagios

Posted: Thu Apr 08, 2021 5:13 pm
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.

Re: Lenovo XClarity Integrator plugin for Nagios

Posted: Mon Apr 12, 2021 9:58 pm
by a7530995
Hi Sir ,

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

/usr/local/nagios/libexec/xclarity_integrator_check.py generate_credentials

Re: Lenovo XClarity Integrator plugin for Nagios

Posted: Tue Apr 13, 2021 4:01 pm
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.