I try to use a json monitor with the wizzard
when i do a curl get the json exit
Code: Select all
[
{
"Telefono": {
"id": "XXXXX",
"name": "XXXXX",
"selfUri": "/www/www/www/www"
},
"eventTime": "2021-12-16T00:23:32.646Z",
"upTimeMsec": 340589000,
"processors": [
{
"activeTimePct": 0,
"cpuId": "total",
"idleTimePct": 99,
"privilegedTimePct": 0,
"userTimePct": 0
}
],
"memory": [
{
"availableBytes": 5989015552,
"type": "physical",
"totalBytes": 8492802048
},
{
"availableBytes": 14602121216,
"type": "virtual",
"totalBytes": 17254703104
}
],
"disks": [
{
"availableBytes": 463571476480,
"partitionName": "C:",
"totalBytes": 511374086144
},
{
"availableBytes": 22169489408,
"partitionName": "D:",
"totalBytes": 32012754944
}
],
"subsystems": [
{
"delayMs": 0,
"processName": "process1"
},
{
"delayMs": 0,
"processName": "process2",
"mediaSubsystem": {
"delayMs": 0,
"processName": "process3"
}
},
{
"delayMs": 0,
"processName": "process4"
}
],
"networks": [
{
"ifname": "{XXXXXXXXXXXXXXXX}",
"sentBytesPerSec": 436,
"receivedBytesPerSec": 534,
"bandwidthBitsPerSec": 100000000,
"utilizationPct": 0.0077599999494850636
},
{
"ifname": "{XXXXXXXXXXXXXXXXXX}",
"sentBytesPerSec": 0,
"receivedBytesPerSec": 63,
"bandwidthBitsPerSec": 100000000,
"utilizationPct": 0.0005039999959990382
}
]
}
]
1. upTimeMsec > numeric value
2. processors > activeTimePct > numeric value
...
3. subsystems > processName > string vale (alert when it does not exists)
The wizzard has "Key" and i dont know how set it with the variables from json exit
thx for your help