![]() |
![]() |
Subject: | Retrieve Custom Properties using Json API |
Author: | [Not Specified] |
Posted: | 2014-06-16 11:58 |
I'm looking for a way to retrieve custom Device Properties.
I've tried to look at the calls made by the page, but it call that has what I'm looking for looks like this:
http://myzenoss:8080/zport/dmd/Devices/Discovered/devices/192.168.12.11/...
I could extract the details from the HTML, but I want to avoid hacking it like that.... Any suggestions
Subject: | zendmd |
Author: | Jan Garaj |
Posted: | 2014-06-17 16:32 |
Zenoss has nice feature with name zendmd. So why you don't use it Why "JSON" api
> zendmd
d = find('
You can write some script in python.
Devops Monitoring Expert advice:
Dockerize/automate/monitor all the things.
DevOps stack:
Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform /
Elasticsearch
Subject: | Hi Jan, Thank you for your |
Author: | [Not Specified] |
Posted: | 2014-06-18 04:57 |
Hi Jan, Thank you for your reply.
I checked the zendmd out, but unfortunately, I don't know the name of the custom properties in advance.
My application retrieves devices' details from Zenoss, so I need to first discover what are the custom properties setup in a Zenoss installation and secondly, how to retrieve the values for these properties for each device.
Considering that my application is likely to be running in a different server, I may not even have access to zendmd easily too.
Subject: | No problem. |
Author: | Jan Garaj |
Posted: | 2014-06-18 07:37 |
No problem.
> zendmd
d = find('
and then iterate this list_of_properties.
Devops Monitoring Expert advice:
Dockerize/automate/monitor all the things.
DevOps stack:
Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform /
Elasticsearch
Subject: | Thank you so much for the |
Author: | [Not Specified] |
Posted: | 2014-06-18 10:38 |
Thank you so much for the answers Jan, I promise this is the last question - how can I get zendmd without having to perform a full installation of Zenoss
I am not likely to have access to Zenoss at all to execute those commands.
Subject: | NP. You can have many |
Author: | Jan Garaj |
Posted: | 2014-06-19 14:14 |
NP. You can have many questions. That's the reason for this forum :-)
> how can I get zendmd without having to perform a full installation of Zenoss
Good question, but I don't know answer. Usually I run zendmd script on master. Maybe you can run it everywhere, where is python if you copy all required python files for zendmd. http://dev.zenoss.org/trac/browser/tags/zenoss-4.2.5/Products/ZenModel/z...
If you need light solution, than try JSON API (and we are going back to your original question :-)). That can be reason for JSON API. But I didn't find any method for custom properties in JSON API. Also web GUI don't use JSON API in this case. So from my view you have these options:
- zendmd
- web gui parsing
- you can learn zope and then you can execute direct Zope SQL SELECT.
Devops Monitoring Expert advice:
Dockerize/automate/monitor all the things.
DevOps stack:
Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform /
Elasticsearch
< |
Previous problem with zenwinperf |
Next Retrieve Custom Properties using Json API |
> |