Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Stop producing invalid performance data. #38

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions nagios/bin/pmp-check-mysql-status
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ main() {
if [ "${OPT_TRAN}" = 'pct' ]; then
PERFDATA_MAX=100
fi
PERFDATA="${OPT_VAR1}${OPT_OPER}${OPT_VAR2}=${LEVEL};${OPT_WARN};${OPT_CRIT};0;${PERFDATA_MAX}"
NOTE="$NOTE | $PERFDATA"
if [ "${OPT_TRAN}" != 'str' ]; then
PERFDATA="${OPT_VAR1}${OPT_OPER}${OPT_VAR2}=${LEVEL};${OPT_WARN};${OPT_CRIT};0;${PERFDATA_MAX}"
NOTE="$NOTE | $PERFDATA"
fi
fi
else
NOTE="UNK could not get MySQL status/variables."
Expand Down