Coder Social home page Coder Social logo

kurtrottmann / check-linux-by-ssh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from naparuba/check-linux-by-ssh

0.0 1.0 1.0 131 KB

Shinken checks designed to be run without installing something on the distant linux (aside ssh keys of course!)

License: MIT License

Python 100.00%

check-linux-by-ssh's Introduction

io-shinken-checks-linux

Specifics checks for linux based on pure ssh polling, with nothing to install on the target

Dependencies

  • python
  • python-paramiko

Connexion

This check is for checking the SSH connexion to the distant server.

$ check_ssh_connexion.py -H localhost -u shinken

Memory

The Memory check is done by the check_memory_by_ssh.py script.

$ check_memory_by_ssh.py -H localhost -u shinken -w "75%" -c "90%"

Uptime

The Uptime check is done by the check_uptime_by_ssh.py script. It only take a -c option, the number of second : below it's critical, higher it's ok. By default it's 3600s.

$ check_uptime_by_ssh.py -H localhost -u shinken -c 3600

NTP Sync

The NTP sync check is done by the check_ntp_sync_by_ssh.py script. It will go in warning if no ntp server is the reference, and -w/-c options will set the maximum delay values.

$ check_ntp_sync_by_ssh.py -H localhost -u shinken -w 10 -c 60

Processes (Memory)

Look at the memory of a process, or a pack of processes. It's done by the check_processes_by_ssh script

Look that the sum of all chrome processes are not over 700 or 800MB $check_processes_by_ssh.py -H localhost -u shinken -C chrome -w 700 -c 800 -S

Look for each chrome processe if they are not over 100 or 200MB $check_processes_by_ssh.py -H localhost -u shinken -C chrome -w 100 -c 200

Look for all process, and warn if one is over 100/200MB $check_processes_by_ssh.py -H localhost -u shinken -w 100 -c 200

Disks

The Disks check is done by the check_disks_by_ssh.py script.

$ check_disks_by_ssh.py -H localhost -u shinken -w "75%" -c "90%"

Load average

The load average values are checks with the check_load_average_by_ssh script. There are two modes : strict values, and cpu based values. 'default : strict)

Will warn if the load average is highen than 1 or 2 $ check_load_average_by_ssh.py -H localhost -u shinken -w 1,1,1 -c 2,2,2

Will warn if the load average is highen than 1nb_cpus or 2nb_cpus $ check_load_average_by_ssh.py -H localhost -u shinken -w 1,1,1 -c 2,2,2 -C

CPU activities

The cpu states are checks by the check_cpu_stats.py script. There is no warning or critical values need here.

$ check_cpu_stats.py -H localhost -u shinken

DISKS activities

The disks I/O are checked by the check_disks_stats_by_ssh.py. No warning nor critical values need.

$ check_disks_stats_by_ssh.py -H localhost -u shinken

TCP states

The TCP states are checked by the check_tcp_states_by_ssh.py plugin. No warning nor critical values need.

$ check_tcp_states_by_ssh.py - H localhost -u shinken

KERNEL stats

The KERNEL states are checked by the check_kernel_stats_by_ssh.py plugin. No warning nor critical values need.

$ check_kernel_stats_by_ssh.py - H localhost -u shinken

NFS stats

The NFS states are checked by the check_nfs_stats_by_ssh.py plugin. No warning nor critical values need.

$ check_nfs_stats_by_ssh.py - H localhost -u shinken

Interface activities

The network activity is checked by the check_net_stats_by_ssh.py plugin. No need for warning nor critical.

$ check_net_stats_by_ssh.py - H localhost -u shinken

Read Only file systems

The file system mount are checks. If a FS is in read only, it will raise a critical error.

$ check_ro_filesystem_by_ssh.py - H localhost -u shinken

check-linux-by-ssh's People

Contributors

alexclifford avatar arthru avatar ceso avatar david-guenault avatar dessaiimrane avatar dexter-xiong avatar dgilm avatar dguenault avatar lermit avatar marc3001 avatar naparuba avatar robinfdx avatar valdm avatar yanc0 avatar

Watchers

 avatar

Forkers

mulugruntz

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.