1 --- percona-monitoring-plugins-1.1.3/cacti/scripts/ss_get_by_ssh.php~ 2014-03-22 23:22:46.000000000 +0200
2 +++ percona-monitoring-plugins-1.1.3/cacti/scripts/ss_get_by_ssh.php 2014-03-22 23:23:34.063515968 +0200
4 # ============================================================================
5 $ssh_user = 'cacti'; # SSH username
6 $ssh_port = 22; # SSH port
7 -$ssh_iden = '-i /usr/share/cacti/.ssh/id_rsa'; # SSH identity
8 +$ssh_iden = '-i /var/lib/cacti/.ssh/id_rsa'; # SSH identity
9 $ssh_tout = 10; # SSH connect timeout
10 # You can enable SSH remote command timeout by prepending 'timeout $cmd_tout'
11 # to the actual command, i.e. `ssh HOST timeout 10 CMD`
13 $remote_cmd_tout = FALSE;
14 $cmd_tout = 10; # Command exec timeout (ssh itself or local cmd)
15 $nc_cmd = 'nc -C'; # How to invoke netcat. NOTE, for Debian set 'nc -q1'.
16 -$cache_dir = '/tmp'; # If set, this uses caching to avoid multiple calls.
17 +$cache_dir = '/var/cache/cacti/mysql_stats'; # If set, this uses caching to avoid multiple calls.
18 $poll_time = 300; # Adjust to match your polling interval.
19 $timezone = null; # If not set, uses the system default. Example: "UTC"
20 $use_ss = FALSE; # Whether to use the script server or not
21 --- percona-monitoring-plugins-1.1.3/cacti/scripts/ss_get_mysql_stats.php~ 2014-03-22 23:22:46.000000000 +0200
22 +++ percona-monitoring-plugins-1.1.3/cacti/scripts/ss_get_mysql_stats.php 2014-03-22 23:24:11.981851325 +0200
24 $heartbeat_server_id = 0; # Server id to associate with a heartbeat. Leave 0 if no preference.
25 $heartbeat_table = 'percona.heartbeat'; # db.tbl.
27 -$cache_dir = '/tmp'; # If set, this uses caching to avoid multiple calls.
28 +$cache_dir = '/var/cache/cacti/mysql_stats'; # If set, this uses caching to avoid multiple calls.
29 $poll_time = 300; # Adjust to match your polling interval.
30 $timezone = null; # If not set, uses the system default. Example: "UTC"
31 $chk_options = array (