From f27e1796e3ba2b2196ef31faaf3531b6a3843fdd Mon Sep 17 00:00:00 2001 From: Charish Patel Date: Mon, 25 Mar 2019 13:58:23 -0400 Subject: [PATCH] Updated README (did not get reflected on initial push) --- README.md | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b7665c..91eda41 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,60 @@ # meraki-naemon -Python3 Script for pulling Meraki device info into Nagios & Nagios-derived monitoring systems \ No newline at end of file +Python3 Script for pulling Meraki device info into Nagios & Nagios-derived monitoring systemsusage: meraki_api.py [-h] -k API_KEY -d {switch,ap} -t + {license,uplink,port,latency,ssid,failconn,connassoc,connauth,conndhcp,conndns,connsucc,clients} + [-o ORGID] [-n NETWORKID] [-s SERIAL] [-w SSID] [-p PORT] + +Information from Meraki Dashboard API (https://api.meraki.com/api/v0). For full documentation on the Meraki Dashboard API please see: +- https://dashboard.meraki.com/api_docs +- https://documenter.getpostman.com/view/897512/meraki-dashboard-api/2To9xm + +required arguments: + -k API_KEY, --api-key API_KEY + API key obtained from Meraki Dashboard admin account + -d {switch,ap}, --device {switch,ap} + Device type to be queried (Wireless AP or Switch) + -t {license,uplink,port,latency,ssid,failconn,connassoc,connauth,conndhcp,conndns,connsucc,clients}, --type {license,uplink,port,latency,ssid,failconn,connassoc,connauth,conndhcp,conndns,connsucc,clients} + + -=EXPLANATION & USAGE=- + + I. All devices + license: Expiration of Meraki device license + -t license -o + uplink: Status of Meraki device connection to the cloud + -t uplink -n -s + + II. Switch Options + port: Get status on an individual switchport + -t port -s -p + + III. AP Options + latency: Latency stats over the past hour per AP + -t latency -n -s + ssid: Status of configured SSID(s) + -t ssid -n -w <#> + failconn: Number of failed connections over the past hour + -t failconn -n + connassoc, connauth, conndhcp, conndns, connsucc: Connection stats per AP over the past hour at different stages + -t [connassoc, connauth, conndhcp, conndns, connsucc] -n -s + clients: Number of connected clients per AP within the past 2 hours + -t clients -s + +supplemental arguments: + -o ORGID, --orgid ORGID + Organization ID + API Call (retrieve orgid[s]): GET /organizations + + -n NETWORKID, --networkid NETWORKID + Network ID + API Call (retrieve network id[s]): GET /organizations//networks + + -s SERIAL, --serial SERIAL + Meraki Device Serial Number, e.g., ABCD-1234-EF56 + API Call (retrieve serial number[s]): GET /networks//devices + + -w SSID, --ssid SSID + Specify the SSID by integer, e.g., 0 + API Call (retrieve SSID number[s]): GET /networks//ssids + + -p PORT, --port PORT Switch port number + API Call (retrieve stats for all switch ports): GET /devices//switchPorts