Skip to content

ClouDevops101/Shinken_SSH_Plugins

Repository files navigation

Shinken_SSH_Plugins (Documentation in Progress)

I am a codementor Donate

Typical use case

In a Cloud environment you don't have the configuration of the target machine before deploying it, so monitoring the machine over ssh it's a best compromise that handle this problem, shinken is a full open source project written in python fron nagios core, and with this couple of plugins you have the heavy artillery to deploy and supervise your AWS / AZURE / GCP host from on-premise wether you have an hybrid cloud or a full public cloud

Common option :

'-H', '--hostname',
                  dest="hostname", help='Hostname to connect to')
parser.add_option('-p', '--port',
                  dest="port", type="int", default=22,
                  help='SSH port to connect to. Default : 22')
parser.add_option('-i', '--ssh-key',
                  dest="ssh_key_file",
                  help='SSH key file to use. By default will take ~/.ssh/id_rsa.')
parser.add_option('-u', '--user',
                  dest="user", help='remote use to use. By default shinken.')
parser.add_option('-P', '--passphrase',

'-H', '--hostname' : Hostname to connect to

'-p', '--port' : the host ssh port default to 22

'-i', '--ssh-key' : required ssh key file

'-u', '--user' : remote use to use. By default shinken

'-P', '--passphrase' : the passphrase default to null

Check cpu stats

check_cpu_stats_by_ssh.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Marathon services

This programme check the service runing uder marathon if it's in running state or in failed stat

Option :

'-C', '--container : the service or container to check

'-M' : The name of the dcos master

check_marathon_services.py	-C kafka -M master001.leader  -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check ntp sync

check_ntp_sync_by_ssh.py	  -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check ssh proxy

check_ssh_proxy_check.py	 -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check test

check_test.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check disks

check_disks_by_ssh.py	-H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check mdadm

check_mdadm_by_ssh.py	-H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check processes

check_processes_by_ssh.py  -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Systemd services

This programme check the Linux service controled by Systemd

Option :

'-S', '--service', the systemd service to check

check_systemd_services.py  -S kafka -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Uptime

check_uptime_by_ssh.py  -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Disks stats

check_disks_stats_by_ssh.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Memory

check_memory_by_ssh.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Readonly filesystem

check_ro_filesystem_by_ssh.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check if a Systemd services is active

check_systemd_services_isactive.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

schecks

schecks.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Kernel stats

check_kernel_stats_by_ssh.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Net stats

check_net_stats_by_ssh.py	 -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Yum Security Updates

check_sec_updates.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check if a Systemd services is enabled

check_systemd_services_isenabled.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Load Average

check_load_average_by_ssh.py	 -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check NFS Stats

check_nfs_stats_by_ssh.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check SSH connexion

check_ssh_connexion.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]

Check Tcp States

check_tcp_states_by_ssh.py -H [Hostname]  -p [Port] -i [SSH Key File] -u [User] -P [Passphrase]