Agent output with section head multiple times

Dear folks,

premiere, my first created topic :slight_smile:

I am expanding an existing special agent and it’s checks and come around the question, if it’s possible to have the same section head inside the agent output multiple times. The reason why I would prefer to use it in this way is a loop over an output which delivers information I need to gather the second information.
My question is, how will the checks react if there are several sections with the same name, will checkmk merge all sections to parse it together or will I only get the first/last occurrence?

How the output will look like:

<<<section_1>>>
...
<<<section_2>>>
....
<<<section_1>>>
...
<<<section_2>>>
...

Hi,

from my point of view, yes! But I would like to prefer to have the section number in the load like this:

<<<section:sep(124)>>>
1|...
<<<section:sep(124)>>>
2|...
1|...

I think it makes it easier to parse.
Cheers,
Christian

1 Like