On Tue, Oct 23, 2007 at 06:18:54PM +0000, davidhart wrote:
>
> david.carmean at netap... wrote:
> > Rename the copy in the Network class back to ethernetCsmacd; the code
> > looks for the template named after the SNMP type of the interface.
>
> 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.
Apparently I misunderstood your intentions. I have several classes for
which I don't want to monitor(poll) any interfaces, ever. The interfaces
are *listed* for the devices but zenperfsnmp never tries to get any data
for them and no RRD files are created. I didn't bother with the actual
Monitor setting.
If you want to mix and match then yes, you'll have to leave the original
template intact and manipulate the Monitor setting one way or another.
--
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