|
11 | 11 | my $db_schema = 'zabbix';
|
12 | 12 | my $dsn = 'DBI:mysql:'.$db_schema.':mysql_socket=/var/lib/mysql/mysql.sock';
|
13 | 13 | my $db_user_name = 'zabbix';
|
14 |
| -my $db_password = 'zabbix'; |
15 |
| -my $tables = { 'history' => { 'period' => 'day', 'keep_history' => '30'}, |
16 |
| - 'history_log' => { 'period' => 'day', 'keep_history' => '30'}, |
17 |
| - 'history_str' => { 'period' => 'day', 'keep_history' => '30'}, |
18 |
| - 'history_text' => { 'period' => 'day', 'keep_history' => '30'}, |
19 |
| - 'history_uint' => { 'period' => 'day', 'keep_history' => '30'}, |
20 |
| - 'trends' => { 'period' => 'month', 'keep_history' => '2'}, |
21 |
| - 'trends_uint' => { 'period' => 'month', 'keep_history' => '2'}, |
| 14 | +my $db_password = 'password'; |
| 15 | +my $tables = { 'history' => { 'period' => 'day', 'keep_history' => '60'}, |
| 16 | + 'history_log' => { 'period' => 'day', 'keep_history' => '60'}, |
| 17 | + 'history_str' => { 'period' => 'day', 'keep_history' => '60'}, |
| 18 | + 'history_text' => { 'period' => 'day', 'keep_history' => '60'}, |
| 19 | + 'history_uint' => { 'period' => 'day', 'keep_history' => '60'}, |
| 20 | + 'trends' => { 'period' => 'month', 'keep_history' => '12'}, |
| 21 | + 'trends_uint' => { 'period' => 'month', 'keep_history' => '12'}, |
22 | 22 |
|
23 | 23 | # comment next 5 lines if you partition zabbix database starting from 2.2
|
24 | 24 | # they usually used for zabbix database before 2.2
|
|
0 commit comments