Giter VIP home page Giter VIP logo

webmonitoring-cli's Introduction

WEB MONITORING CLI

App Visual

Installation

To install the app simply clone the project, and you are good to go! Don't worry it is light ヽ(´▽`)/

NOTE : The app requires the user to have installed python 3 !

Starting the app - Commands

to start the app type go to your webMonitoring-CLI directory and type python3 main.py {cmd}

with one of the following command :

* -h to open help
* user {username} to access the user interface for the specified user
* monitor {username} to access the monitoring interface for the specified user

Mailing Alert

If you want to be notified by mail whenever an alert is triggered (Website up or down basically), you can add your email address in the field mailrecipient (line 4) of the mailSender file

MultiProcessing

The following diagram describes how are organized the different processes used in the app Multi Processing Schema

ENHANCEMENTS

You can see my proposition for enhancements here : Enhancement File

ISSUES

install certification command for ssl in mac

contains the shell script :

   
   /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 << "EOF"
   
   # install_certifi.py
   #
   # sample script to install or update a set of default Root Certificates
   # for the ssl module.  Uses the certificates provided by the certifi package:
   #       https://pypi.python.org/pypi/certifi
   
   import os
   import os.path
   import ssl
   import stat
   import subprocess
   import sys
   
   STAT_0o775 = ( stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR
                | stat.S_IRGRP | stat.S_IWGRP | stat.S_IXGRP
                | stat.S_IROTH |                stat.S_IXOTH )
   
   def main():
       openssl_dir, openssl_cafile = os.path.split(
           ssl.get_default_verify_paths().openssl_cafile)
   
       print(" -- pip install --upgrade certifi")
       subprocess.check_call([sys.executable,
           "-E", "-s", "-m", "pip", "install", "--upgrade", "certifi"])
   
       import certifi
   
       # change working directory to the default SSL directory
       os.chdir(openssl_dir)
       relpath_to_certifi_cafile = os.path.relpath(certifi.where())
       print(" -- removing any existing file or link")
       try:
           os.remove(openssl_cafile)
       except FileNotFoundError:
           pass
       print(" -- creating symlink to certifi certificate bundle")
       os.symlink(relpath_to_certifi_cafile, openssl_cafile)
       print(" -- setting permissions")
       os.chmod(openssl_cafile, STAT_0o775)
       print(" -- update complete")
   
   if __name__ == '__main__':
       main()
   EOF

webmonitoring-cli's People

Contributors

pierresegonne avatar

Watchers

 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.