check_mk icon indicating copy to clipboard operation
check_mk copied to clipboard

Only extracting last_run from last_run_summary.yaml

Open rrinco opened this issue 7 years ago • 2 comments

Hi! I've had to remove an extra space (between : and $) from those lines below on plugins/linux/mk_puppet to be able to extract values from last_run_summary.yaml:

before: echo "${OUT}" | grep -A8 '^resources: $' | sed 's/^/resources_/g' echo "${OUT}" | grep -A3 '^events: $' | sed 's/^/events_/g' after: echo "${OUT}" | grep -A8 '^resources:$' | sed 's/^/resources_/g' echo "${OUT}" | grep -A3 '^events:$' | sed 's/^/events_/g'

My puppet version is 4.7.0.

rrinco avatar Jul 10 '17 19:07 rrinco

And also had to change -A8 to -A9 to be able to extract all resources values.

rrinco avatar Jul 10 '17 19:07 rrinco

Hi rrinco,

I need to test it with different puppet versions before commit any change.

Thank you to report.

allangood avatar Jul 19 '17 07:07 allangood