root@m50-aws-openvpn: /etc/monit/conf.d # monit -vI Adding host allow 'localhost' Skipping redundant host 'localhost' Skipping redundant host 'localhost' Skipping redundant host 'localhost' Skipping redundant host 'localhost' Skipping redundant host 'localhost' Adding host allow 'netman-ng-int.example.net' Skipping redundant host 'netman-ng-int.example.net' Skipping redundant host 'netman-ng-int.example.net' Adding credentials for user 'monit' Adding net allow '10.125.75.90' Runtime constants: Control file = /etc/monitrc Log file = syslog Pid file = /var/run/monit.pid Id file = /var/.monit.id State file = /var/.monit.state Debug = True Log = True Use syslog = True Is Daemon = True Use process engine = True Poll time = 31 seconds with start delay 20 seconds Expect buffer = 256 bytes Event queue = base directory /var/spool/monit with 1000 slots M/Monit(s) = https://netman-ng.example.net:8443/collector with timeout 5 seconds using credentials Mail server(s) = localhost:25 with timeout 30 seconds Mail from = (not defined) Mail subject = (not defined) Mail message = (not defined) Start monit httpd = True httpd bind address = 10.125.75.90 httpd portnumber = 2812 httpd signature = True Use ssl encryption = False httpd auth. style = Basic Authentication and Host/Net allow list The service list contains the following entries: Process Name = sshd Group = system Pid file = /var/run/sshd.pid Monitoring mode = active Start program = '/etc/init.d/ssh start' timeout 30 second(s) Stop program = '/etc/init.d/ssh stop' timeout 30 second(s) Existence = if does not exist then restart Depends on Service = sshd.chksum Port = if failed [localhost:35 [SSH via TCP] with timeout 5 seconds] then restart Timeout = If restarted 2 times within 3 cycle(s) then alert File Name = sshd.chksum Path = /usr/sbin/sshd Monitoring mode = active Existence = if does not exist then restart Checksum = if failed 9dca03f9bfda522998b965f53ebec0266560bb28(SHA1) then alert Process Name = snmpd Group = system Pid file = /var/run/snmpd.pid Monitoring mode = active Start program = '/etc/init.d/snmpd start' timeout 30 second(s) Stop program = '/etc/init.d/snmpd stop' timeout 30 second(s) Existence = if does not exist then restart Port = if failed [localhost:161 [DEFAULT via UDP] with timeout 5 seconds] then restart Timeout = If restarted 2 times within 3 cycle(s) then alert Process Name = salt-minion Group = system Pid file = /var/run/salt-minion.pid Monitoring mode = active Start program = '/etc/init.d/salt-minion start' timeout 30 second(s) Stop program = '/etc/init.d/salt-minion stop' timeout 30 second(s) Existence = if does not exist then restart Timeout = If restarted 2 times within 3 cycle(s) then alert Process Name = syslogd Group = system Pid file = /var/run/rsyslogd.pid Monitoring mode = active Start program = '/etc/init.d/rsyslog start' timeout 30 second(s) Stop program = '/etc/init.d/rsyslog stop' timeout 30 second(s) Existence = if does not exist then restart Timeout = If restarted 2 times within 3 cycle(s) then alert System Name = m50-aws-openvpn Monitoring mode = active Load avg. (5min) = if greater than 3.0 for 2 cycles then alert Filesystem Name = rootfs Path = / Monitoring mode = active Existence = if does not exist then restart Filesystem flags = if changed then alert Space usage limit = if greater than 90.0% then alert Filesystem Name = varfs Path = /var Monitoring mode = active Existence = if does not exist then restart Filesystem flags = if changed then alert Space usage limit = if greater than 90.0% then alert Filesystem Name = homefs Path = /home Monitoring mode = active Existence = if does not exist then restart Filesystem flags = if changed then alert Space usage limit = if greater than 90.0% then alert Process Name = openvpn Group = system Pid file = /var/run/openvpn.client.pid Monitoring mode = active Start program = '/etc/init.d/openvpn start' timeout 30 second(s) Stop program = '/etc/init.d/openvpn stop' timeout 30 second(s) Existence = if does not exist then restart Depends on Service = openvpn.chksum Timeout = If restarted 2 times within 3 cycle(s) then alert File Name = openvpn.chksum Path = /usr/sbin/openvpn Monitoring mode = active Existence = if does not exist then restart Checksum = if failed d2d7a227501fb7d42105f61cb2f72339c6ef1aae(SHA1) then alert Process Name = ntpd Group = system Pid file = /var/run/ntpd.pid Monitoring mode = active Start program = '/etc/init.d/ntp start' timeout 30 second(s) Stop program = '/etc/init.d/ntp stop' timeout 30 second(s) Existence = if does not exist then restart Port = if failed [127.0.0.1:123 [DEFAULT via UDP] with timeout 5 seconds] then alert Timeout = If restarted 2 times within 3 cycle(s) then unmonitor Process Name = exim4 Group = mail Pid file = /var/run/exim4/exim.pid Monitoring mode = active Start program = '/etc/init.d/exim4 start' timeout 30 second(s) Stop program = '/etc/init.d/exim4 stop' timeout 30 second(s) Existence = if does not exist then restart Port = if failed [localhost:25 [SMTP via TCP] with timeout 15 seconds] then restart Timeout = If restarted 2 times within 3 cycle(s) then alert Process Name = cron Group = system Pid file = /var/run/crond.pid Monitoring mode = active Start program = '/etc/init.d/cron start' timeout 30 second(s) Stop program = '/etc/init.d/cron stop' timeout 30 second(s) Existence = if does not exist then restart Timeout = If restarted 2 times within 3 cycle(s) then alert ------------------------------------------------------------------------------- pidfile '/var/run/monit.pid' does not exist Starting Monit 5.11 daemon with http interface at [10.125.75.90:2812] Monit start delay set -- pause for 20s Starting Monit HTTP server at [10.125.75.90:2812] Monit HTTP server started 'm50-aws-openvpn' Monit started M/Monit: event message sent to https://netman-ng.example.net:8443/collector 'sshd.chksum' file exists M/Monit heartbeat started 'sshd.chksum' is a regular file or socket 'sshd.chksum' checksum computed for /usr/sbin/sshd 'sshd.chksum' checksum is valid 'snmpd' process is running with pid 884 'snmpd' zombie check succeeded [status_flag=0000] 'snmpd' succeeded connecting to INET[localhost:161] via UDP M/Monit: status message sent to https://netman-ng.example.net:8443/collector 'snmpd' succeeded testing protocol [DEFAULT] at INET[localhost:161] via UDP 'snmpd' connection succeeded to INET[localhost:161] via UDP 'salt-minion' process is running with pid 7976 'salt-minion' zombie check succeeded [status_flag=0000] 'syslogd' process is running with pid 504 'syslogd' zombie check succeeded [status_flag=0000] 'm50-aws-openvpn' loadavg(5min) check succeeded [current loadavg(5min)=0.0] 'rootfs' succeeded getting filesystem statistics for '/' 'rootfs' space usage test succeeded [current space usage=37.2%] 'varfs' succeeded getting filesystem statistics for '/var' 'varfs' space usage test succeeded [current space usage=37.2%] 'homefs' succeeded getting filesystem statistics for '/home' 'homefs' space usage test succeeded [current space usage=37.2%] 'openvpn.chksum' file exists 'openvpn.chksum' is a regular file or socket 'openvpn.chksum' checksum computed for /usr/sbin/openvpn 'openvpn.chksum' checksum is valid 'ntpd' process is running with pid 7397 'ntpd' zombie check succeeded [status_flag=0000] 'ntpd' succeeded connecting to INET[127.0.0.1:123] via UDP 'ntpd' succeeded testing protocol [DEFAULT] at INET[127.0.0.1:123] via UDP 'ntpd' connection succeeded to INET[127.0.0.1:123] via UDP 'exim4' process is running with pid 25030 'exim4' zombie check succeeded [status_flag=0000] 'exim4' succeeded connecting to INET[localhost:25] via TCP 'exim4' succeeded testing protocol [SMTP] at INET[localhost:25] via TCP 'exim4' connection succeeded to INET[localhost:25] via TCP 'cron' process is running with pid 558 'cron' zombie check succeeded [status_flag=0000] 'sshd' process is running with pid 889 'sshd' zombie check succeeded [status_flag=0000] 'sshd' succeeded connecting to INET[localhost:35] via TCP 'sshd' succeeded testing protocol [SSH] at INET[localhost:35] via TCP 'sshd' connection succeeded to INET[localhost:35] via TCP 'openvpn' process is running with pid 964 'openvpn' zombie check succeeded [status_flag=0000] M/Monit: status message sent to https://netman-ng.example.net:8443/collector 'sshd.chksum' file exists 'sshd.chksum' is a regular file or socket 'sshd.chksum' checksum computed for /usr/sbin/sshd 'sshd.chksum' checksum is valid 'snmpd' process is running with pid 884 'snmpd' zombie check succeeded [status_flag=0000] 'snmpd' succeeded connecting to INET[localhost:161] via UDP 'snmpd' succeeded testing protocol [DEFAULT] at INET[localhost:161] via UDP 'snmpd' connection succeeded to INET[localhost:161] via UDP 'salt-minion' process is running with pid 7976 'salt-minion' zombie check succeeded [status_flag=0000] 'syslogd' process is running with pid 504 'syslogd' zombie check succeeded [status_flag=0000] 'm50-aws-openvpn' loadavg(5min) check succeeded [current loadavg(5min)=0.0] 'rootfs' succeeded getting filesystem statistics for '/' 'rootfs' space usage test succeeded [current space usage=37.2%] 'varfs' succeeded getting filesystem statistics for '/var' 'varfs' space usage test succeeded [current space usage=37.2%] 'homefs' succeeded getting filesystem statistics for '/home' 'homefs' space usage test succeeded [current space usage=37.2%] 'openvpn.chksum' file exists 'openvpn.chksum' is a regular file or socket 'openvpn.chksum' checksum computed for /usr/sbin/openvpn 'openvpn.chksum' checksum is valid 'ntpd' process is running with pid 7397 'ntpd' zombie check succeeded [status_flag=0000] 'ntpd' succeeded connecting to INET[127.0.0.1:123] via UDP 'ntpd' succeeded testing protocol [DEFAULT] at INET[127.0.0.1:123] via UDP 'ntpd' connection succeeded to INET[127.0.0.1:123] via UDP 'exim4' process is running with pid 25030 'exim4' zombie check succeeded [status_flag=0000] 'exim4' succeeded connecting to INET[localhost:25] via TCP 'exim4' succeeded testing protocol [SMTP] at INET[localhost:25] via TCP 'exim4' connection succeeded to INET[localhost:25] via TCP 'cron' process is running with pid 558 'cron' zombie check succeeded [status_flag=0000] 'sshd' process is running with pid 889 'sshd' zombie check succeeded [status_flag=0000] 'sshd' succeeded connecting to INET[localhost:35] via TCP 'sshd' succeeded testing protocol [SSH] at INET[localhost:35] via TCP 'sshd' connection succeeded to INET[localhost:35] via TCP 'openvpn' process is running with pid 964 'openvpn' zombie check succeeded [status_flag=0000] ^CShutting down Monit HTTP server Monit HTTP server stopped M/Monit heartbeat stopped Monit daemon with pid [22923] killed 'm50-aws-openvpn' Monit stopped M/Monit: event message sent to https://netman-ng.example.net:8443/collector root@m50-aws-openvpn: /etc/monit/conf.d #