This repository has been archived by the owner on Mar 12, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove requests and jinja2 dependencies. Fixes #9
- Loading branch information
Showing
13 changed files
with
87 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
include LICENSE *.txt README.md | ||
exclude hipsaint/tests.py | ||
recursive-include hipsaint/templates * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VERSION = (0, 4, 3, 'final', 0) | ||
VERSION = (0, 4, 4, 'final', 0) | ||
|
||
|
||
def get_version(version=None): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
Templates used to build hipchat api payloads | ||
""" | ||
|
||
host_template = """ | ||
<strong>{timestamp} - {hostname} (nagios@{nagios_host})</strong><br/> | ||
<strong>Type:</strong> {ntype}<br/> | ||
<strong>Host:</strong> {hostname} (<a href="{hostaddress}">{hostaddress}</a>)<br/> | ||
<strong>State:</strong> {state}<br> | ||
<strong>Info:</strong> | ||
<pre>{hostoutput}</pre> | ||
""" | ||
|
||
host_short_template = """[{ntype}] {hostname}: {hostoutput}""" | ||
|
||
service_template = """ | ||
<strong>{timestamp} - {servicedesc} on {hostalias} (nagios@{nagios_host})</strong><br/> | ||
<strong>Type:</strong> {ntype}<br/> | ||
<strong>Host:</strong> {hostalias} (<a href="{hostaddress}">{hostaddress}</a>)<br/> | ||
<strong>State:</strong> {state}<br/> | ||
<strong>Info:</strong> | ||
<pre>{serviceoutput}</pre> | ||
""" | ||
|
||
service_short_template = "[{ntype}] {hostalias} {servicedesc}: {serviceoutput}" | ||
|
||
|
||
templates = {'host': host_template, 'short-host': host_short_template, | ||
'service': service_template, 'short-service': service_short_template} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters