jookies / jasmin-monitoring

Scripts, configs and templates for monitoring RabbitMQ, Redis and Jasmin through Zabbix 2.4+.
Apache License 2.0
4 stars 12 forks source link

discovery rule "[servername]:jasmin.discovery[{HOSTNAME},smppcs]" became not supported: Unsupported item key. #3

Open EngMohamedElEmam opened 2 years ago

EngMohamedElEmam commented 2 years ago

Hello ?! I have a problem connecting a jasmin to Zabbix after I installed Zabbix agent and Zabbix reading linux figures from same VM ?

My zabbix version is 5.4 with latest Jasmin version

Error on zabbix server discovery rule "[servername]:jasmin.discovery[{HOSTNAME},smppcs]" became not supported: Unsupported item key. discovery rule "[servername]:jasmin.discovery[{HOSTNAME},users]" became not supported: Unsupported item key.

I followed this steps

After a correct configuration of every py scripts and the import of the XML into the zabbix server:

On the zabbix server web interface: go to configuration -> templates -> Template App Jasmin For each item (25), change the type from "Zabbix agent (active)" to "Zabbix trapper" In the same "Template" section select the tab "Discovery rules" For both the lines ("Jasmin SMPP client connectors" and "Jasmin users") go into "Item prototypes" and do the same action (change the type from "Zabbix agent (active)" to "Zabbix trapper") After that apply the template to the host and wait some minutes to permit the discovery rule to be executed. To verify on the zabbix client side (probably the jasmin host): # /etc/zabbix/script/jasmin/jasmin_discover.py --hostname [INSERT_THE_HOSTNAME] -d smppcs should print the json list of your upstream connection # /etc/zabbix/script/jasmin/jasmin_discover.py --hostname [INSERT_THE_HOSTNAME] -d users should print the json list of your configured user in jasmin # /etc/zabbix/script/jasmin/jasmin_get.py --host [INSERT_THE_HOSTNAME] should not give you any output If you uncomment the line 144 [#print(resp)] you should see something like this: {u'info': u'processed: 313; failed: 0; total: 313; seconds spent: 0.007436', u'response': u'success'}

but not fixed wth result the result of jasmin_get.py is {u'info': u'processed: 0; failed: 77; total: 77; seconds spent: 0.001077', u'response': u'success'} any ideas waht to do ?