Giter Club home page Giter Club logo

cisco_perfmon_influxdb's Introduction

Cisco Perfmon TIG script

Script to get perfmon stats from CallManager to graph in a TIG stack

Requirements

  • Tested only on Python 3.6+
  • zeep
  • influxdb
  • lxml
  • argparse

Usage

Run from the commandline

python3 perfmon_arg.py -ip 10.10.20.1 10.10.20.2 -u administrator -p ciscopsdt -c 'Cisco CallManager'
Starting collection of Perfmon stats
Finishing collecting Perfmon stats

InfluxDB setup

$ influx -precision rfc3339
> CREATE DATABASE cisco_perfmon WITH DURATION 90d
> show databases
> use cisco_perfmon
> show measurements

Automate with PM2

Run from the commandline

pm2 start perfmon_arg.py --interpreter python3 --name cisco_callmanager --cron '*/5 * * * *' --no-autorestart -- -ip 10.10.20.1 10.10.20.2   -u administrator -p ciscopsdt -c 'Cisco CallManager'

Graph with Grafana

Useful PM2 commands

$ pm2 [list|ls|status]
$ pm2 flush
$ pm2 log
$ pm2 restart app_name
$ pm2 reload app_name
$ pm2 stop app_name
$ pm2 delete app_name
$ pm2 save or pm2 set pm2:autodump true
$ pm2 stop all
$ pm2 show <id|name>
$ pm2 startup
$ pm2 monit

PM2 Quick Start

License

MIT

cisco_perfmon_influxdb's People

Contributors

sieteunoseis avatar

Stargazers

 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.