aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2016-11-10 20:46:22 +0100
committerKristian Lyngstol <kly@kly.no>2016-11-10 20:46:22 +0100
commita4684336edfc510e8e5b7a7752cd5c531ab6c26f (patch)
tree02e7c06cfb30f357dd91c89c9670119f326dd113 /web/js/nms.js
parent200cf04d24927349c25c77363ffe4782df17fcbf (diff)
Push all numerical snmp-data to graphite
Fixes #126
Diffstat (limited to 'web/js/nms.js')
-rw-r--r--web/js/nms.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/nms.js b/web/js/nms.js
index 6089173..30fb8ff 100644
--- a/web/js/nms.js
+++ b/web/js/nms.js
@@ -628,7 +628,7 @@ function nmsUpdateNavbarGraph() {
if (window.innerWidth > 2300)
w += 400;
- img.src = "/render/?target=movingAverage(averageSeries(ping.*.ipv4),%225min%22)&target=secondYAxis(averageSeries(perSecond(snmp.*.*.{ifHCInOctets,ifHCOutOctets})))&bgcolor=%23ffffff00&width=" + w + "&height=20&format=svg&from=-60min&until=now&graphOnly=true&somerandomthing=" + Math.floor(new Date().getTime() / 10000);
+ img.src = "/render/?target=movingAverage(averageSeries(ping.*.ipv4),%225min%22)&target=secondYAxis(averageSeries(perSecond(snmp.*.ports.*.{ifHCInOctets,ifHCOutOctets})))&bgcolor=%23ffffff00&width=" + w + "&height=20&format=svg&from=-60min&until=now&graphOnly=true&somerandomthing=" + Math.floor(new Date().getTime() / 10000);
}
/*
* Test if the entire path specified in the arrary "ar" exists under the