![]() |
![]() |
Subject: | Troubles with visualisation of fields and graphs |
Author: | [Not Specified] |
Posted: | 2015-12-03 10:36 |
Hi, we are try to develop zenpack for Hyper-V, have a troubles
1. Modelling Plugin gets and transfers array of values into. Menu item Components presents list of virtual machines, but from all fields that should be provided in the screen we find just Name, Track (not available for values entries) and Blocking. The main task for the point is to make visible other fields in the table grid. By the way, in other Zenpacks plugins, all fields are visible, but we didnt find any parts of code responsible for the fields visibility.
2. One more issue. Using plugin monitoring we dont see that the virtual machine sends and receives data, therefore we dont have a graphic on the monitoring screen. But using utility Device Modeling we can see data retrieving. (https://gyazo.com/c38eae1984a389171a08faf6014f8583)
Somebody, hepl us, please!
Subject: | All properties of your model |
Author: | Chet Luther |
Posted: | 2016-01-20 13:58 |
All properties of your model classes are shown by default both in the table and in the details if you're using zenpacklib to build your ZenPack.
http://zenpacklib.zenoss.com/
If you're building without zenpacklib, you need to make sure that you've added a column to your component's *Panel in your JavaScript source.
https://github.com/zenoss/ZenPacks.zenoss.XenServer/blob/1.0.6/ZenPacks/zenoss/XenServer/resources/js/endpoint.js#L198
Subject: | another question |
Author: | [Not Specified] |
Posted: | 2016-01-21 08:02 |
Thank U very much, Chet. We had some progress last time. However, now we have another question.
We have RRD template with WMI queries for fetching data to graphics. In menu Graphics it works. We have migrated this template to menu Components (class DeviceComponent), we see graphics on the screen but without data. In request should be send parameter, identical current marked virtual PC, to show graphics of the virtual PC. However, we cant find the parameter. We use variable ${here/id}, where id = indicator for particular virtual PC, in response we get IP address of physical PC where virtual PCs are hosted.
In our opinion, Template should work the same as for menu Graphics if request is empty show summary for all virtual PCs. However, in our case it doesnt work if request is empty.
Could somebody give any ideas
Subject: | Mori, |
Author: | Chet Luther |
Posted: | 2016-01-26 06:00 |
Mori,
I don't think I understand what you're asking. Is the "request" you're referring to an API call you see being made that doesn't have the response that you're expecting If so, would you post the API call, the response, and what you're expecting to see in the response
Subject: | 1 |
Author: | [Not Specified] |
Posted: | 2016-01-28 01:41 |
1. Here is a screenshot of working kind of request https://gyazo.com/4af669989992572dfff06928cf9079c8 .
It shows genereal all virtual machines data. As a result one can see CPU usage graph (here is a screenshot of it https://gyazo.com/187e8b76c7298753aef91a3f42f1a85c )
2. What we really want to acheive is to execute a requests of such a kind:
SELECT SystemName, DeviceID, CurrentClockSpeed, LoadPercentage from Msvm_Processor WHERE SystemName = '${here/id}'
Now such requests not executes due to ${here/id} which have no SystemName. In fact we do not understand how can we insert SystemName in a request template shown above (SELECT SystemName, etc...) in dynamic. But we can see that Zenos by itself can adress virtual machine by SystemName. It can be seen from browser address bar (here is a screenshot . https://gyazo.com/3afb5fe043a4cc07bafdffb09ac2ce58
Subject: | What type of datasource is |
Author: | Chet Luther |
Posted: | 2016-01-29 08:18 |
What type of datasource is that Do you know which ZenPack is providing it It looks like it might be the WMI datasource type from Egor Puzanov's WMIDataSource (ZenPacks.community.WMIDataSource) ZenPack.
I haven't used it before, but browsing through the code it appears to support using TALES expressions (the ${here/id} syntax) within the query. It looks like you're already modeling the SystemName value as a property of each Hyper-V VM. So assuming you named that property "systemName", you'd use ${here/systemName} in your query instead of ${here/id}.
Subject: | 2 |
Author: | [Not Specified] |
Posted: | 2016-02-03 02:13 |
Yes, it is Egor Puzanov's WMIDataSource ZenPack. We are getting array of Hyper-V VM, but we do not understand how to address to the particular PC witch we marked in menu Components
< |
Previous PrinterMIB error importing devices |
Next zenpacklib dump_templates |
> |