Table of Contents
Monit
Feb 2017
Introduction
Monit starts and stops all of the VSPP services and processes. The three main Monit functions are:
monit summary monit start monit stop
Monit Summary
Using monit summary gives information on the status of monit controlled services:
monit summary
[root@aio103 ~]# monit summary The Monit daemon 5.3.2 uptime: 1h 19m Remote Host 'java' Online with all services Remote Host 'udp-tftpserver' Online with all services Process 'syspu-ui' Running Process 'go-syspu' Running Process 'Streamer' Running Process 'Storage' Running Process 'snmpd' Running Process 'service_server' Running Process 'riemann' Running Process 'postgresql9' Running Process 'ntpd' Running Process 'named' Running Process 'mon_agent' Running Process 'Manager' Running Process 'httpd' Running Process 'memcached' Running Process 'carbon-cache' Running Process 'statsd' Running System 'system_aio103' Running
From what I have see the status could be Not monitored, Initializing, Running. There may be others (stopping?)
Monit Start
Using monit start will start specified services, for this example we will start them all.
monit start all
Once you have run monit start you will have to use monit summary to check the status. If you do a monit summary very quickly you may see the status Initializing as opposed to Running
[root@aio103 ~]# monit summary The Monit daemon 5.3.2 uptime: 1h 19m Remote Host 'java' Online with all services Remote Host 'udp-tftpserver' Online with all services Process 'syspu-ui' Running Process 'go-syspu' Running Process 'Streamer' Running Process 'Storage' Running Process 'snmpd' Running Process 'service_server' Running Process 'riemann' Running Process 'postgresql9' Running Process 'ntpd' Running Process 'named' Running Process 'mon_agent' Running Process 'Manager' Running Process 'httpd' Running Process 'memcached' Running Process 'carbon-cache' Running Process 'statsd' Running System 'system_aio103' Running
Monit Stop
Using monit stop will stop specified services, for this example we will start them all.
monit stop all
Once you have run monit stop you will have to use monit summary to check the status.