Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Hi, great plugin!
Forgot though to add the warning and critical thresholds in the performance output when thresholds are being used :
if [[ ${delayinfo} -ge ${crit_delay} ]] then echo “CRITICAL: Slave is ${delayinfo} seconds behind Master | delay=${delayinfo}s;”; exit ${STATE_CRITICAL} elif [[ ${delayinfo} -ge ${warn_delay} ]] then echo “WARNING: Slave is ${delayinfo} seconds behind Master | delay=${delayinfo}s;”; exit ${STATE_WARNING} else echo “OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s;”; exit
==>
if [[ ${delayinfo} -ge ${crit_delay} ]] then echo “CRITICAL: Slave is ${delayinfo} seconds behind Master | delay=${delayinfo}s;$warn_delay;$crit_delay;;”; exit ${STATE_CRITICAL} elif [[ ${delayinfo} -ge ${warn_delay} ]] then echo “WARNING: Slave is ${delayinfo} seconds behind Master | delay=${delayinfo}s;$warn_delay;$crit_delay;;”; exit ${STATE_WARNING} else echo “OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s;$warn_delay;$crit_delay;;”; exit