Archived community.zenoss.org | full text search
Skip navigation
Currently Being Moderated

Dev Chat 10/13/11

VERSION 1 
Created on: Dec 11, 2011 12:29 AM by Nick Yeates - Last Modified:  Dec 11, 2011 3:38 AM by Nick Yeates
Major Subjects:
Custom datasource and datapoint tips,
Chet ran dev chat this session,
Janes MenuExample questions @ message/61820#61820 ,
Jane is implementing a zenpack that will show others how to develop UI menus in 3.x


[13-Oct-2011 10:04:28] <ali3n0> hi folks. I'm trying to define a custom datasource + datapoint, any help about how to debug? the "test" button for datasource returns me the expected value, but I can't graph it

[13-Oct-2011 10:21:32] kocolosk|away is now known as kocolosk

[13-Oct-2011 10:23:17] <Jane_Curry> ali3n0: You need to be a bit careful with the test button - sometimes it can hide instance problems

[13-Oct-2011 10:23:50] <ali3n0> Jane_Curry I see. Now I'm reading zencommand.log

[13-Oct-2011 10:23:56] <Jane_Curry> Does your command return output in "Nagios format"?  It needs to to get values into data points

[13-Oct-2011 10:24:10] <ali3n0> it just returns a 0.00 like value

[13-Oct-2011 10:24:20] <ali3n0> with auto parser

[13-Oct-2011 10:29:10] <Jane_Curry> To get values into the data point the script needs to echo a line in the format:

[13-Oct-2011 10:31:37] <Jane_Curry> <message, typically including status>  | <var1>=<value1> <var2>=<value>   etc

[13-Oct-2011 10:43:02] <cmek> hi, does anyone here know of a good document describing the internals of zenperfsnmp and the performance collection process in general?

[13-Oct-2011 10:43:15] <ali3n0> Jane_Curry something like "loadtest | load=0.12" ? with the pipe too?

[13-Oct-2011 10:46:13] <cmek> I'm trying to find a good way of implementing VACM extensions and I'm a bit stuck with performance collection

[13-Oct-2011 10:55:46] <Jane_Curry> ali3n0 - yup the pipe separates the message from the var=value section

[13-Oct-2011 10:56:04] <ali3n0> Jane_Curry what parser should I use?

[13-Oct-2011 10:56:32] <Jane_Curry> The other trick you need to know is that the <var> name(s) echoed must match EXACTLY with the name of the datapoint(s) in your template

[13-Oct-2011 10:57:03] <Jane_Curry> Never worried about the parser - just use the auto

[13-Oct-2011 10:57:27] <ali3n0> cool

[13-Oct-2011 10:59:03] <ali3n0> Jane_Curry, you saved my day

[13-Oct-2011 10:59:12] <ali3n0> just out of curiosity: how did you find out?

[13-Oct-2011 11:03:26] <Jane_Curry> it's there if you dig hard enough but not very obvious - have a look at section 6.3 of the Admin guide about Monitoring using ZenCommand

[13-Oct-2011 11:05:19] <Jane_Curry> You might also pull my process monitoring doc which talks about this and gives examples - docs/DOC-3537

[13-Oct-2011 11:05:40] <Jane_Curry> Is it dev chat time???????

[13-Oct-2011 11:09:21] <ion-fan> does anyone know how to sum graphs together in multigraph view? where can i put in the Graph definition that calculates the other graphs together?

[13-Oct-2011 11:09:59] <ali3n0> Jane_Curry yep I'm going through Admin guide but this data point stuff you told me isn't there, trust me thanks btw for the document

[13-Oct-2011 11:11:36] <cmek> ion-fan: do you mean to have summaries at the bottom?

[13-Oct-2011 11:13:24] <ion-fan> cmek: no i have to cisco switch interfaces. and now i want to have a third graph in which the other two graphs are summed up together in one graph...

[13-Oct-2011 11:13:57] <cmek> ion-fan: /zport/dmd/Reports/Multi-Graph%20Reports

[13-Oct-2011 11:15:12] <cmek> ion-fan: have a look there

[13-Oct-2011 11:15:59] <ion-fan> cmek: yes i'm already in there... i already added the two datasources i want to sum up... they were displayed in my multigraph report... but i dont know how to define a graph that has the other two graphs as datasource and sums them up

[13-Oct-2011 11:17:01] <cmek> ion-fan: i'm not sure you can have graphs as datasources. but you can sum all your datasources and then graph them

