Greetings,
I'm looking for help on how to generate sensors from the Aerohive REST API. I have this dataset and I want to use the REST Sensor in PRTG
I'd like each sensor to have the "hostName" as the name and the "clients" as the value for the sensor.
[
{
"audit": "Matched",
"hostName": "AP20",
"alarm": "Cleared",
"interfaceIp": "192.168.3.94",
"externalIp": "xxx.xxx.xxx.xxx",
"topologyName": "Our Address",
"nodeId": "9CXX1234BFXX",
"connection": true,
"deviceMode": "Portal",
"clients": 0,
"upTime": "1 Days, 18 Hrs 7 Mins 45 Secs",
"hiveOS": "HiveOS 6.6r1b.2338",
"deviceFunciton": "AP",
"appSignature": "4.0.8",
"countryCode": "(840) United States",
"defaultGateWay": "192.168.1.20",
"dhcpClient": "Enabled",
"discoveryTime": "09-03-2014 12:11:58",
"eth0LLDPPort": "37(interface alias)",
"eth0LLDPSysId": "e055:xxxx:xxxx(mac address)",
"eth0LLDPSysName": "Coreswitch2",
"eth1LLDPPort": "-",
"eth1LLDPSysId": "-",
"eth1LLDPSysName": "-",
"hive": "Out_Hive",
"inOrOutDoor": "Indoor",
"location": "B-2nd Floor",
"mgtVlan": "1",
"nativeVlan": "1",
"netmask": "255.255.248.0",
"networkPolicy": "Our Policy",
"serialNumber": "02301407XXXXX",
"wifi0Channel": "1",
"wifi0Power": "11 dBm",
"wifi0RadioProfile": "radio_ng0",
"wifi1Channel": "44",
"wifi1Power": "20 dBm",
"wifi1RadioProfile": "radio_ac0",
"hwmodel": "AP230"
},
{
"audit": "Matched",
"hostName": "AP21",
"alarm": "Cleared",
"interfaceIp": "192.168.3.94",
"externalIp": "xxx.xxx.xxx.xxx",
"topologyName": "Our Address",
"nodeId": "9CXX1234BFXX",
"connection": true,
"deviceMode": "Portal",
"clients": 4,
"upTime": "1 Days, 18 Hrs 7 Mins 26 Secs",
"hiveOS": "HiveOS 6.6r1b.2338",
"deviceFunciton": "AP",
"appSignature": "4.0.8",
"countryCode": "(840) United States",
"defaultGateWay": "192.168.1.20",
"dhcpClient": "Enabled",
"discoveryTime": "09-03-2014 15:31:40",
"eth0LLDPPort": "40(interface alias)",
"eth0LLDPSysId": "e055:3dfc:55f2(mac address)",
"eth0LLDPSysName": "Coreswitch2",
"eth1LLDPPort": "-",
"eth1LLDPSysId": "-",
"eth1LLDPSysName": "-",
"hive": "Our_Hive",
"inOrOutDoor": "Indoor",
"location": "B-2nd Floor",
"mgtVlan": "1",
"nativeVlan": "1",
"netmask": "255.255.248.0",
"networkPolicy": "Our Policy",
"serialNumber": "02301407090105",
"wifi0Channel": "11",
"wifi0Power": "11 dBm",
"wifi0RadioProfile": "radio_ng0",
"wifi1Channel": "149",
"wifi1Power": "20 dBm",
"wifi1RadioProfile": "radio_ac0",
"hwmodel": "AP230"
}
]
Add comment