q1x / zabbix-gnomes

Various scripts to automate tasks in Zabbix
Other
179 stars 93 forks source link

Strange behaviour with Zabbix 3.4.5 #8

Open safpsr opened 6 years ago

safpsr commented 6 years ago

Hi, I have a problem with a fresh installation of Zabbix and Zabbix Gnomes:

Here is a screen copy of Host groups. SYS_Linux & Zabbix_servers Linux have the same hosts. image

[zabbix@SLT00795 zabbix-gnomes]$ /home/zabbix/zabbix-gnomes/zversion.py 3.4.5 [zabbix@SLT00795 zabbix-gnomes]$ /home/zabbix/zabbix-gnomes/zghostfinder.py "Zabbix_servers Linux" slt00795 slt00797 slt00762 slt00761 slt00798 slt00801 slt00760 [zabbix@SLT00795 zabbix-gnomes]$ /home/zabbix/zabbix-gnomes/zghostfinder.py "SYS_Linux" Error: Could not find hostgroup "SYS_Linux" [zabbix@SLT00795 zabbix-gnomes]$ cat /home/zabbix/adminscripts/ListeGroupesHosts.input z hostgroup.get(output="extend") exit [zabbix@SLT00795 zabbix-gnomes]$ /home/zabbix/zabbix-gnomes/zapi.py < /home/zabbix/adminscripts/ListeGroupesHosts.input | grep "'name'" zapi: [{u'flags': u'0', u'groupid': u'1', u'internal': u'0', u'name': u'Templates'}, u'name': u'Discovered hosts'}, u'name': u'Virtual machines'}, u'name': u'Hypervisors'}, u'name': u'TEM_Templates_de_base'}, u'name': u'Zabbix_servers Linux'}]

zghostfinder find one group but no the other ! Very strange ...

Do you have an idea ? Thanks a lot

CentOS 7.3 Zabbix 3.4.5 PostgreSQL 9.6 Python 2.7 pyzabbix 0.74 Last version of Zabbix Gnomes

q1x commented 5 years ago

Hi, sorry for the late response. Did you manage to find the issue?

If not, are you using the same user in frontend and API?