Git Product home page Git Product logo

servicemonitor's Introduction

Service Monitor - Version 1.3!

A command line toolkit written in Python for monitoring for external systems


Dependencies

Make sure you have these Python modules installed by running pip install -r requirements.txt

  • matplotlib - For plotting, of course
  • paramiko - For ssh connections

These libraries are also used, but should already be included in your Python installation:

  • os
  • re
  • time
  • sys
  • datetime
  • smtplib
  • configparser
  • requests (Included in requirements.txt for MacOS builds of python)




Configuration and Setup

Take a look at cfg/example_cfg.ini and create your own cfg.ini file in the same directory with matching fields.

Currently, there are two options that change the behaiviour of the entire toolkit:

  • graphs Show graphical data
  • verbose Print data to console in real time with severity (recommended)

Other configuration options are commented in the example file.




Scripts

Script 1: pingMonitor.py [FUNCTIONING]

Indefinitely pings domains/hosts within the domains_list in config and graphs the ping for each domain in real time. Upon a missing response, a notification email is sent. Emails, graphs and console outputs can be configured.


Script 2: resourceMonitor.py [FUNCTIONING]

Using the paramiko library to ssh and run resource monitoring commands on a host. This script goes on to graph the CPU and RAM usage in real time for the chosen host.


Script 3: websiteMonitor.py [FUNCTIONING]

Using the requests library, this script will check that the configured domains/hosts are serving some html content. Similar to pingMonitor, but will check for a web page response, as opposed to a ping from the name server. Has a configurable time for over what time period a downtime email should be repeated. Will also send a "Back up and running" email after detected downtime.



Roadmap

  • Enable specification of intervals in /cfg/cfg.ini
  • Looking at monitoring the run queue of a host
  • Open to suggestions!

servicemonitor's People

Contributors

nerfkidjcb avatar

Stargazers

 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.