Giter Site home page Giter Site logo

t4monitor's Introduction

t4Monitor

OpenVMS statistics (T4) collector and reporting tools

t4Monitor is a module that allows easy collection, preprocessing and reporting of generic OpenVMS' T4 compliant counters stored in Format-1 or Format-2 Comma Separated Values (CSV) files.

Its features include:

  • Download OpenVMS statistics (T4) over sftp through optional SSH tunnels over a single gateway.
  • simple methods for collecting T4-compliant CSV files
  • process collected statistics based in simple arithmetic functions (addition, multiplication, division and difference) based in collected metrics or scalars
  • easy-to-use API for graphing and reporting statistics (to HTML using Jinja2 templates)
  • handle compressed CSV files
  • T4-Format (flavors 1 and 2) CSV to Pandas dataframe conversion. All remote CSVs are merged into a single dataframe
  • conversion to/from plain CSV (i.e. excel compliant) format
  • generic remote command output retrieval
  • multiprocess/multi-thread methods for fast retrieval (in parallel for each system)
  • detailed log output in two parallel streams, on-screen for customizable severity logs and rotating file for detailed logging information
  • comprehensive test suite

Note

T4 CSV files header may come in 2 different formats: Format#1 and Format#2`

Format 1

The first four lines are header data:

line0: Header information containing T4 revision and system information

line1: Collection date   (optional line)

line2: Start time        (optional line)

line3: Parameter Heading (comma separated)

or

Format 2

line0: Header information containing T4 revision and system information
line1: <delim> START COLUMN HEADERS  <delim>  where <delim> is a triple `$`
line2: parameter headings (comma separated)
...

line 'n': <delim> END COLUMN HEADERS <delim>  where <delim> is a triple `$`

The remaining lines are the comma separated values. The first column is the sample time. Each line represents a sample, typically 60 seconds apart.

However T4 incorrectly places an extra raw line with the column averages almost at the end of the file. That line will be considered as a closing hash and contents followed by it (sometimes even more samples...) is ignored.

Requirements

Note

embedded in requirements/requirements.txt

How to install

For Linux:

git clone https://github.com/fernandezcuesta/t4Monitor.git
cd t4Monitor
pip install -r requirements/requirements.txt
python setup.py develop

For Windows:

git clone https://github.com/fernandezcuesta/t4Monitor.git
cd t4Monitor
install_windows.bat

Testing the package

Test Status Coverage Status

Requirements:

> Embedded in requirements-test.txt.

To run all the unit and functional tests:

  • unit tests only:

    pytest -n4 test/unit_tests
    
  • functional tests only (requires a SSH server to be up and running on localhost):

    pytest -n4 test/functional_tests
    
  • all tests in all supported python versions (requires all major versions from python2.7 to python3.5):

    tox
    

Building documentation

Requires:

> cd docs
> make html

License information

2014-2016 (c) J.M. Fernández - [email protected]

License: The MIT License (MIT) - see LICENSE file

t4monitor's People

Contributors

fernandezcuesta avatar

Stargazers

 avatar Pavel White avatar

Watchers

James Cloos avatar  avatar Saulius Krasuckas 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.