Entries by Shane Scott

Zenoss ZenDMD Magic – Audit transforms

As the zenoss user on the ZenMaster, zendmd. Copy and paste in the following definition: ## Copyright 2015 GoVanguard Inc. Written by Shane William Scott. http://gvit.com print “The following event classes have transforms associated with them:” for eventClass in dmd.Events.getSubOrganizers():     if eventClass.transform:         print eventClass.getOrganizerName()         print eventClass.transform         print ‘-‘*80

Zenoss ZenDMD Magic – Cleanup and remove duplicated object and properties

As the zenoss user on the ZenMaster, zendmd. Copy and paste in the following definition: ## Copyright 2015 GoVanguard Inc. Written by Shane William Scott. http://gvit.com def excisePropertyTumor(deviceOrganizerToSearch = ‘/zport/dmd/Devices', doItForReal = False):     sync()     problemsFound = 0     if deviceOrganizerToSearch != None:         print “Getting organizer…”         organizerOb = dmd.Devices.getOrganizer(deviceOrganizerToSearch)         if organizerOb: […]

Zenoss ZenDMD Magic – Fix Invalid Primary Parent on OS and HW

As the zenoss user on the ZenMaster, zendmd. Copy and paste in the following definition: ## Copyright 2015 GoVanguard Inc. Written by Shane William Scott. http://gvit.com def fixOsHwPrimaryParent(deviceOrganizerToSearch = ‘/zport/dmd/Devices', doItForReal = False): sync() problemsFound = 0 if deviceOrganizerToSearch != None: print “Getting organizer…” organizerOb = dmd.Devices.getOrganizer(deviceOrganizerToSearch) if organizerOb: print “Collecting device list…” devicesToSearch = […]