Skip to main content

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!

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,


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.

 


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


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


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.


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.


Reply