-
cisco_meraki_org_device_status.py
section name don’t match
The section name needs to be cisco_meraki_org_device_status
not cisco_meraki_org_device
<<<<192.168.20.4>>>>
<<<cisco_meraki_org_device_status:sep(0)>>>
[{"components": {"powerSupplies": [{"model": "PWR-MS320-1025WAC", "poe": {"maximum": 740, "unit": "watts"}, "serial": "XXXXXXXX1", "slot": 1, "status": "powering"}, {"model": "PWR-MS320-1025WAC", "poe": {"maximum": 740, "unit": "watts"}, "serial": "XXXXXXXX2", "slot": 2, "status": "powering"}]}, "gateway": "192.168.20.1", "ipType": "static", "lanIp": "192.168.20.4", "lastReportedAt": "2023-04-19T18:08:21.005000Z", "mac": "98:18:88:00:00:01", "model": "MS250-48FP", "name": "devicename", "networkId": "L_1234567890", "organizationId": "09876543", "primaryDns": "192.168.20.1", "productType": "switch", "publicIp": "10.10.10.10", "secondaryDns": null, "serial": "XXXXXXXX3", "status": "online", "tags": ["recently-added"]}]
<<<<>>>>
register.agent_section(
name="cisco_meraki_org_device",
parse_function=parse_device_status,
)
register.check_plugin(
name="cisco_meraki_org_device_status",
sections=["cisco_meraki_org_device"],
service_name="Cisco Meraki Device Status",
discovery_function=discover_device_status,
check_function=check_device_status,
)
looks like this after fixing
@TLI any reason for not checking the status of the components (in this case the power supplys)?
{"components": {
"powerSupplies": [
{"model": "PWR-MS320-1025WAC", ... "serial": "XXXXXXXX1", "slot": 1, "status": "powering"},
{"model": "PWR-MS320-1025WAC", ... "serial": "XXXXXXXX2", "slot": 2, "status": "powering"}
]
}}