On Sunday 28 October 2007 20:39:13 Hrvoje Habjanić wrote:
[snip]
> And now to my real question. I need to monitor one quite complex device,
> for which i need to monitor a lot of values. To make my life easier, i
> wrote small script, which exports all those values through snmp mibs (that
> is, few snmp tables). Let's asume that each snmp table has over 100
> entries, and that each snmp table requires it's own template.
>
> Now, adding 100+ devices by hand is ... sucide. I was hoping for more ...
> automated approach. But, here i run into problems. As i see it, there are
> few approches:

I realy hate to reply to my own posts ...

Anyhow, to clarify a bit. Not adding "devices", but series of datasources on 
one or more devices. Those datasources represents some other phisical 
devices, so thats reason for "mixup" of words. In rest of the mail, i realy 
meant datasources, not devices.

>
> a) write script which will add those devices by http requests
> b) craft by hand my own device.xml file, and import it as zenpack
> c) try to write custom ZenModel snmp plugin which will do work for me
>
> I didn't even try a), because it sounds stupid. Realy. Now, b) seemed easy
> enough, but as it turn out, it's quite complicated, and it required
> additional programig to generate xml. So, i got to c). I modified
> InformantHardDisk.py file to scan my mib and add devices, and it works
> (with warnings, of course ...). BUT, there are additional problems:
>
> 1. all added objects are in the same place (Hardware->Hard Disks)
> 2. all objects MUST use the same template (HardDisk)
>
> Futhurer investigation on how to overcome this has lead me to ZenModel
> directory, where i decided to stop, because i was starting to fiddle with
> core code, which isn't good, period.
>
> So, the real question here is - is there a better way to do this? Is there
> a mechanism which would allow me to specify snmp table root and template
> and by magic my object would appear somewhere? (whishfull thinking?)
> Or, is there way, or "the right way" to complete my c) solution?
>
> Did anyone else has this problem, and how did solve it?
>
> And to add one more, is there way to add additional tab at device page?
>
> Hrvoje
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users


_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to