Giter VIP home page Giter VIP logo

jiraplugininfo's Introduction

Description

Jira Plugin Info Tol

  • Getting info from Jira installed plugins

Requirements

  • Python 2.7
  • Use pip install -r requirements.txt to install needed libraries
  • Recommending usage of Python virtual env

Authentication

  • .netrc file used to provide logging credentials (lives in home directory)
  • Remember .netrc file protection! (chmod 600 .netrc )
  • .netrc content example
machine jira.mycompany.com
	
login myadmin_account
	
password mypassword

Usage

  python GetInfo.py -j https://jira.mycompany.com   (default 30days expr limit)
  python GetInfo.py -j https://jira.mycompany.com  -t 50 (marks all license expr days in next 50 days as an alarm))
  
  with trafic and header info: python GetInfo.py -j https://jira.mycompany.com -d ON
  developerdebug mode: GetInfo.py -j https://jira.mycompany.com -l ON
    
    Return values: 
    300=black (auth or connection issues, no RESTAPI connection made)
    301=red (expired plugins)
    302=yellow (plugins to be expired inside given days limit found)
    303=green (all plugins with valid licenses)
    304= (tool/auth issues)
  
  Example summary info:

2019-03-05 08:05:38,880:GetInfo.py:INFO:***** STATUS SUMMARY FOR:https://<server-name> **************
2019-03-05 08:05:38,880:GetInfo.py:INFO:Plugins with OK Expiration date in future:1
2019-03-05 08:05:38,880:GetInfo.py:INFO:Plugins with ALARM Expiration:2 
2019-03-05 08:05:38,880:GetInfo.py:INFO:Plugins with FAILED Expiration:46 
2019-03-05 08:05:38,880:GetInfo.py:INFO:==> STATUS: RED

Author [email protected]

jiraplugininfo's People

Contributors

mnokka avatar

Watchers

James Cloos avatar  avatar

Forkers

tied

jiraplugininfo's Issues

Adapt diffrent time formats from host

Currently cant hadnle following timeformat from host jira:

2019-03-05 10:04:19,594:GetInfo.py:INFO:EXPIRATION DATE:25.10.2020
Traceback (most recent call last):
File "GetInfo.py", line 332, in
main(sys.argv[1:])
File "GetInfo.py", line 115, in main
GetStepInfo(jira,JIRASERVICE,user,PASSWORD,DEBUG,logger,THRDAYS,DEVDEBUG)
File "GetInfo.py", line 236, in GetStepInfo
Converdate = datetime.datetime.strptime(ExpDate, '%d/%b/%y')
File "/usr/lib/python2.7/_strptime.py", line 332, in _strptime
(data_string, format))
ValueError: time data '25.10.2020' does not match format '%d/%b/%y'

UI to show status info

UI to show status of selected server's licenses:

Server: , optional

Alert time for "to be expired soon" to be configured

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.