feat: run_probes.py now allows to select probes to run with optional argument
Description
The new -p
or --probes
list argument for run_probes.py
specifies which probes to run from the config. If not specified, all probes will be run.
example usage: /home/monitoring/.local/bin/run_probes -p check_nginx_status check_mail_certificate
How to test
Install on server with pip, create /etc/run_probes_cfg.yaml
config and test with and without argument.
Author's checklist
-
I have followed the contribution guidelines -
This MR has been tested or does not change functionality -
I have added relevant merge request dependencies (if this MR has any) -
I have added the correct labels -
I have assigned reviewers (if any are relevant) -
I have edited the documentation (if the changes require it) or I have noted the need for the change if I do not have access to the documentation -
I have marked all introduced BREAKING CHANGES or necessary DEPLOYMENT NOTES in the commit message(s)
Reviewer's checklist
-
This MR has been tested or does not change functionality -
This MR has correct commit message format
Other information
Related issues
Edited by Jan Pavlíček