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

Dev Chat 12/09/10

VERSION 1 
Created on: Dec 13, 2010 4:56 PM by Nick Yeates - Last Modified:  Dec 13, 2010 4:58 PM by Nick Yeates
[09-Dec-2010 10:59:40] <nyeates> Hi everyone.... devs will be incoming soon
[09-Dec-2010 10:59:57] <dec3pti0n> hello there
[09-Dec-2010 11:00:35] <nyeates> dec3pti0n: ever get your thresh working?
[09-Dec-2010 11:02:06] <dec3pti0n> nyeates: yep thanks , we actually had ntp going nuts yesterday due to some kernel updates reboots and ntp offset got higher than 10ms
[09-Dec-2010 11:03:20] <dec3pti0n> I remember long time ago when I actually read about ntp, reading something that ntp sometimes cannot recover when the drift/offset is too high
[09-Dec-2010 11:03:45] <nyeates> good to hear it wasnt yer fault it was being wacky
[09-Dec-2010 11:03:47] <dec3pti0n> so I kept getting email alerts 
[09-Dec-2010 11:03:59] dean is now known as Guest84439
[09-Dec-2010 11:04:36] <dec3pti0n> yeah the only thing that confused me was the whole 0.02 for representing 20ms for the threshold value
[09-Dec-2010 11:07:12] <dec3pti0n> I know I've done this before on another zenoss box ... but I should be able to write a transform so that I can change the summary to display the value in ms instead of .020 , right ?
[09-Dec-2010 11:07:22] <nyeates> yeah the diff measurements and markings for them on rrd can be less than intuitive
[09-Dec-2010 11:08:31] <nyeates> jcausey: btw do u know anything about new daemon creation for users wanting to implement them for zenpacks?
[09-Dec-2010 11:08:49] <nyeates> like can give any pointers or answer simple architecture Qs
[09-Dec-2010 11:09:05] <dec3pti0n> do you guys have info on ipv6 support ?
[09-Dec-2010 11:10:33] <nyeates> dec3pti0n: yeah, its in our product matrix and we are considerig it seriously.... not sure of when we will implement it, but it will happen eventually
[09-Dec-2010 11:10:47] <nyeates> wont happen on avalon release i do not think
[09-Dec-2010 11:11:20] <dec3pti0n> cool thanks
[09-Dec-2010 11:11:34] <jcausey> about daemon creation: I can certainly help answer any questions -- am currently looking for a good example amongst our core/community zenpacks
[09-Dec-2010 11:14:01] <nyeates> oh nice jcausey, we have two members in the community who want to learn more about it....i sent email to try to get jane curry in
[09-Dec-2010 11:14:09] <nyeates> she wants to write documentation on it
[09-Dec-2010 11:14:24] <nyeates> if u have seen janes docs on other subjects....its as good as our internal docs
[09-Dec-2010 11:14:30] <nyeates> so itd be great if u and her can talk
[09-Dec-2010 11:17:30] <nyeates> So any questions or issues or tracebacks out there?
[09-Dec-2010 11:17:42] <nyeates> anyone alive? :-)
[09-Dec-2010 11:17:50] <Jane_Curry> Thanks Nick......
[09-Dec-2010 11:17:56] <nyeates> ahh there u are jae
[09-Dec-2010 11:18:08] <Jane_Curry> Just finished updating my Zenoss Faststart class to V3 so....
[09-Dec-2010 11:18:34] <nyeates> ask away about daemons or whaterver Qs you had about that
[09-Dec-2010 11:18:36] <Jane_Curry> Updating the Creating ZenPacks document has just about got to the top of the pile
[09-Dec-2010 11:19:11] <nyeates> was your questions about making new daemons....or just making zenpacks?
[09-Dec-2010 11:19:24] <Jane_Curry> I've not done anything about creating my own daemons though (yet!)
[09-Dec-2010 11:19:34] <nyeates> ahh gotcha....welp ask away
[09-Dec-2010 11:21:13] <Jane_Curry> I have been fighting performance templates a bit this week with V3
[09-Dec-2010 11:21:29] <Jane_Curry> Anyone got any more comments about the points in message/55303#55303
[09-Dec-2010 11:22:58] <nyeates> restate the subject(s) here breifly
[09-Dec-2010 11:23:16] <Jane_Curry> copying trmplates in 3.x
[09-Dec-2010 11:23:33] <nyeates> ahhh, the override templates thing?
[09-Dec-2010 11:23:40] <jrh0090> When you go to override a template, it doesn't display the same path the template is in. For instance if you define it in /Devices you wont see that in the drop down when you override.
[09-Dec-2010 11:23:40] <Jane_Curry> yup
[09-Dec-2010 11:23:50] <jrh0090> otherwise it should show "Devices in /" (the root)
[09-Dec-2010 11:23:58] <jrh0090> if I understand your question correctly
[09-Dec-2010 11:24:34] <Jane_Curry> Also struggled with Graph definition loses "Has Summary" setting - message/55279#55279
[09-Dec-2010 11:25:40] <jcausey> @jane, just read through the 55303 thread -- I believe this may be an oversight/bug in the  3.X UI. I'll create a ticket for it, and we'll start working on it
[09-Dec-2010 11:26:20] <Jane_Curry> .. but if a try and copy a template, say Device from /Server/Linux, I still cannot copy it to Device in Devices
[09-Dec-2010 11:26:45] <Jane_Curry> Thanks jcausey....
[09-Dec-2010 11:27:07] <Jane_Curry> I had another scarier issue when playing this morning.  This is what I did...
[09-Dec-2010 11:27:41] <Jane_Curry> Create top-level template fred - which, with Add template, you can put in Devices top level
[09-Dec-2010 11:27:48] <jrh0090> from what I understand the "Devices in /" is actually "Devices in /Devices" (confusingly enough)
[09-Dec-2010 11:27:58] <Jane_Curry> Use template override to copy it to /Power
[09-Dec-2010 11:28:09] <jrh0090> the has_summary is definitely a problem and the ticket is assigned to me
[09-Dec-2010 11:28:14] <Jane_Curry> Rename the top-level fred
[09-Dec-2010 11:28:34] fOrsberg is now known as forsberg
[09-Dec-2010 11:28:38] <Jane_Curry> Then I tried to add a new threshold to the copy at /Power
[09-Dec-2010 11:29:02] <Jane_Curry> sorry - before changing the /Power fred, I renamed the top-level fred to fred1
[09-Dec-2010 11:29:48] <Jane_Curry> When I saved the lower-level fred, it winged that it couldnt find the path to top-level fred
[09-Dec-2010 11:30:26] <Jane_Curry> Surely when I did the override it should have made a new copy in /Power, not just a link to the template at the top-level????
[09-Dec-2010 11:32:01] <Jane_Curry> Thanks jrh0090 - found the ticket but the target is Avalon - not sure when that is but this seems like a pretty crucial patch required
[09-Dec-2010 11:34:11] <nyeates> guys - ive got to go, as I have my kid unexpectedlyskype
[09-Dec-2010 11:34:17] <jcausey> @jane -- yeah, that certainly is really sketchy behavior. Probably a deep copy problem with the template's relationships. Would you mind creating a ticket for it?
[09-Dec-2010 11:34:25] <nyeates> wow whops
[09-Dec-2010 11:34:55] <nyeates> ive got to go though, and jcausey and dgarcia will handle you guys
[09-Dec-2010 11:35:06] <fragfutter> nyeates: good luck
[09-Dec-2010 11:35:20] <jrh0090> @jane, unfortunately not only is the target avalon, but the fix will be entirely in javascript which is difficult to zenpatch
[09-Dec-2010 11:36:24] <Jane_Curry> Oh no! zenpatch is wonderful.  I don't want to hear that more and more becomes un-zenpatchable.....
[09-Dec-2010 11:37:21] <jrh0090> we are still working out a way to be able to zenpatch, bascially we would have to do the regular zenpatch and then minify/compress the javascript
[09-Dec-2010 11:37:22] <jcausey> @jane -- we will be giving zenpatch some love and care with Avalon's release to make it useful again
[09-Dec-2010 11:37:56] <Jane_Curry> Another thing I saw when updating the class for v3 templates was..
[09-Dec-2010 11:38:18] <Jane_Curry> create a template at /Server level and bind it there
[09-Dec-2010 11:38:40] <Jane_Curry> I had 2 devices in /Server/Linux and 1 in /Server windows
[09-Dec-2010 11:39:10] <Jane_Curry> the template only got bound to 1 linux + doze - not the other Linux
[09-Dec-2010 11:39:25] <Jane_Curry> nothing odd ata all that I know about the other Linux
[09-Dec-2010 11:39:38] <Jane_Curry> Anyone else seen this sort of quirky stuff????
[09-Dec-2010 11:44:05] <jrh0090> That is quirky! I honestly have no idea why that would happen
[09-Dec-2010 11:44:16] <jrh0090> one would think they would all either get it or not
[09-Dec-2010 11:46:17] <jrh0090> when you call device.getRRDTemplates() in the dmd it doesn't return that template, correct ?
[09-Dec-2010 11:46:29] <jrh0090> on the device that does not have the template
[09-Dec-2010 11:48:04] <ericenns> any devs here have experience writting zencomand parser's
[09-Dec-2010 11:52:47] <npmccallum> ericenns: sure, what's your question?
[09-Dec-2010 11:54:28] <ericenns> ok I have a parser for my vSphere zenpack, which gets data from a perl script, but on ubuntu users get warning messages before output, so it is multiline in that case. I can't seem to get the last line or loop through the output each thing I try stops rrds being filled\
[09-Dec-2010 11:55:03] <ericenns> this is my parser https://github.com/ericenns/ZenPacks.community.VMwareDataSource/blob/master/ZenPacks/community/VMwareDataSource/parsers/vmware.py that I can't figure out to get to accept multiline output
[09-Dec-2010 11:55:13] <ericenns> I am not sure how to get usefull debugging informatoin
[09-Dec-2010 11:59:05] <ericenns> I tried a simple test with splitting cmd.result.output on newline characters and loop through it but that didn't fill the RRD's
[09-Dec-2010 12:00:42] <npmccallum> $cmd | tail -n1 doesn't work?
[09-Dec-2010 12:00:57] <npmccallum> or perhaps $cmd 2>&1 | tail -n1
[09-Dec-2010 12:01:38] <ericenns> hmm I had tried 2> /dev/null at the end of the script, but zenoss complained about misuse of builtin shell commands
[09-Dec-2010 12:02:20] <ericenns> the tail thing might work though will have to try
Comments (0)