mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
clean up alarm plugins, fix typo in graphtest
This commit is contained in:
parent
6df2ce2340
commit
071b1cace3
@ -84,37 +84,42 @@ class tarpit(MuninPlugin):
|
||||
modules["tarpit"] = tarpit()
|
||||
|
||||
class always_warning(MuninPlugin):
|
||||
conftext = """graph_title Always in LEVEL
|
||||
graph_vlabel Level
|
||||
graph_scale no
|
||||
graph_info A simple graph that is always in LEVEL
|
||||
graph_category active_notification
|
||||
generic.label Level
|
||||
generic.info Level usually above warning level
|
||||
generic.warning 5
|
||||
generic.critical 10"""
|
||||
|
||||
def fetch(self, conf):
|
||||
return "generic.value 10"
|
||||
|
||||
def config(self, conf):
|
||||
return """graph_title Always in warning
|
||||
graph_vlabel Level
|
||||
graph_scale no
|
||||
graph_info A simple graph that is always in warning or critical
|
||||
graph_category active_notification
|
||||
generic.label Level
|
||||
generic.info Level usually above warning level
|
||||
generic.warn 5
|
||||
generic.crit 10"""
|
||||
return self.conftext.replace("LEVEL","warning")
|
||||
modules["always_warning"] = always_warning()
|
||||
|
||||
class always_critical(always_warning):
|
||||
def fetch(self, conf):
|
||||
return "generic.value 20"
|
||||
|
||||
def config(self, conf):
|
||||
return self.conftext.replace("LEVEL","critical")
|
||||
modules["always_critical"] = always_critical()
|
||||
|
||||
class graph_area(MuninPlugin):
|
||||
"A plugin that uses STACK and AREA. From proc_pri. Use: testing the grapher"
|
||||
def fetch(self, conf):
|
||||
return """high.value 3
|
||||
low.value 2
|
||||
locked.value 1"""
|
||||
low.value 2
|
||||
locked.value 1"""
|
||||
|
||||
def config(self, conf):
|
||||
return """graph_title AREA and STACK
|
||||
graph_order low high locked
|
||||
graph_category graphtes t
|
||||
graph_category graphtest
|
||||
graph_info This graph shows nuber of processes at each priority
|
||||
graph_args --base 1000 -l 0
|
||||
graph_vlabel Number of processes
|
||||
|
Loading…
Reference in New Issue
Block a user