File tree 5 files changed +133
-184
lines changed
5 files changed +133
-184
lines changed Original file line number Diff line number Diff line change 4
4
PREAMBLE
5
5
========
6
6
7
- Mysql-snmp is a MySQL Net-SNMP agent written in Perl, and using the Net-Snmp
7
+ mysql-agent is a MySQL Net-SNMP agent written in Perl, and using the Net-Snmp
8
8
Perl bindings.
9
9
10
10
It connects to a mysql server and returns information to Net-SNMP when needed.
@@ -64,15 +64,26 @@ Configure mysql-snmp
64
64
Under debian, the daemon can be configured with /etc/default/mysql-snmp.
65
65
On all platform, the configuration is done with command line arguments:
66
66
67
- -u DBUSER use DBUSER as user to connect to mysql
68
- -p DBPASS use DBPASS as password to connect to mysql
69
- -h|--host HOST connect to mysql HOST
70
- -P|--port PORT port to connect to (default 3306)
67
+ -h|--host HOST connect to mysql HOST
68
+ -P|--port PORT port to connect to (default 3306)
69
+ -u|--user DBUSER use DBUSER as user to connect to mysql
70
+ -p|--passwordi DBPASS use DBPASS as password to connect to mysql
71
+ -c|--config FILE read MySQL configuration from FILE
72
+
71
73
-m|--master check master
72
74
-s|--slave check slave
73
75
--oid OID registering OID
74
76
-i|--refresh refresh interval in seconds
75
77
78
+ You can specify the mysql connection parameters in a config file using my.cnf format, like this:
79
+ For example:
80
+
81
+ [client]
82
+ host=dbserver
83
+ port=3306
84
+ user=monitor
85
+ password=secret
86
+
76
87
77
88
OPENNMS
78
89
=======
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [client]
2
+ host =localhost
3
+ # port=3306
4
+ user =monitor
5
+ password =secret
You can’t perform that action at this time.
0 commit comments