anchor.diff:  zs.add_zabbix_keys({ 'web.google.status' : google_response })
   zs.send_metrics()
   
  +----
  +
  +===== Python Dynamic Object/item example
  +
  +Here is an example on how to write a dynamic object that uses the macros strings and macro names.
  +
  +In this example we will assume that we want to monitor a file system that has this output of 'df -h'
  +----
  +$ df -h
  +Filesystem      Size  Used Avail Use% Mounted on
  +/dev/sda2       219G   62G  158G  29% /
  +devtmpfs        9.7G     0  9.7G   0% /dev
  +tmpfs           9.8G  8.0K  9.8G   1% /dev/shm
  +tmpfs           9.8G  281M  9.5G   3% /run
  +tmpfs           9.8G     0  9.8G   0% /sys/fs/cgroup
  +/dev/sda1       497M  291M  207M  59% /boot
  +/dev/md0         11T  60.1G 40.8G 56% /home
  +----
  +In this example we want to report on /, /boot, and /home.  The tmpfs drives can be ignored at this time.
  +
  +* First, in Zabbix we would add a discovery rule under a template.  We would call the key in that discover rule "filesystems"
  +* Next, we would add a dynamic item under this newly created discovery rule called "filesystem.percent_full"
  +* We will use the Macro string of "#FILESYSTEM"
  +
  +
  +.ZaggSender python dynamic item script example
  +----
  +#!/usr/bin/evn python
  +import subprocess
  +from openshift_tools.monitoring.zagg_sender import ZaggSender
  +
  +df_cmd = "df"
  +
  +# get the output of df
  +output = subprocess.check_output(df_cmd, shell=True)
  +
  +# this will only collect the filesystems we care about, and strip out the other lines
  +filesystem_list = [f for f in output.split('\n') if f.startswith("/dev")]
  +
  +# we need a dict in the format of {"filesystem1_name" : "% free"}
  +filesystem_dict = {}
  +for f in filesystem_list:
  +    line = f.split()
  +    filesystem_dict[line[5]] = line[4].replace("%","")
  +
  +# we now have all the data we want.  Let's send it to Zagg
  +
  +zs = ZaggSender()
  +
  +# This will bundle up the dynamic object
  +zs.add_zabbix_dynamic_item('filesystem', '#FILESYSTEM', filesystem_dict.keys() )
  +
  +# This will bundle up the dynamic items
  +for filesys_name, filesys_percent in filesytem_dict.iteritems():
  +    zs.add_zabbix_keys({'%s[%s]' % (#FILESYSTEM, filesys_name): filesys_percent})
  +
  +# Finally, sent them to zabbix
  +zs.send_metrics()
   ----
   
   ==== ops-zagg-client
  
positive.code: 
  ----
  
  Here is an example script of capturing the response code of google.com and sending it to Zagg as Zabbix item "web.google.status":
  
  .ZaggSender Python Example Script
  
negative.code: 
  ----
  
  ===== ops-zagg-client item example
  
  `ops-zagg-client` can be used to write bash scripts.  The basic bash script would follow the pattern:
  
  .ops-zagg-client bash script pattern
  