Cacti Linux Template
Percona Linux Monitoring Template for Cacti
Creating an SSH Key Pair
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): /usr/share/cacti/.ssh/id_rsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /usr/share/cacti/.ssh/id_rsa. Your public key has been saved in /usr/share/cacti/.ssh/id_rsa.pub. ssh-copy-id -i /usr/share/cacti/.ssh/id_rsa.pub cacti@192.168.0.100 cacti@192.168.0.100's password: Now try logging into the machine, with "ssh 'cacti@192.168.0.100'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. ssh -i /usr/share/cacti/.ssh/id_rsa cacti@192.168.0.100 echo "it works" it works |
Testing the Setup
1 |
/usr/bin/php -q /usr/share/cacti/site/scripts/ss_get_by_ssh.php --host 192.168.0.100 --type vmstat --items oo,op |
참조 URL : http://www.percona.com/doc/percona-monitoring-plugins/1.0/cacti/linux-templates.html