david.carmean at netap... wrote:
> On Tue, Oct 23, 2007 at 02:43:27PM +0000, davidhart wrote:
>
>
> > Okay. I've tried removing the data sources, threshold and graphs
> > from the ethernetCsmacd template and it works. Now I have a new
> > problem. I copied the original ethernetCsmacd to the Network class
> > and renamed it to PortMonitor. I moved my test switch into the
> > Devices/Network/Switch class. When I try to bind PortMonitor to
> > my test switch I get a washed out screen with a bar in the middle
> > that doesn't do anything. I am running Zenoss 2.1.
> >
>
>
> Rename the copy in the Network class back to ethernetCsmacd; the code
> looks for the template named after the SNMP type of the interface.
>
>
> --
> David Carmean Network Appliance, Inc
> Infosystems Architect, 495 E. Java
> Drive
> Java (Sunnyvale) Engineering Lab Services Sunnyvale, CA 94089
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
Okay, now I am really confused. I removed the data sources, threshold
and graphs from the ethernetCsmacd template under Devices. When I
add a new device it still is added with all of the interfaces being
monitored (Monitor set to true) though they are not polled because of
the missing data sources.
I've figured out how to turn off monitoring for the interfaces
using zendmd, with excellent help from cluther. In fact, I've
figured out how to do this for a specific device:
replace [devicename] with the name/IP of your device and _
with spaces.
d = find("[devicename]")
for d in dmd.Devices.getSubDevices():
_for interface in device.os.interfaces():
__interface.monitor = False
commit()
Note: previously it was mentioned that each indentation had to
be 4 spaces. However, a single space worked just fine for me.
I wonder how hard it would be to add this as a command in the
drop-down when a particular device is selected?
Once I have added the device, I turn off monitoring for the
interfaces for that device using the above script in zendmd.
I can then turn on monitoring for each interface that I am interested
in. I had made a copy of the original ethernetCsmacd under the
Network class before removing the data sources, etc. from the one
under Devices.
Mentioned earlier is that the Monitor status would be reset to
True if the device was remodeled. I opened the status page for my
test device and then selected Model Device from the dropdown.
The interface monitor status was unchanged. Interfaces that I had
set to True, remained set to True and ones set to False, stayed at
False.
David
------------------------
David Hart
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=12141#12141
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users