check_mk
check_mk copied to clipboard
Only extracting last_run from last_run_summary.yaml
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.
And also had to change -A8 to -A9 to be able to extract all resources values.
Hi rrinco,
I need to test it with different puppet versions before commit any change.
Thank you to report.