masterzen / mysql-snmp

Net-SNMP perl agent for monitoring MySQL servers
http://www.masterzen.fr/software-contributions/mysql-snmp-monitor-mysql-with-snmp/
GNU General Public License v2.0
67 stars 33 forks source link

slave_stopped = 1 when slave_io_running or slave_sql_running is not working #25

Open e-cortes opened 10 years ago

e-cortes commented 10 years ago

Slave_stopped should be enabled when slave_io_running OR slave_sql_running is 0 Change lines to: $status{'slave_running'} = (($newrow{'slave_sql_running'} eq 'Yes') && ($newrow{'slave_io_running'} eq 'Yes')) ? 1 : 0; $status{'slave_stopped'} = (($newrow{'slave_sql_running'} eq 'Yes') && ($newrow{'slave_io_running'} eq 'Yes')) ? 0 : 1;