Skip to content

Instantly share code, notes, and snippets.

@cluther
cluther / example_output.txt
Last active February 5, 2016 20:13
Python Progress Logger
INFO:root:progress: 8 of 1000, elapsed=0:00:01, remaining=0:02:09
INFO:root:progress: 16 of 1000, elapsed=0:00:02, remaining=0:02:08
INFO:root:progress: 24 of 1000, elapsed=0:00:03, remaining=0:02:07
INFO:root:progress: 32 of 1000, elapsed=0:00:04, remaining=0:02:06
INFO:root:progress: 40 of 1000, elapsed=0:00:05, remaining=0:02:05
INFO:root:progress: 48 of 1000, elapsed=0:00:06, remaining=0:02:04
INFO:root:progress: 56 of 1000, elapsed=0:00:07, remaining=0:02:03
INFO:root:progress: 64 of 1000, elapsed=0:00:08, remaining=0:02:02
INFO:root:progress: 72 of 1000, elapsed=0:00:09, remaining=0:02:01
INFO:root:progress: 80 of 1000, elapsed=0:00:10, remaining=0:02:00
@cluther
cluther / example.yaml
Last active June 21, 2021 11:16
Create Zenoss monitoring templates from YAML
#
# COMMAND Example
#
/ExampleDeviceClass/ExampleCommandTemplate:
datasources:
echo:
type: COMMAND
commandTemplate: 'echo "OK|val1=123 val2=987.6'
parser: Nagios
severity: info