Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EngMohamedElEmam opened this issue Jan 2, 2022 · 0 comments

Comments

@EngMohamedElEmam
Copy link

EngMohamedElEmam commented Jan 2, 2022

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant