Adam Pilbeam
2012-12-04 21:11:17 UTC
Adam Pilbeam [http://community.zenoss.org/people/sysadminadam] created the discussion
"Adjusting Monitoring Plugin for Title"
To view the discussion, visit: http://community.zenoss.org/message/70330#70330
--------------------------------------------------------------
Hello all,
I'm working with Zenoss and monitoring Windows machines at the moment. I would like to be able to use the Device Map plugin to adjust the title field to reflect the WMI name pulled off the target machine. I have established my process by populating the SNMP SysName field from the WMI string, but I can't for the life of me figure out what term I need to use to populate (or, rather, change) the device title.
for e in results["Win32_ComputerSystem"]:
           model = e.model
           if not model: model = "Unknown"
           om.Title = e.Name
I have something like that at the moment; I've tried deviceTitle, Title, setTitle, etc. I'm not a big programmer so I'm sort of going along with whatever snippets of information I can find.
Thanks!
-Adam
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70330#70330]
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]
"Adjusting Monitoring Plugin for Title"
To view the discussion, visit: http://community.zenoss.org/message/70330#70330
--------------------------------------------------------------
Hello all,
I'm working with Zenoss and monitoring Windows machines at the moment. I would like to be able to use the Device Map plugin to adjust the title field to reflect the WMI name pulled off the target machine. I have established my process by populating the SNMP SysName field from the WMI string, but I can't for the life of me figure out what term I need to use to populate (or, rather, change) the device title.
for e in results["Win32_ComputerSystem"]:
           model = e.model
           if not model: model = "Unknown"
           om.Title = e.Name
I have something like that at the moment; I've tried deviceTitle, Title, setTitle, etc. I'm not a big programmer so I'm sort of going along with whatever snippets of information I can find.
Thanks!
-Adam
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70330#70330]
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]