masakari-processmonitor in masakari-monitors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari-monitors |
New
|
Undecided
|
Unassigned |
Bug Description
Document Misleading
https:/
The sample of proce_list.yaml definitions can't be parsed by process monitor.
# nova-compute
process_name: /usr/local/
start_command: systemctl start nova-compute
pre_start_command:
post_start_command:
restart_command: systemctl restart nova-compute
pre_restart_
post_restart_
run_as_root: True
It will occure an error like this:
2022-01-14 17:49:36.712 3801583 ERROR masakarimonitor
2022-01-14 17:49:36.712 3801583 ERROR masakarimonitor
2022-01-14 17:49:36.712 3801583 ERROR masakarimonitor
2022-01-14 17:49:36.712 3801583 ERROR masakarimonitor
2022-01-14 17:49:36.712 3801583 ERROR masakarimonitor
2022-01-14 17:49:36.712 3801583 ERROR masakarimonitor
2022-01-14 17:49:36.712 3801583 ERROR masakarimonitor
The correct yaml config of process_list.yaml should be a array like below:
-
process_name: /usr/sbin/libvirtd
start_command: systemctl start libvirtd
pre_start_
post_
restart_command: systemctl restart libvirtd
pre_restart_
post_
run_as_root: True
-
process_name: /usr/bin/python3 /usr/bin/
start_command: systemctl start openstack-
pre_start_
post_
restart_command: systemctl restart openstack-
pre_restart_
post_
run_as_root: True