diff --git a/files/usr/lib/check_mk_agent/plugins/check_rosetta_heartbeat.sh b/files/usr/lib/check_mk_agent/plugins/check_rosetta_heartbeat.sh index dece893642de29ff1d319785178d8634807273b5..b8beffb2fcfc63e4e1aaf9ecbb28fbde071cf0ba 100755 --- a/files/usr/lib/check_mk_agent/plugins/check_rosetta_heartbeat.sh +++ b/files/usr/lib/check_mk_agent/plugins/check_rosetta_heartbeat.sh @@ -49,11 +49,13 @@ flock -n 9 || exit 1 if [[ "${RESULT}" =~ '<return>DataManagerServicesWSImpl</return>' ]]; then status=0 - statustext="Rosetta is running (got correct) answer from the heartbeat API)." + statustext="Rosetta is running (got correct answer from the heartbeat API)." + perf_values="rosetta_up=1" else status=2 statustext="Rosetta is NOT running." + perf_values="rosetta_up=0" fi echo "${status} ${itemname} ${perf_values} ${statustext}" -) 9>"${LOCKFILE}" \ No newline at end of file +) 9>"${LOCKFILE}"