Skip to main content

Current Builds

monitor.py

Packaged !!

monitor-py has been packaged and is available on PyPI via pip install monitor-py

v0.1 release 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 :

  • init script to setup directories and launch config script
  • script to manage config options
  • packaging of module #This actually happened in v0.1!
  • 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.

Release files for monitor-py 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for monitor-py 0.1.2
File Size Uploaded
monitor-py-0.1.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for monitor-py 0.1.2
File Interpreter ABI Platform
monitor_py-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 21.5 kB

Release files / monitor-py-0.1.2.tar.gz

Download URL monitor-py-0.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5290dfe20e195c571b7c3ff5539f410435d99f7db4495dee72df222368043a37
BLAKE2b-256 checksum
How to use checksums
62c90668cb42d2e48255fb76cd23db0a602fcd6b1b33494d010d1b10e4ead9a7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / monitor_py-0.1.2-py3-none-any.whl

Download URL monitor_py-0.1.2-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f4307f3c9c082d495a742276c82a7214a3bee22da3b044cbcbae12644eb98f7
BLAKE2b-256 checksum
How to use checksums
641bbd99509a54013ead08f547e4eefb4e46ffcdf065766ad65524a82fda11a9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page