Skip to content

Commit

Permalink
[Monit] Use the string '/usr/bin/syncd' in Monit configuration files …
Browse files Browse the repository at this point in the history
…to match the syncd process.

Signed-off-by: Yong Zhao <[email protected]>
  • Loading branch information
yozhao101 committed Sep 18, 2020
1 parent 9ecb61d commit e4c0824
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion files/image_config/monit/process_checker
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def check_process_existence(container_name, process_name, process_cmdline):
if process.name() == "process_checker":
continue

if ((process_name == process.name() or process_cmdline in ' '.join(process.cmdline()))
if ((process_name == process.name() or (' '.join(process.cmdline())).startswith(process_cmdline))
and process.status() in ["running", "sleeping"]):
is_running = True
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
## process list:
## syncd
###############################################################################
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd --diag"
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd"
if status != 0 for 5 times within 5 cycles then alert
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## syncd
## dsserve
###############################################################################
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd --diag"
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd"
if status != 0 for 5 times within 5 cycles then alert

check program syncd|dsserve with path "/usr/bin/process_checker syncd dsserve /usr/bin/dsserve /usr/bin/syncd"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
## process list:
## syncd
###############################################################################
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd --diag"
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd"
if status != 0 for 5 times within 5 cycles then alert
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
## process list:
## syncd
###############################################################################
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd --diag"
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd"
if status != 0 for 5 times within 5 cycles then alert
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
## process list:
## syncd
###############################################################################
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd --diag"
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd"
if status != 0 for 5 times within 5 cycles then alert
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
## process list:
## syncd
###############################################################################
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd --diag"
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd"
if status != 0 for 5 times within 5 cycles then alert
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
## process list:
## syncd
###############################################################################
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd --diag"
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd"
if status != 0 for 5 times within 5 cycles then alert
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
## process list:
## syncd
###############################################################################
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd --diag"
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd"
if status != 0 for 5 times within 5 cycles then alert
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## syncd
## dsserve
###############################################################################
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd --diag"
check program syncd|syncd with path "/usr/bin/process_checker syncd syncd /usr/bin/syncd"
if status != 0 for 5 times within 5 cycles then alert

check program syncd|dsserve with path "/usr/bin/process_checker syncd dsserve /usr/bin/dsserve /usr/bin/syncd"
Expand Down

0 comments on commit e4c0824

Please sign in to comment.