Skip to content

Instantly share code, notes, and snippets.

@JosefJezek
Created January 10, 2014 09:57
Show Gist options
  • Save JosefJezek/8349347 to your computer and use it in GitHub Desktop.
Save JosefJezek/8349347 to your computer and use it in GitHub Desktop.
Zenoss Reports

Zenoss Reports

Mail

Custom Device

getId
title
getManageIp
getHWSerialNumber
getLocationName
getDeviceGroupNames
getSystemNames

Device
Title
Address
Serial #
Location
Groups
Systems

Query

here.getLocationName()==""
'/UPS' in here.getDeviceGroupNames()

Inventory

Data Point Aliases

1024,*
${here/hw/totalMemory},/
__EVAL:here.hw.totalMemory + “,/”
("cpu__pct"/"__EVAL:str(len(here.hw.cpus())) + ',/,100,EXC,-'")

Custom Method

Go to http://yourzenoss:8080/zport/dmd/Devices/manage
Choose "Script (Python)" from the drop-down in the upper-right
Set the Id to "getIpServicesListAsString" without the quotes
Click Add and Edit
Erase the default contents and replace with the following Python code
Click Save

return ','.join([ s.name() for s in context.os.ipservices() if s.monitored() ])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment