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 counters do not seem to be working #17

Open mgmonteleone opened 12 years ago

mgmonteleone commented 12 years ago

Server version: 5.5.8-log MySQL Community Server (GPL) CentOS release 5.5 (Final) (64Bit)

All installed fine...

But noticed that the Slave counters do not return accurate data.

snmpwalk -m MYSQL-SERVER-MIB -v 2c -c public localhost enterprises.20267 |grep Slave

MYSQL-SERVER-MIB::mySlaveRunning.0 = Gauge32: 0 MYSQL-SERVER-MIB::mySlaveStopped.0 = Gauge32: 0 MYSQL-SERVER-MIB::mySlaveRetriedTransactions.0 = Counter32: 0 MYSQL-SERVER-MIB::mySlaveLag.0 = Gauge32: 0 MYSQL-SERVER-MIB::mySlaveOpenTempTables.0 = Gauge32: 0

Same data if slave is running or not running....

Is this a known issue?

masterzen commented 12 years ago

Do you have started mysql-snmp with --slave? Otherwise mysql-snmp doesn't take slave information.