mysql-snmp - MySQL-Server SNMP agent for Net-SNMP
mysql-snmp is a Net-SNMP (snmpd) agent that can be used to monitor a
MySQL server with SNMP.
These programs follow the usual GNU command line syntax, with long options
starting with two dashes (`-'). A summary of options is included below.
- -h, --help
- display help
- -v, --verbose
- be verbose about what you do
- -V, --version
- output version information and exit
- --daemon-pid=FILE
- write PID to FILE instead of /var/run/mysql-snmp.pid
- -u DBUSER
- use DBUSER as user to connect to mysql
- -p DBPASS
- use DBPASS as password to connect to mysql
- -h, --host HOST
- connect to mysql server HOST
- -P, --port PORT
- port to connect (default 3306)
- -c|--config FILE
- read MySQL configuration from FILE
- -m,--master
- adds SNMP counters for masters
- -s,--slave
- adds SNMP counters for slaves
- -b,--heartbeat DB.TABLE
- compute slave lag with the Percona Toolkit pt-heartbeat stamp table. (Note
that this option has no effect if --slave is not also specified.)
- --oid OID
- anchor the MIB to this root OID
- -i,--refresh
- refresh interval in seconds
You can specify the mysql connection parameters in a config file using my.cnf
format, like this:
[client]
host=dbserver
port=3306
user=monitor
password=secret
mysql-snmp was written by Brice Figureau
This manual page was written by Brice Figureau
<brice@daysofwonder.com>, for the Debian project (but may be used by
others).