Discussion:
Report or Query for all unmonitored components?
elevin
2012-01-26 13:58:22 UTC
Permalink
elevin [http://community.zenoss.org/people/elevin] created the discussion

"Report or Query for all unmonitored components?"

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

--------------------------------------------------------------
I have a handful of servers that have various components where monitored = false.  Is there a way to query or report for all components where monitored = false and status != 'not present'?
--------------------------------------------------------------

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

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-26 14:44:07 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: Report or Query for all unmonitored components?"

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

--------------------------------------------------------------
I'm not sure about the "not present" part but some variation of the following should get you want you want
f = open('/tmp/results.txt', 'w')
component_count = 0
                component_count += 1
                line_str = "\t".join([dev.id, str(component)]) + "\n"
                f.write(line_str)
f.close()
print component_count,"components found"
--------------------------------------------------------------

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

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]
elevin
2012-01-26 14:58:22 UTC
Permalink
elevin [http://community.zenoss.org/people/elevin] created the discussion

"Re: Report or Query for all unmonitored components?"

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

--------------------------------------------------------------
Excellent.  Thank you!
--------------------------------------------------------------

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

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...