Discussion:
ZenDMD to disable monitoring of interfaces with MAC
istoptofly
2012-01-19 22:46:46 UTC
Permalink
istoptofly [http://community.zenoss.org/people/istoptofly] created the discussion

"ZenDMD to disable monitoring of interfaces with MAC FF:FF:FF:FF:FF:FF"

To view the discussion, visit: http://community.zenoss.org/message/63787#63787

--------------------------------------------------------------
Hi,

I monitor dozens of servers hosting virtual machines and find I get oddball alerts for virtual interfaces that I'd like to nuke in one smooth action through DMD.  Anyone handy with DMD that can come up with a script to find, print and disable monitoring for all interfaces in a particular class (in this case, /Server/Linux/) that have a MAC address of FF:FF:FF:FF:FF:FF?

If that's no doable for some reason, how about a transform that will drop events based on component name match?  Ideally this transform would match on the component name beggining with vif and not need a seperate entry for all the possibilities - vif12.1, vif2.5, etc. for example.

Thanks!

John

Zenoss 3.2.1 on 64 bit CentOS 5.3
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63787#63787]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2012-01-20 15:08:29 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: ZenDMD to disable monitoring of interfaces with MAC FF:FF:FF:FF:FF:FF"

To view the discussion, visit: http://community.zenoss.org/message/63807#63807

--------------------------------------------------------------
mac_string = "FF:FF:FF:FF:FF:FF"
      print dev.id, interface.id
      interface.monitor = False
      commit()
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63807#63807]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
istoptofly
2012-01-20 17:00:45 UTC
Permalink
istoptofly [http://community.zenoss.org/people/istoptofly] created the discussion

"Re: ZenDMD to disable monitoring of interfaces with MAC FF:FF:FF:FF:FF:FF"

To view the discussion, visit: http://community.zenoss.org/message/63794#63794

--------------------------------------------------------------
Thanks but if I drop the action  -

      interface.monitor = False
      commit()

So I can verify it does what I want, it doesn't return any devices or interfaces, just comes back to dmd >>>

I tried to verify the interface.macaddress through Zope management but when I click properties on any interface, I just get an error page.

Other ideas?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63794#63794]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
istoptofly
2012-01-20 17:20:48 UTC
Permalink
istoptofly [http://community.zenoss.org/people/istoptofly] created the discussion

"Re: ZenDMD to disable monitoring of interfaces with MAC FF:FF:FF:FF:FF:FF"

To view the discussion, visit: http://community.zenoss.org/message/63795#63795

--------------------------------------------------------------
Woops, my mistake on the original post, the actaul MAC is FE:xx:xx:xx...

Works just like it's supposed to now, thanks!

John
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63795#63795]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...