zabbix-openstack icon indicating copy to clipboard operation
zabbix-openstack copied to clipboard

Failed to import openstack python modules

Open frankwangzc opened this issue 8 years ago • 6 comments

My openstack system cannot monitor by zabbix. My environment as below:

  1. Zabbix 3.0 , OS:CentOS 6.7
  2. Openstack (Liberty) When the externalscripts runs on the zabbix server, it is shows the error: Failed to import openstack python modules.( the command is externalscripts]# ./openstack-discovery "http://xx.xx.xx.xx:5000/v2.0" "admin" "admin" "password" )

And the zabbix web console said "Value should be a JSON object."

Does anyone have idea to fix the issue? Thank you in advance.

frankwangzc avatar Oct 28 '16 05:10 frankwangzc

I'm just starting to play with this, but you need to install python-novaclient as well as python-keystoneclient. The docs seem to overlook this.

emccormickva avatar Nov 14 '16 23:11 emccormickva

Hi emccormickva

Thanks for your advice. I have already installed the two plugins. The issue as the same "Value should be a JSON object."..

Regards with thanks.

frankwangzc avatar Nov 17 '16 02:11 frankwangzc

Hello have you been able to fix? i'm facing the same issue :( regards Fabio

fgastald avatar Jun 14 '17 16:06 fgastald

me too same issue ? any fix ?

appooja avatar Aug 24 '20 15:08 appooja

no it was long time ago by the way i left the project sorry. Il lunedì 24 agosto 2020, 17:53:32 CEST, appooja [email protected] ha scritto:

me too same issue ? any fix ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

fgastald avatar Aug 24 '20 16:08 fgastald

I figured out the problem. All you need to do, is install python modules for all users, because zabbix uses its own linux user for launching scripts. You can do it like here

Ameta1 avatar Apr 29 '21 14:04 Ameta1