Giter Site home page Giter Site logo

py-monitoring-sys's Introduction

Python 3 Linux Monitoring System

Description

Python tool to monitoring linux system.

Features

Check configuration file before start

Check load average

Check memory usage

Check disk usage

Check NTP drift/sync

Check firewall change and specific rules

Check SSL Certificate expired

Stats disk I/O

Stats network I/O

Log checks and stats in file.

Alert when thresolds

Discovery disks and ntp configuration.

How to install

Git clone repository

Create a python 3 virtual environnment

Install python 3 requirements

How to configure

Configuration file example :

[Settings]
check_period=60
enable_log=True
enable_alert=True
logfile_name=std.log

[Load]
enable=True
warning_load1=2
critical_load1=4
warning_load5=4
critical_load5=6
warning_load15=6
critical_load15=8

[Disks]
enable=True
io_disk=True
warning=85
critical=95
disks=/,/var

[Memory]
enable=True
warning=90
critical=98

[Network]
enable=True
name=en0

[NTP]
enable=True
ntp_pool_server=3.pool.ntp.org

[Email]
Sender = [email protected]
Receiver = [email protected]
SMTPServer = smtp.example.com
SMTPPort = 587
SMTPUsername = your_username
SMTPPassword = your_password

Execute command below for daemon mode :

$ python main.py -c config.ini -d

Execute command below for console mode :

py-monitoring-sys's People

Contributors

hvad 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.