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

Reporting Slave I/O running #16

Open canepan opened 12 years ago

canepan commented 12 years ago

Is it possible to have the status of the "slave_io_running, beyond having 2 values for "slave_sql_running"? I obtained it changing the "slave_stopped" variable to report it, but I don't think it's the right way of doing it.

Now I have: $status{'slave_running'} = ($newrow{'slave_sql_running'} eq 'Yes') ? 1 : 0; $status{'slave_stopped'} = ($newrow{'slave_io_running'} eq 'Yes') ? 0 : 1;

masterzen commented 12 years ago

Maybe we need another set of slave_running/slave_stopped metric, for the io thread. I'll check how I can add this.