Giter Club home page Giter Club logo

dnac-noc's Introduction

Network Operations Center Dashboard

I am assuming you have TIG (Telegraf/Influx/Grafana) setup for general dashboard purposes. This is really simplle to setup and there are lots of blogs on this.

Setup The Custom Script

The script is going to call DNAC API via the newly released SDK.

I am going to assume a directory /opt/telegraf. If you want to install elsewhere you need to change the paths in the custom.conf file.

First (optional) step, create a vitualenv. This makes it less likely to clash with other python libraries in future. Once the virtualenv is created, need to activate it.

python3 -mvenv env3
source env3/bin/activate

Next clone the code.

git clone https://github.com/CiscoDevNet/DNAC-NOC.git

Then install the requirements (after upgrading pip). Older versions of pip may not install the requirements correctly.

pip install -U pip
pip install -r DNAC-NOC/requirements.txt

Credentials/Run the Script

By default the script uses the devnet sandbox. If you want to change these you can edit the dnac_config.py file. You are able to either edit the defaults, or use environment variables if you are familiar with them.

Finallly, test the script.
Should see something like this.
You can edit the dnac_config.py file to change the DNAC you are connecting to. The default is a devnet sandbox.

$ ./DNAC-NOC/dnac_assurance.py 
{"Core.count": null, "totalcount": 14, "WIRELESS-client.count": 80, "WLC.count": null, 
"WIRED-client.count": 2, "AP.count": null, "WIRED-client.value": 100, "Access.count": null, 
"totalscore": 100, "WIRELESS-client.value": 25, "AP.score": 100, "Router.score": 100, 
"ALL-client.value": 27, "Router.count": null, 
"Access.score": 100, "Core.score": 100, "WLC.score": 100, "ALL-client.count": 82}

Get Telegraf to use the custom script

Now install the telegraf custom script, restart telegraf.

sudo cp DNAC-NOC/telegraf.d/custom.conf /etc/telegraf/telegraf.d/
sudo systemctl restart telegraf

Import Dashboard Definition in Grafana

log into grafana, select + create -> import json

json

Select the jsonfile grafana/dashboard.json json

Then add the dashboard json

This will give you an empty dashboard. json

Soon you wil see updated data json

dnac-noc's People

Contributors

aradford123 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.