Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

sieteunoseis/cucm_tig_dashboard_ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OVA image running a TIG Stack (Telegraf, InfluxDB, and Grafana) on Ubuntu 18.04 LTS

TIG Stack for Cisco Call Manager Perfmon and Risport data

Sample Graph

Access/Credentials

Ubuntu OS

  • username: dashadmin
  • password: TietERison

InfluxDB

Grafana

Ubuntu Settings

View IP Address

$ ip addr show ens33 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'

Set static IP address

https://www.howtoforge.com/linux-basics-set-a-static-ip-on-ubuntu

PM2 Commands (Process manager running python scripts)

PM2 is already set up to run scripts against Cisco's DevNet 12.5 Collaboration Sandbox. You'll need to delete all the processes and add new ones for your IP addresses. I created an Excel spreadsheet to help create the command lines for this step. The Jabber Registration example is below. All example are set to run every 5 minutes.

Excel Helper

$ 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 start perfmon_arg.py --interpreter python3 --name thread --cron '*/5 * * * *' --no-autorestart -- -ip 10.10.20.1 10.10.20.2 -u administrator -p ciscopsdt -c 'Cisco CallManager'
$ pm2 start cisco_axl_jabber.py --interpreter python3 --name jabber_status --cron '*/5 * * * *' --no-autorestart -- -ip 10.10.20.1 -u administrator -p ciscopsdt -v 12.0
$ pm2 save or pm2 set pm2:autodump true
$ pm2 stop all
$ pm2 show <id|name>
$ pm2 startup
$ pm2 monit

SFTP Configuration (This is already preconfigured)

$ sudo groupadd sftp
$ sudo nano /etc/ssh/sshd_config

Paste at bottom

Match group sftp
ChrootDirectory /
X11Forwarding no
AllowTcpForwarding no

Add user to group

$ sudo usermod -a -G dashadmin sftp

InfluxDB Settings

InfluxDB is already configured with sample data in it from Cisco's DevNet 12.5 Collaboration Sandbox.

$ sudo nano /etc/influxdb/influxdb.conf
$ influx -precision rfc3339
> show databases
> CREATE DATABASE cisco_perfmon WITH DURATION 90d
> use cisco_perfmon
> show measurements
> CREATE DATABASE cisco_risport WITH DURATION 90d
> use cisco_risport
> show measurements

If you'd like to remove the data and start fresh do the following:

$ influx -precision rfc3339
> drop database cisco_perfmon
> CREATE DATABASE cisco_perfmon WITH DURATION 90d
> drop database cisco_risport
> CREATE DATABASE cisco_risport WITH DURATION 90d
> drop database telegraf
> CREATE DATABASE telegraf WITH DURATION 90d

Telegraf Settings

Telegraf config needs to be edited with updated IP addresses. Telegraf is used to pull stats from CUCM via SNMP. This was done due to a bug in the Perfmon API.

CSCvn19112

$ sudo nano /etc/telegraf/telegraf.conf
$ sudo service telegraf restart
$ telegraf -test -config /etc/telegraf/telegraf.conf
$ snmpwalk -c dashboardRO -v 2c 10.10.20.1 -m +CISCO-CCM-MIB 1.3.6.1.4.1.9.9.156
$ cd /usr/share/snmp/mibs

Majority of the telegraf configuration was from this guide:

https://angristan.xyz/2018/04/monitoring-telegraf-influxdb-grafana/

Grafana Settings

Using the default settings created during installation. If you'd like more customization check out:

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-grafana-on-ubuntu-18-04

Nginx is also install if you want to create a reverse proxy to port 3000.

Python Scripts

Scripts are in the /home/dashboard/development directory. They are pulled from the following:

Sample python scripts are running via PM2. You can do the following to list them:

$ pm2 list

Giving Back

If you would like to support my work and the time I put in creating the code, you can click the image below to get me a coffee. I would really appreciate it (but is not required).

Buy Me A Coffee

-Jeremy Worden

Enjoy!

About

OVA Image TIG Stack Ubuntu

Resources

License

Stars

Watchers

Forks

Packages

No packages published