class GraphTemplateLatency(base.GraphTemplate):
name = "latency"
+ lower_limit = 0
+
@property
def rrd_graph(self):
return [
]
@property
- def rrd_graph_args(self):
- return [
- "--title", _("Latency to %(host)s"),
- "--vertical-label", _("Milliseconds"),
+ def graph_title(self):
+ return _("Latency to %(host)s")
- "--lower-limit", "0", "--rigid",
- ]
+ @property
+ def graph_vertical_label(self):
+ return _("Milliseconds")
class LatencyObject(base.Object):
try:
ping = collecty.ping.Ping(destination=self.hostname, timeout=20000)
ping.run(count=5, deadline=self.deadline)
-
+
except collecty.ping.PingError, e:
self.log.warning(_("Could not run latency check for %(host)s: %(msg)s") \
% { "host" : self.hostname, "msg" : e.msg })
name = "latency"
description = "Latency (ICMP ping) Plugin"
- templates = [GraphTemplateLatency,]
+ templates = [GraphTemplateLatency]
interval = 60