Use ntce summary instead per hosts stat

Per hosts stat require InfuxDB 2+ due to increase function
This commit is contained in:
Vitaliy Skrypnyk
2021-09-05 21:22:18 +03:00
parent 0d0d694f20
commit 89b66093f6

View File

@@ -164,21 +164,22 @@
}
},
{
"command": "ntce hosts",
"root" : "$.host[*].application[*]",
"command": "ntce summary",
"root" : "$.application[*]",
"param" : {
"application" : "true",
"attrib" : "sumbytes",
"detail" : "1"
},
"tags" : {
"group-long" : "$.group-long",
"groupset-long-id" : "$.groupset-long-id",
"long" : "$.long",
"short": "$.short",
"name": "`parent`.`parent`.host.name",
"ip": "`parent`.`parent`.host.ip",
"hostname": "`parent`.`parent`.host.hostname"
"group-long" : "$.group-long",
"groupset-long-id" : "$.groupset-long-id",
"groupset-short-id" : "$.groupset-short-id"
},
"values" : {
"rxbytes": "$.rxbytes",
"txbytes": "$.txbytes"
"sumbytes": "$.sumbytes"
}
}
]