Skip to main content

Package to monitor if servers are available to connect

Project description

monitor.py

Testing packaging

v0.1 upcoming !

This is a small package to monitor server addresses by sending pings at desired intervals.

Using a .json file to hold config options for the script. The script will utilize logging and/or mqtt pub/sub.

Getting close to releasing v 0.1 of this which will have just basic functionality. You will have to configure your .json config file manually. In the next version there will be a script to aid in managing the config.

Planned for v0.2 :

  • script to manage config options
  • packaging of module
  • testing
  • verification of config (valid ip structure or if hostname that it is a valid hostname)

Getting Started

When the script scan.py is run, it will check for 3 directories and make them if they are not present :

$HOME/monitor/
$HOME/monitor/config/
$HOME/monitor/logs

The project directory can be placed anywhere it will just place the log and config files in the appropriate directories in the users home directory.

Log ouput will look like the following :

       [INFO] [2020-02-29 14:54:54,904] : localhost is up...  
       [INFO] [2020-02-29 14:55:54,965] : localhost is up...  
       [INFO] [2020-02-29 14:56:55,014] : localhost is up...

localhost is the default server setup so you can immediately test if it is working.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monitor-py-0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

monitor_py-0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file monitor-py-0.1.tar.gz.

File metadata

  • Download URL: monitor-py-0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for monitor-py-0.1.tar.gz
Algorithm Hash digest
SHA256 63ad6825bc90ec76fcad90630fcaa55c6e98aceea904d07a7832e6c5fece04f5
MD5 fdfd270aaf3e0af6a0a04fe21dd902ab
BLAKE2b-256 8a96bf710f5a9efad9d942ce238178c963315b77e925297874285400cb9bba51

See more details on using hashes here.

Provenance

File details

Details for the file monitor_py-0.1-py3-none-any.whl.

File metadata

  • Download URL: monitor_py-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for monitor_py-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7faa6a4d90b4fbf04d9c40ccfdff23ffc047994108148761c027977ddb2586d
MD5 926d5fc58332b2c63665db817c9aa5af
BLAKE2b-256 7529ca2629065055dfc8833fe48d5abbb4bf726bd5d57269f7a722eab97d9dcb

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page