Process management: stopped sends multiple reports.
I have tried to stop a service and ensure it's stopped / not started with the Rudder Technique.
Filled fields were:
Service name (as seen in chkconfig or systemctl, or Windows tasks): [ fail2ban ] This process should be: (o) Stopped This service should be set to start on boot: (o) No When stopping this process: (o) Stop gracefully (service xxx stop)
Process name (full path to the executable, to be check in 'ps' output) was not filled in because the UI did not complain about it not being set, but if that is the case, there appears to be a reporting error:
fail2ban [Unexpected] Process of fail2ban was stopped [Unexpected] Cannot check the status of fail2ban: the process name is not filed
After filling in the
Process name field, I got a 100% green compliance.
The Technique should either require the field to be filled or not send double reports.
#3 Updated by Benoît PECCATTE 10 months ago
- Priority changed from 66 to 64
This happens when the process range is filled, because the number of processes is counted via ps.
I think we should clearly state this in the help.
Moreover the "was stopped" message should not be unexpected
Was the "process range" field filled in your directive ?
#5 Updated by Félix DALLIDET 6 months ago
- Target version set to 4.1.13
The technique should not check if the process is active or not if the field name was not filled and should be reporting an error if:
-the name field is empty and "Running" or "Stopped" are selected.
If you do not fill the field name, "Don't change" option should be selected and the technique should report a compliant report.
I will put "Don't change" as the default option.
#7 Updated by Félix DALLIDET 6 months ago
- Status changed from In progress to Pending technical review
- Assignee changed from Félix DALLIDET to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1309
#9 Updated by Félix DALLIDET 6 months ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|c90641ca01177e090a1a9be96e0b2bfe4943905e.
Applied in changeset rudder-techniques|e29fe8ce09a2d89c315b20c69111ca6c3e360e92.
#11 Updated by Vincent MEMBRÉ 5 months ago
- Status changed from Pending release to Released
- Priority changed from 60 to 58