• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

naparuba/check-linux-by-ssh: Shinken checks designed to be run without installin ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

naparuba/check-linux-by-ssh

开源软件地址(OpenSource Url):

https://github.com/naparuba/check-linux-by-ssh

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource 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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap