munin: show events-per-hour, not events-per-second
This commit is contained in:
parent
6aa1747b46
commit
4b840a37fe
|
@ -65,20 +65,23 @@ def count_events():
|
||||||
|
|
||||||
CONFIG = """\
|
CONFIG = """\
|
||||||
graph_title Magic-Wormhole Server Errors
|
graph_title Magic-Wormhole Server Errors
|
||||||
graph_vlabel Events per time
|
graph_vlabel Events per Hour
|
||||||
graph_category network
|
graph_category network
|
||||||
nameplates.label Nameplates
|
nameplates.label Nameplates
|
||||||
nameplates.draw LINE
|
nameplates.draw LINE1
|
||||||
nameplates.type DERIVE
|
nameplates.type DERIVE
|
||||||
nameplates.min 0
|
nameplates.min 0
|
||||||
|
nameplates.cdef nameplates,3600,*
|
||||||
mailboxes.label Mailboxes
|
mailboxes.label Mailboxes
|
||||||
mailboxes.draw LINE
|
mailboxes.draw LINE1
|
||||||
mailboxes.type DERIVE
|
mailboxes.type DERIVE
|
||||||
mailboxes.min 0
|
mailboxes.min 0
|
||||||
|
mailboxes.cdef mailboxes,3600,*
|
||||||
transit.label Transit
|
transit.label Transit
|
||||||
transit.draw LINE
|
transit.draw LINE1
|
||||||
transit.type DERIVE
|
transit.type DERIVE
|
||||||
transit.min 0
|
transit.min 0
|
||||||
|
transit.cdef transit,3600,*
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
||||||
|
|
|
@ -65,20 +65,23 @@ def count_events():
|
||||||
|
|
||||||
CONFIG = """\
|
CONFIG = """\
|
||||||
graph_title Magic-Wormhole Server Events
|
graph_title Magic-Wormhole Server Events
|
||||||
graph_vlabel Events per time
|
graph_vlabel Events per Hour
|
||||||
graph_category network
|
graph_category network
|
||||||
nameplates.label Nameplates
|
nameplates.label Nameplates
|
||||||
nameplates.draw LINE
|
nameplates.draw LINE
|
||||||
nameplates.type DERIVE
|
nameplates.type DERIVE
|
||||||
nameplates.min 0
|
nameplates.min 0
|
||||||
|
nameplates.cdef nameplates,3600,*
|
||||||
mailboxes.label Mailboxes
|
mailboxes.label Mailboxes
|
||||||
mailboxes.draw LINE
|
mailboxes.draw LINE
|
||||||
mailboxes.type DERIVE
|
mailboxes.type DERIVE
|
||||||
mailboxes.min 0
|
mailboxes.min 0
|
||||||
|
mailboxes.cdef mailboxes,3600,*
|
||||||
transit.label Transit
|
transit.label Transit
|
||||||
transit.draw LINE
|
transit.draw LINE
|
||||||
transit.type DERIVE
|
transit.type DERIVE
|
||||||
transit.min 0
|
transit.min 0
|
||||||
|
transit.cdef transit,3600,*
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
||||||
|
|
|
@ -65,12 +65,13 @@ def count_events():
|
||||||
|
|
||||||
CONFIG = """\
|
CONFIG = """\
|
||||||
graph_title Magic-Wormhole Transit Usage
|
graph_title Magic-Wormhole Transit Usage
|
||||||
graph_vlabel Bytes per time
|
graph_vlabel Bytes per Hour
|
||||||
graph_category network
|
graph_category network
|
||||||
transit.label Transit Bytes
|
transit.label Transit Bytes
|
||||||
transit.draw LINE
|
transit.draw LINE1
|
||||||
transit.type DERIVE
|
transit.type DERIVE
|
||||||
transit.min 0
|
transit.min 0
|
||||||
|
transit.cdef transit,3600,*
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
if len(sys.argv) > 1 and sys.argv[1] == "config":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user