rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
var traffic = {
- title: "%H: DNS traffic", vlabel: "Bit/s",
+ title: "%H: DNS traffic",
+ vlabel: "Bit/s",
data: {
sources: {
};
var opcode_query = {
- title: "%H: DNS Opcode Query", vlabel: "Queries/s",
+ title: "%H: DNS Opcode Query",
+ vlabel: "Queries/s",
data: {
instances: {
dns_opcode: [ "Query" ]
};
var qtype = {
- title: "%H: DNS QType", vlabel: "Queries/s",
+ title: "%H: DNS QType",
+ vlabel: "Queries/s",
data: {
sources: { dns_qtype: [ "" ] },
options: {
if (plugin_instance == "routes") {
g.push({
/* diagram data description */
- title: "%H: Total amount of OLSR routes", vlabel: "n",
- number_format: "%5.0lf", data: {
+ title: "%H: Total amount of OLSR routes",
+ vlabel: "n",
+ number_format: "%5.0lf",
+ data: {
types: [ "routes" ],
options: {
routes: {
}
}
}, {
- title: "%H: Average route ETX", vlabel: "ETX", detail: true,
- number_format: "%5.1lf", data: {
+ title: "%H: Average route ETX",
+ vlabel: "ETX",
+ detail: true,
+ number_format: "%5.1lf",
+ data: {
instances: [ "average" ], /* falls es irgendwann mal welche pro ip gibt, wie bei links, dann werden die hier excludiert */
types: [ "route_etx" ],
options: {
}
}
}, {
- title: "%H: Average route metric", vlabel: "metric", detail: true,
- number_format: "%5.1lf", data: {
+ title: "%H: Average route metric",
+ vlabel: "metric",
+ detail: true,
+ number_format: "%5.1lf",
+ data: {
instances: [ "average" ], /* falls es irgendwann mal welche pro ip gibt, wie bei links, dann werden die hier excludiert */
types: [ "route_metric" ],
options: {
else if (plugin_instance == "links") {
g.push({
/* diagram data description */
- title: "%H: Total amount of OLSR neighbours", vlabel: "n",
- number_format: "%5.0lf", data: {
+ title: "%H: Total amount of OLSR neighbours",
+ vlabel: "n",
+ number_format: "%5.0lf",
+ data: {
instances: [ "" ],
types: [ "links" ],
options: {
}
else if (plugin_instance == "topology") {
g.push({
- title: "%H: Total amount of OLSR links", vlabel: "n",
- number_format: "%5.0lf", data: {
+ title: "%H: Total amount of OLSR links",
+ vlabel: "n",
+ number_format: "%5.0lf",
+ data: {
instances: [ "" ],
types: [ "links" ],
options: {
}
}
}, {
- title: "%H: Average signal quality", vlabel: "n",
- number_format: "%5.2lf", detail: true,
+ title: "%H: Average signal quality",
+ vlabel: "n",
+ number_format: "%5.2lf",
+ detail: true,
data: {
instances: [ "average" ], /* exclude possible per-ip stuff */
types: [ "signal_quality" ],