Skip to content

Commit

Permalink
Merged PR 3667182: fix acms monit config file.
Browse files Browse the repository at this point in the history
a) Fix Sematics

b) Removed acms monit for now as by default that process do not run unless we have dsms certificate.
So this is dependent process. Since it does not run monit complains. For now disabling it until we find way to keep track of dependent process.

admin@str-s6000-on-2:/var/log$ docker exec -it acms bash
root@str-s6000-on-2:/# ps -aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.4  0.2  63884 20548 pts/0    Ss+  00:09   0:02 /usr/bin/python /usr/local/bin/supervisord
root         8  0.1  0.1  53648 16140 pts/0    S    00:09   0:00 python /usr/bin/supervisor-proc-exit-listener --container-name acms
root         9  0.0  0.0  18372  3044 pts/0    S    00:09   0:00 bash /usr/bin/start.sh
root        10  0.0  0.1  30416  8428 pts/0    S    00:09   0:00 python /usr/bin/cert_converter.py
root        15  0.0  0.0 260768  3620 pts/0    Sl   00:09   0:00 /usr/sbin/rsyslogd -n
root        24  0.0  0.1  52192 12112 pts/0    S    00:09   0:00 python /usr/bin/dSMS_endpoint_modifier.py
root        41  0.0  0.0   4528   736 pts/0    S    00:16   0:00 sleep 60
root        42  2.0  0.0  18500  3368 pts/1    Ss   00:16   0:00 bash
root        51  0.0  0.0  34400  2896 pts/1    R+   00:16   0:00 ps -aux

Before:
Program 'acms|dSMS_endpoint_modifier'
  status                       Status ok
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  last exit value              1
  last output                  '/usr/bin/dSMS_endpoint_modifier.py' is not running.
  data collected               Fri, 16 Oct 2020 00:16:08

Program 'acms|cert_converter'
  status                       Status ok
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  last exit value              1
  last output                  '/usr/bin/cert_converter.py' is not running.
  data collected               Fri, 16 Oct 2020 00:16:08

After

Program 'acms|dSMS_endpoint_modifier'
  status                       Status ok
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  last exit value              0
  last output                  -
  data collected               Fri, 16 Oct 2020 00:58:55

Program 'acms|cert_converter'
  status                       Status ok
  monitoring status            Monitored
  monitoring mode              active
  on reboot                    start
  last exit value              0
  last output                  -
  data collected               Fri, 16 Oct 2020 00:58:56
  • Loading branch information
abdosi authored and daall committed Apr 15, 2021
1 parent 8e927a4 commit 4c01793
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dockers/docker-acms/base_image_files/monit_acms
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
## dSMS_endpoint_modifier
## cert_converter
###############################################################################
check program acms|acms with path "/usr/bin/process_checker acms /usr/bin/acms"
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles
#check program acms|acms with path "/usr/bin/process_checker acms /usr/bin/acms"
# if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles

check program acms|dSMS_endpoint_modifier with path "/usr/bin/process_checker acms python /usr/bin/dSMS_endpoint_modifier.py"
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles

check program acms|cert_converter with path "/usr/bin/process_checker acms python /usr/bin/cert_converter.py"
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles

0 comments on commit 4c01793

Please sign in to comment.