Another PEP8 compatibility fix

This commit is contained in:
Alexandr Mikhailov 2015-12-18 00:46:10 +03:00 committed by enkore
parent 0aeec83741
commit a09bf88007
2 changed files with 7 additions and 3 deletions

View File

@ -32,7 +32,8 @@ MOCK_MODULES = [
"bs4",
"dota2py",
"novaclient.v2",
"speedtest_cli"
"speedtest_cli",
"pyzabbix"
]
for mod_name in MOCK_MODULES:

View File

@ -6,14 +6,16 @@ class Zabbix(IntervalModule):
"""
Zabbix alerts watcher
Requires: pyzabbix
.. rubric:: Available formatters
* {default} - Full output count alerts like total:a5/a4/a3/a2/a1/a0
* {total} - Total count of alerts
* {aX_count} - Count alerts of X severity
* {colorX} - Predicted color for X severity. It can be used with Pango markup hint for different colours at each severity with
Requires pyzabbix
"""
settings = (
("zabbix_server", "Zabbix Server URL"),
("zabbix_user", "Zabbix API User"),
@ -21,6 +23,7 @@ class Zabbix(IntervalModule):
("interval", "Update interval"),
"format"
)
required = ("zabbix_server", "zabbix_user", "zabbix_password")
interval = 60
format = "{default}"