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

Dev chat 08/05/2010

VERSION 1 
Created on: Aug 5, 2010 2:42 PM by Matt Ray - Last Modified:  Aug 5, 2010 2:43 PM by Matt Ray

mray has changed the topic to: Zenoss Developers are Here (10:01:05 AM)
10:01:22 AM fragfutter: *hooray*
10:01:30 AM cgibbons: lies!
10:01:35 AM mray: once he gets here, mrchippy is the dev on call
10:01:44 AM mray: but cgibbons can help you in the meantime
10:02:04 AM fragfutter: i could annoy developers with the ComponentGrid renderer
mrchippy [~mrchippy@66.194.163.210] entered the room. (10:02:14 AM)
10:02:43 AM mray: fragfutter: annoy away
10:03:13 AM cgibbons: that's something i know a tiny bit about for a change
10:03:26 AM fragfutter: ok. as requested
10:04:08 AM rocket: can I mention before we start that it will be fixed in zenoss-800.0.800?
10:04:10 AM fragfutter: i hava a custom OS Component. With a custom snmp Modeller. It adds information about LLDP Links to a device. Data collection and modelling works fine.
10:05:04 AM fragfutter: now i need to display the data. if i simply display the data, no problem.
10:05:14 AM fragfutter: but i want more! i want to make links out of the data.
10:05:52 AM fragfutter: that is lldp tells me, that local port named "gigabit1" is linked to a machine called "switch2" port "someport"
10:06:12 AM fragfutter: so i have function that search the brains for this info, and if they find it, i could create a link
10:06:16 AM fragfutter: also working.
10:06:42 AM fragfutter: but if i want to display this stuff, i can only bring links inside the grid live.
10:06:56 AM fragfutter: in the detail area, there is _no_ ouput
10:07:14 AM fragfutter: (for the fields where i require these links, pure textfields are displayed in the details)
sideone left the room (quit: Ping timeout: 265 seconds). (10:11:11 AM)
10:12:39 AM fragfutter: so how would i do this
10:12:55 AM cgibbons: ah it's that problem. it should 'just work' - but your case is odd enough the only answer is to break out firebug and see what's up.
jhanson` [~user@66.194.163.210] entered the room. (10:12:56 AM)
10:13:11 AM cgibbons: ian just fixed something inside that details pane yesterday, but that was for rendering links with the proper name instead of just the uid.
10:13:25 AM fragfutter: http://fpaste.org/DDH1/
10:16:36 AM fragfutter: if i don't specify my own renderer, i get "[object Object]" in the grid and nothing in details.
10:17:14 AM fragfutter: i guess the grid and detail page are in some way smart and somehow detect how to render stuff. So i need to return the right kind of object. But what does it need?
10:18:15 AM sciolist: I'm reading the followin the docs and am wondering how to turn dashboard presence on/off in the "maintenance" production state
10:18:27 AM sciolist: Maintenance - you want monitoring and collection to occur, and maybe or maybe not the device on the dashboard, just not alerting occurring
10:18:48 AM sciolist: anyone got an idea?
10:21:48 AM mray: sciolist: docs/DOC-6012  Not sure what "may appear" means
10:22:14 AM straterra: Hmm
10:22:15 AM sciolist: thx
10:22:46 AM straterra: I have a router that has multiple IPs on it..I do SNMP on it
10:23:06 AM straterra: But I want to do ping monitoring on a specific IP that happens to belong to this device..and ZenOSS won't let me
10:23:36 AM sciolist: okay, so it may or may not appear on the dashboard, but - since it is an event - should appear on the Event Console, right?
citrus2 [~citrus2@72.215.183.28] entered the room. (10:23:39 AM)
10:24:07 AM straterra: The device is multi homed and the main device will remain pingable even if the IP I want to monitor goes down
jmp242 [~jmp242@pc30.lns.cornell.edu] entered the room. (10:24:19 AM)
10:24:28 AM jmp242: I have a weird issue with 2.5.2
10:24:39 AM jmp242: I've got a monitored filesystem on a Linux server
10:24:45 AM jmp242: where we ran out of disk space
10:24:54 AM jmp242: I expanded the filesystem by 20GB to take care of that
10:25:01 AM jmp242: and re-modeled the device in Zenoss
10:25:16 AM jmp242: Zenoss has the graphs showing free space and utilization fine, but the event isn't clearing
kerickson [~chatzilla@conr-adsl-209-169-71-245.consolidated.net] entered the room. (10:25:53 AM)
10:25:56 AM jmp242: nope - nevermind, it apparently just took longer than I though to clear
10:26:13 AM JonnyV_: hehe
10:27:54 AM mrchippy: sciolist: yes
10:28:08 AM mray: sciolist: so it appears that some of the portlets pay attention to the production state, and some don't, which is why "may appear" is listed
10:28:51 AM mray: so feel free to open bugs
10:28:53 AM nickanderson: So, I overrode ethernetCsmacd_64 to /Servers/Linux/domU ever since then I get debug events for interface datasources. I only get them where I have overridden the template, they only appear once but never autoclear. And I believe they come back after a zope restart. Definitely do come back if i restart all of zenoss.
10:29:16 AM nickanderson: ideas?
10:29:27 AM nickanderson: better yet, solutions?
10:29:29 AM cgibbons: frag: we may need to debug the base component panel javascript to figure out what's goin' on with the detail pane.
10:29:30 AM nickanderson: heh
10:29:36 AM cgibbons: to do that you have to ditch the pre-compiled files so you can.
10:29:44 AM sciolist: not that important to me... just wanted clarification
10:30:04 AM cgibbons: heh
10:30:08 AM cgibbons: er wrong window
digitalmortician left the room (quit: Quit: digitalmortician). (10:30:09 AM)
jmp242 left the room. (10:30:21 AM)
10:30:49 AM fragfutter: cgibbons: move to chat window?
10:30:55 AM cgibbons: no the 'heh'
10:30:59 AM mrchippy: jmp242: the event count is still going up?  or the event count has stopped going up, it just isn't getting cleared?
10:31:18 AM fragfutter: cgibbons: ok.
10:34:02 AM fragfutter: cgibbons: ready.
10:34:19 AM fragfutter: cgibbons: you mean precompiled pyc/pyo or the compressed js?
10:34:57 AM cgibbons: the compressed js
kerickson left the room (quit: Read error: Connection reset by peer). (10:35:05 AM)
10:35:10 AM cgibbons: if you set debug-mode in $ZENHOME/etc/zope.conf it won't use it
10:35:22 AM cgibbons: (and restart zope, clear cache,e tc)
Alltimed [~rr@173-22-191-176.client.mchsi.com] entered the room. (10:35:32 AM)
kerickson [~chatzilla@conr-adsl-209-169-71-245.consolidated.net] entered the room. (10:35:36 AM)
10:39:33 AM fragfutter: cgibbons: all done and ready
10:40:22 AM cgibbons: ok if you've got firebug active and then reload a component page, you should be able to see the different scripts that it loads
10:40:29 AM fragfutter: yep.
10:41:22 AM fragfutter: guess you want to know the json data of the device_router.getComponents?
10:42:10 AM fragfutter: data.remoteDevice is an Object{uid="/zport/dmd/Devices/Network/......./switchname"}
10:42:31 AM cgibbons: that, but also lemme go find the actual place where it renders
10:45:18 AM cgibbons: ok the detail panel is a generic 'Form' so lesee
10:45:58 AM fragfutter: zenoss-compiled-debug.js:2499   default_uid_renderer ?
10:46:23 AM cgibbons: that's for the component panel itself, the form stuff is slightly different. Do you see a Zenoss.form.LinkField in there?
10:46:46 AM fragfutter: line 4565
10:47:05 AM cgibbons: I think the setValue function for that class is where you want to set a breakpoint.
10:47:24 AM fragfutter: *needs to leave vi and go over to firebug...*
fOrsberg is now known as forsberg (10:48:00 AM)
kreios [~kreios@lopsa/chartermember/kreios] entered the room. (10:49:14 AM)
10:49:41 AM fragfutter: cgibbons: ok. found the file, set breakpoint, hit reload now at the breakpoint
10:50:51 AM fragfutter: the breakpoint should be hit three times (grid has thre columns)
10:50:58 AM fragfutter: its only hit once
10:52:42 AM fragfutter: ah, if i open the details page it is hit.
10:52:47 AM fragfutter: so the first hit is something else
10:54:29 AM fragfutter: it decides to call Zenoss.render.link("/zport/dmd/Devices/Network/..../switchname")
10:57:03 AM fragfutter: ok, the issue is: it calls Zenoss.render.link("/zport..."), decides it needs to render a link for an interface (correct), calls the rendere and passes him no name for the the link. it can't figure out what to put inside the <a>...</a> tags.
10:59:47 AM fragfutter: that is the reason why i have my own renderer in the grid, that extracts the name from the url. http://fpaste.org/DDH1/ line 45
11:03:02 AM fragfutter: talking to thin air? netsplit?
11:04:06 AM cgibbons: ok you may need the patch Ian did yesterday I bet, wanna try it?
DoctorPepper [~doctorpep@41.250.165.232] entered the room. (11:04:23 AM)
11:04:47 AM cgibbons: try this one and restart zope: http://dev.zenoss.com/trac/changeset/21820
11:04:53 AM DoctorPepper: hi guys!!!
11:05:25 AM fragfutter: cgibbons: before we try, i assume it patches zenoss-compiled.js and modifies the renderer IpInterface (line 2606) to behave similiar to the Network renderer a few lines down?
11:05:38 AM cgibbons: nope
11:05:39 AM mray: DoctorPepper: greetings
11:05:58 AM fragfutter: *gets no brownie points*
11:06:12 AM fragfutter: cgibbons: ahhh. ok.
11:07:03 AM DoctorPepper: can anyone help me please , i installed zenoss-3.0  using zenoss-stack.deb for ubuntu , everything works just fine except for software inventory that is empty
11:07:16 AM fragfutter: cgibbons: just edit the file, or do is there a special patch-function in zenoss?
11:07:58 AM mrchippy: DoctorPepper: brand new install or upgrade?
11:10:44 AM DoctorPepper: brand new install  2 days old
11:11:19 AM cgibbons: just edit it, i think that might change things
Jesper- left the room (quit: Ping timeout: 245 seconds). (11:11:44 AM)
11:11:52 AM cgibbons: sorry for delay, multiple tasks
11:11:55 AM mrchippy: what are you trying to model?
11:12:25 AM fragfutter: cgibbons: that fixed the details page. nice.
11:12:31 AM cgibbons: wow sweet
11:12:40 AM DoctorPepper: for the moment ubuntu servers .
11:12:42 AM cgibbons: interesting that your behavior with that bug was blank versus just an ugly id, but cool
11:12:44 AM cgibbons: that'll be in 3.0.2
11:12:50 AM mrchippy: ok cool. hold on a sec.
11:12:51 AM fragfutter: cgibbons: is there something similar for the grid?
11:13:15 AM fragfutter: cgibbons: so that i don't need to do my own renderer, the grid has the same issue of a missing name
11:13:41 AM cgibbons: hrm not sure about that one
11:13:54 AM mrchippy: check out blogs/zenossblog/2009/02/18/tip-of-the-month-snmp-software-inventory-for-debian-and-ubuntu-machines
JesperS [~jsj@94.18.55.226] entered the room. (11:14:22 AM)
11:14:24 AM DoctorPepper: doesnt work for me
Serideru [~GTWebster@wsip-24-249-157-93.tu.ok.cox.net] entered the room. (11:15:12 AM)
11:15:18 AM mrchippy: oh no
11:16:00 AM mrchippy: so you're modeling them in /Server/Linux? (as opposed to via SSH with the ubuntu ssh zenpack)
11:16:30 AM DoctorPepper: yes
11:17:59 AM DoctorPepper: by the way impossible to install the ubuntu-zenpack
11:18:10 AM mrchippy: oh no X 2
Simon4 left the room (quit: Quit: Simon4). (11:18:45 AM)
11:19:40 AM mrchippy: can you run 'zenmodeler run -v10 -d <some ubuntu server you've added>' and post the output somewhere so i can take a look?
ilan [~ilan@69.60.110.251] entered the room. (11:19:51 AM)
11:24:17 AM DoctorPepper: mrchippy: http://pastebin.com/i4kJ9ffA
sideone [~overflow3@mail.traeger.com] entered the room. (11:26:28 AM)
11:26:53 AM mrchippy: that looks like zenmodeler is not finding the device.  is there a device in /Server/Linux with that ip already?
11:27:13 AM DoctorPepper: yes
ilan left the room (quit: Ping timeout: 264 seconds). (11:28:15 AM)
JonnyV_ left the room (quit: Quit: Hay dos palabras en esta vida que te abrir?n muchas puertas.......... TIRE y EMPUJE). (11:28:22 AM)
JonnyV [~jonny@190.231.123.247] entered the room. (11:28:36 AM)
andreserl [~wo@ubuntu/member/roaksoax] entered the room. (11:28:36 AM)
11:29:17 AM mrchippy: can you post the url for the device?
11:30:23 AM DoctorPepper: with the webinterface i get all the informations excepted for the software inventory
11:31:06 AM JonnyV: guys, after auto-discovery of a subnet, if the devices have snmp disabled while in class Discovered, is it possible that the devices are moved to the Ping class automatically?
11:32:06 AM JonnyV: or maybe i moved them and i dont remember?? hehe
11:33:36 AM mray: JonnyV: the autodiscovery is just making a call to zendisc and passing it the /Discovered path as the default, you could run it from the CLI and put them into /Ping if you want
11:33:48 AM mrchippy: DoctorPepper: What are the Modeling Plugins for /Server/Linux?
11:33:49 AM mray: JonnyV: pretty sure /Discovered is hard-coded in the UI though
11:34:36 AM JonnyV: ok.. good to know that mray
11:35:27 AM JonnyV: but my doubt was if after x count of snmp down in /discovered class maybe zenoss automatically moves them to Ping...
11:35:58 AM JonnyV: cause i really dont remember moving them.. i will have to ask mi other teammates if they moved them
11:36:19 AM mray: JonnyV: pretty sure we don't
11:36:50 AM JonnyV: hehe. thanks mate
11:37:38 AM JonnyV: i was too.. at least before 3.0. I was reading a guide and transforms to achieve that.
ilan [~ilan@69.60.110.251] entered the room. (11:39:23 AM)
11:42:40 AM DoctorPepper: mrchippy: zenoss.snmp.NewDeviceMapX zenoss.snmp.DeviceMapX zenoss.snmp.InterfaceMapX zenoss.snmp.RouteMapX zenoss.snmp.IpServiceMapX zenoss.snmp.HRFileSystemMapX # zenoss.snmp.HRSWRunMapX # zenoss.snmp.CpuMapX # zenoss.cmd.linux.memoryX  # zenoss.cmd.linux.netstat_anX   zenoss.cmd.unameX # zenoss.cmd.linux.processX # zenoss.cmd.linux.ifconfigX # zenoss.cmd.linux.netstat_rn
11:43:45 AM mrchippy: you need to add HRSWInstalled

Comments (0)