Skip to content

service_type 7 && monitor all states !0#15

Merged
martialblog merged 1 commit intoNETWAYS:mainfrom
chri2:service_type=7
Oct 20, 2025
Merged

service_type 7 && monitor all states !0#15
martialblog merged 1 commit intoNETWAYS:mainfrom
chri2:service_type=7

Conversation

@chri2
Copy link
Contributor

@chri2 chri2 commented Oct 10, 2025

Service type 7 (program) collects the output of the service in a list of xml elements. Check if this list is empty, concatenate all list values or set 'no command output available' as message for non existing output.

Instead of only taking in account monitor_states 1 (Yes) and 2 (Init) take all monitor_states in account that are not 0 (Not). There is no reason not to include information about any monitor that is not disabled.

unittests for service_type 7 program/output for empty element and for the unlikely case of more than one list elements.

Service type 7 (program) collects the output of the service in a list of xml elements. Check if this list is empty, concatenate all list values or set 'no command output available' as message for non existing output.

Instead of only taking in account monitor_states 1 (Yes) and 2 (Init) take all monitor_states in account that are not 0 (Not). There is no reason not to include information about any monitor that is not disabled.

unittests for service_type 7 program/output for empty element and for the unlikely case of more than one list elements.
Copy link
Member

@martialblog martialblog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for the PR

@martialblog martialblog self-assigned this Oct 10, 2025
@martialblog martialblog merged commit 11a6e3d into NETWAYS:main Oct 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants