![]() |
![]() |
Subject: | Zenoss 4.2.5 - Accessing Raw Data |
Author: | [Not Specified] |
Posted: | 2015-09-22 14:18 |
Is there any way to programmatically extract raw metric data from Zenoss via the JOSN API
I have seen this post: http://www.zenoss.org/forum/1821 suggesting to extract the data directly from the RRD instead of Zenoss. Details and rationale of that aside, I am wondering if it is possible at all Is there a way to get raw data out of Zenoss programmatically, not through graphs
Subject: | JSON API doc - http:/ |
Author: | Jan Garaj |
Posted: | 2015-09-22 16:24 |
JSON API doc - http://community.zenoss.org/community/documentation/official_documentati...
-> I don't see any extract raw metrics data - graphs are rendered by RRD lib, so zenoss doesn't need this type of function
IMHO it's possible, but it's not free lunch and you will need coding skills - some inspiration http://zenoss-users.zenoss.narkive.com/8fCiG9J4/rrdfetch-via-xml-rpc
Maybe you can use also another concept instead of fetching, e.g. mirroring https://github.com/monitoringartist/ZenPacks.JanGaraj.DataMirroring (again coding skills are required).
Devops Monitoring Expert advice:
Dockerize/automate/monitor all the things.
DevOps stack:
Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform /
Elasticsearch
Subject: | Any reason to think that |
Author: | [Not Specified] |
Posted: | 2015-09-23 08:11 |
Any reason to think that first link would be inapplicable now This is my first time using Zenoss, so I am very new to all of it.
Subject: | I can think of a few ways. |
Author: | [Not Specified] |
Posted: | 2015-09-23 13:20 |
I can think of a few ways.
* Go to the collector, /opt/zenoss/perf/Devices/YOURSERVER/... and "rrdtool dump" the rrd files
* You can get the current value of an RRD metric with the getRRDValue API, for example
h_t_t_tp://yourzenoss:8080/zport/dmd/Devices/Server/Windows/devices/DEVNAME/getRRDValuedsname=sysUpTime_sysUpTime
* There's Memory and CPU performance reports in the Zenoss interface, you could put together the options and use "curl" to retrieve and parse one on the command line. Use something like firebug to see how the web interface does it, and you can make your own script to do the same.
* Talk to "zenrender" service: http://yourzenoss.foo.com:8091/ and use the methods described there... Not much documentation out there but see this post: http://www.zenoss.org/forum/3316
< |
Previous Empty Graphs |
Next Corrupt zodb - tools cannot fix it |
> |