Skip to main content
Question

Xclarity Integrator Nagios

  • July 6, 2022
  • 6 replies
  • 210 views

Forum|alt.badge.img+1

Hello,

I’m having issue to add to centreon the plugin xclarity_integrator_check.py

I followed the instruction and when I try it via command line is working fine but when added to centreon as a check command I get (No output returned from plugin).

 

Searched the internet without luck, so I’m trying here.

I’m using  Centreon v. 22.04.0 in centos 7.9

The script I have downloaded is from Lenovo: https://support.lenovo.com/us/es/solutions/ht507298

Thanks!

6 replies

Forum|alt.badge.img+14
  • Builder ***
  • 137 replies
  • July 6, 2022

Hello @dronco 

Could you post the command used on Centreon with your error output ?

Maybe you could use the Lenovo XCC SNMP Plugins https://docs.centreon.com/fr/pp/integrations/plugin-packs/procedures/hardware-servers-lenovo-xcc-snmp/

Capabilities of the plugins are : https://github.com/centreon/centreon-plugins/tree/master/hardware/server/lenovo/xcc/snmp/mode/components

Regards,


Forum|alt.badge.img+1
  • Author
  • Steward *
  • 3 replies
  • July 6, 2022

Hi,

I will take a look at Lenovo XCC SNMP Plugins, thanks.

The command is /usr/lib64/nagios/plugins/xclarity_integrator_check.py --lxca system

The error is the one I posted: (No output returned from plugin).

Thanks.

 


Forum|alt.badge.img+14
  • Builder ***
  • 137 replies
  • July 6, 2022

Hi,

The command is /usr/lib64/nagios/plugins/xclarity_integrator_check.py --lxca system

 

I think you do execute it like that : /usr/bin/python3 xclarity_integrator_check.py --lxca system

Or /usr/bin/python xclarity_integrator_check.py --lxca system 

Probably centreon can't execute the python binary by it self

https://docs.centreon.com/fr/pp/integrations/plugin-packs/getting-started/how-to-guides/troubleshooting-plugins/#no-output-returned-from-plugin


Forum|alt.badge.img+14
  • Builder ***
  • 137 replies
  • July 6, 2022

With the full path :

/usr/bin/python3 /usr/lib64/nagios/plugins/xclarity_integrator_check.py --lxca system

Or

/usr/bin/python /usr/lib64/nagios/plugins/xclarity_integrator_check.py --lxca system


Forum|alt.badge.img+1
  • Author
  • Steward *
  • 3 replies
  • July 7, 2022

Hi,

Tried adding  /usr/bin/python3 to the command without luck.

Also, I notice that when I run the command at command line it take up to one minute to show the output.
Maybe centreon is not waiting for the command to end?

I increased the time of timeouts of check in centreon-engine conf file and nothing changed.

Poller/Engine configuration/data/Service Check Timeout

Well thanks for the help!
If anyone has any idea It is much appreciated.


Forum|alt.badge.img+1
  • Author
  • Steward *
  • 3 replies
  • July 7, 2022

Well I have fixed it.

Ran the credential command with the user centreon-engine:

/usr/bin/python3 /usr/lib64/nagios/plugins/xclarity_integrator_check.py generate_credentials

When checking on the web It was giving me a time out so I was thinking that was not working but let there for a minute and then reported OK and seems to be working fine.

Thanks for the help.