Giter Club home page Giter Club logo

server-health-check's Introduction

Server Health Check

Install

## Install nmap
$ sudo apt update
$ sudo apt install nmap

## Install required python packages
$ pip3 install -r requirements.txt

Usage

## Help message
$ ./health-check.py -h

usage: health-check.py [-h] [-f FILE] [--service s1,s2,...] [--scan-popular]

A script for health checking of machines

optional arguments:
  -h, --help           show this help message and exit
  -f FILE              specify path of config file (default: checklist.yaml)
  --service s1,s2,...  check specific services in the config
  --scan-popular       also scan the most popular 1000 ports

Check for DNS lookup, IP & host pinging, port status

## Scan specific services with a config specified
$ ./health-check.py -f mylist.yaml --service=webserver,dnsserver

## Scan mailserver with top 1000 ports (defined by nmap)
$ ./health-check.py --service=mailserver --scan-popular

Example config

webserver:
    Public:
        hostname: web1.example.com
        IP: 93.184.216.34
        valid-port: 22
        block-port: 80-88,8080

dnsserver:
    Public:
        hostname: dns1.example.com
        IP: 93.184.216.33
        valid-port: 53
        block-port: 80
    Private:
        hostname: dns1.priv.example.com
        IP: 10.112.216.33
        valid-port: 22,53

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.