Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.
/ sreboard_pub Public archive

An automation for daily monitoring operations at SNOW SRE team

Notifications You must be signed in to change notification settings

salmansamie/sreboard_pub

Repository files navigation

sreboard 2.1 (showcase)

This project is a stripped version of the original project for showcasing in compliance with the ServiceNow NDA.

  ____  ____  _____     _                         _ 
 / ___||  _ \| ____|   | |__   ___   __ _ _ __ __| |
 \___ \| |_) |  _|     | '_ \ / _ \ / _` | '__/ _` |
  ___) |  _ <| |___   _| |_) | (_) | (_| | | | (_| |
 |____/|_| \_\_____| (_)_.__/ \___/ \__,_|_|  \__,_|
                                                    

sreboard: An automation for monitoring applications setup at ServiceNow SRE team

Index

What does this do?

  • Decrypts VPN tokens for the respective hosts and authenticates to any of the active domains. Retries and reconnects or auto-switches between the most active domains if the current one becomes unresponsive.
  • Operating system level management for the applications that it controls.
  • Opens specified browsers in kiosk modes and manages application window locations by host screen resolutions.
  • Command-line argument inputs to specify the optional functions.

How to install?

  • Clone the repository into the monitor Mac of your choice.
  • To run it with the host default configuration run the app.py script as below:
python sreboard.py

Note: Your Mac may not be in the default configuration Mac list. See available options

How it works?

  • The project structure has the following files:
sreboard.py
factors.py
data.py
cord_attr.json

The automation leaverages the use of OSA Scripting, Mac OSX's internal system scripting to perform the actions like coordinating and window resizing.

The following files decribe the project's core structure:

  • app.py contains the main function to the project and can be compared to the VIEW component.
  • factors.py contains the control structure of the project and is compared to the CONTROLLER component.
  • data.py contains all the related variables in the module which is obviously the MODEL component.
  • app.conf file is updated everytime the script is triggered, it stores a volatile variable.
  • cord_attr.json stores variables of the opened window sizes and coordinates in JSON format for the ease of setup.

What are the options?

  • optional arguments:
  -h, --help     Shows this help message and exit
  -d, --default  Activates default host application configurations
  -s, --switch   Switchs to alternate monitor configurations
  -q, --quit     Quits ALL running Chrome AND/OR Adium processes only
Email for issues/enhancements to:
Salman:  [email protected]
         [email protected]
         
Ciprian: [email protected]

About

An automation for daily monitoring operations at SNOW SRE team

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published