[13-Oct-2011 11:17:20] <ion-fan> cmek: how?

[13-Oct-2011 11:17:51] <cmek> ion-fan: give me a sec, need to open one of mine

[13-Oct-2011 11:18:23] <cmek> ion-fan: have you ever played with rrdtools before?

[13-Oct-2011 11:19:08] <ion-fan> in "graph definitions" when i click "add custom" there is no field to enter the formula or some tales expressions...

[13-Oct-2011 11:20:02] <ion-fan> cmek: no i havent played ever with rrdtools... i hoped i can avoid cryptic graph definitions when using zenoss

[13-Oct-2011 11:31:42] <Jane_Curry> Hi cluther - do we have a dev chat or not today?? No sign of Nick...

[13-Oct-2011 11:31:59] <Jane_Curry> .. or JP

[13-Oct-2011 11:33:11] <cluther> Jane_Curry: Great question. I'm trying to figure that out myself.

[13-Oct-2011 11:33:41] <cluther> Yesterday and today is our yearly company get-together, so things are a little chaotic.

[13-Oct-2011 11:36:55] <cluther> Did you see the update I made to that permissions overriding forum thread?

[13-Oct-2011 11:39:07] <dhopp> one of the last things Nick said yesterday was that there would be a dev chat and that chet would be in the house (not quite word for word but he did say "in the house")

[13-Oct-2011 11:39:49] <Jane_Curry> cluther - yup saw that. Trying to test it as we speak.  Did Nick forward my MenuExample stuff?

[13-Oct-2011 11:40:14] <Jane_Curry> I thought we were also expecting JPL today....

[13-Oct-2011 11:40:19] <cluther> I haven't seen it yet. I'll ask him about it as soon as I track him down.

[13-Oct-2011 11:41:36] <Jane_Curry> You can get the tarball at message/61820#61820

[13-Oct-2011 11:54:06] <cluther> Very cool, Jane. Are the undone items a matter of your time, or do you have unanswered questions?

[13-Oct-2011 11:58:38] <Jane_Curry> 3 main questions at this stage......

[13-Oct-2011 12:00:01] [disconnected at Thu Oct 13 12:00:01 2011]

[13-Oct-2011 12:00:02] [connected at Thu Oct 13 12:00:02 2011]

[13-Oct-2011 12:00:15] [zenoss-logger (logger bot) has joined #zenoss]

[13-Oct-2011 12:01:04] <Jane_Curry> The code to provide a footer menu in myFooterMenu.js came from the last dev chat, along with the associated configure.zcml

[13-Oct-2011 12:01:52] <Jane_Curry> .. but it breaks my Zenoss 3.1 completely - just get a white screen when refreshing any Zenoss panel after the change and bouncing zopectl

[13-Oct-2011 12:02:05] <Jane_Curry> No error messages when running zopectl fg   though

[13-Oct-2011 12:02:09] <cluther> I can take a look at that.

[13-Oct-2011 12:02:55] <cluther> Did it work any any version for you? 3.2?

[13-Oct-2011 12:03:21] <Jane_Curry> Next one is in dialog_myDropDownMenu2 under browser/templates...

[13-Oct-2011 12:04:11] <Jane_Curry> I would like to put up a box prompting the user for input into the comments attriibute, take that input, and modify dev/comments accordingly

[13-Oct-2011 12:06:22] <Jane_Curry> Third question is - I have provided myDropDownMenu1 and 2 as objects in objects.xml - I suspect there is a better way of doing this in Zenoss 3??????

[13-Oct-2011 12:07:07] <Jane_Curry> Haven't tried the footer menu with 3.2 - hope it's not that as I suspect a lot of folk will stick with 3.1 until 4.2 is out and stable....

[13-Oct-2011 12:07:41] <cluther> We can probably come up with a way to make sure its cross-compatible.

[13-Oct-2011 12:08:13] <Jane_Curry> I guess you are saying I need to run up my 3.2 and try it there

[13-Oct-2011 12:08:26] <cluther> Apparently I have a meeting to attend right now. I'll get back to you on those on the topic you started.

[13-Oct-2011 12:09:38] <Jane_Curry> Sorry about that - input would be much appreciated

[13-Oct-2011 12:09:41] <Jane_Curry> Cheers!

[13-Oct-2011 12:10:17] <cluther> Sorry about the IRC session mix-up today. It probably should have been cancelled in advance.

[13-Oct-2011 12:10:44] <Jane_Curry> Hmmm - not your fault - I'll beat up Nick


Comments (0)