Skip to content

Commit

Permalink
pingdom module dont need to be aggressive on timeout anymore, add POS…
Browse files Browse the repository at this point in the history
…ITION parameter
  • Loading branch information
ultrabug committed Apr 16, 2013
1 parent 7f73dcc commit 8bd0528
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions examples/pingdom.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ def pingdom_checks(self, json, i3status_config):
response = {'full_text' : '', 'name' : 'pingdom_checks'}

#NOTE: configure me !
APP_KEY = '' # create an APP KEY on pingdom first
CACHE_TIMEOUT = 600 # update every 10 mins
CHECKS = [] # list of the checks' names you want added to your bar
LATENCY_THRESHOLD = 500 # when to colorize the output
LOGIN = '' # pingdom login
PASSWORD = '' # pingdom password
TIMEOUT = 3
APP_KEY = '' # create an APP KEY on pingdom first
CACHE_TIMEOUT = 600 # update every 10 mins
CHECKS = [] # list of the checks' names you want added to your bar
LATENCY_THRESHOLD = 500 # when to colorize the output
LOGIN = '' # pingdom login
PASSWORD = '' # pingdom password
TIMEOUT = 5
POSITION = 0

try:
import requests
Expand All @@ -46,4 +47,4 @@ def pingdom_checks(self, json, i3status_config):
except Exception as e:
pass
finally:
return (0, response)
return (POSITION, response)

0 comments on commit 8bd0528

Please sign in to comment.