수요일, 5월 22, 2024
HomeLinuxCacti Linux Template

Cacti Linux Template

Cacti Linux Template

Percona Linux Monitoring Template for Cacti

Creating an SSH Key Pair

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

/usr/bin/php -q /usr/share/cacti/site/scripts/ss_get_by_ssh.php --host 192.168.0.100 --type vmstat --items oo,op

tmp_2051-Screenshot_2015-02-26-09-20-43~01-2141455916

tmp_2051-Screenshot_2015-02-26-09-22-16~011980326115

tmp_2051-Screenshot_2015-02-26-09-23-12~011074631808

tmp_2051-Screenshot_2015-02-26-09-23-23~01477083631

tmp_2051-Screenshot_2015-02-26-09-24-07~01-1770959149

tmp_2051-Screenshot_2015-02-26-09-24-24~01244808471

tmp_2051-Screenshot_2015-02-26-09-25-22~01-8981731

tmp_2051-Screenshot_2015-02-26-09-25-44~012012249109

tmp_2051-Screenshot_2015-02-26-09-45-29~0124603266

tmp_2051-Screenshot_2015-02-26-09-45-07~01-1460018664

tmp_2051-Screenshot_2015-02-26-09-43-34~011203512849

tmp_2051-Screenshot_2015-02-26-09-43-52~01-99619540

tmp_2051-Screenshot_2015-02-26-09-44-23~01-184288963

tmp_2051-Screenshot_2015-02-26-09-46-16~01-689721604

참조 URL : http://www.percona.com/doc/percona-monitoring-plugins/1.0/cacti/linux-templates.html

Previous article
Next article
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Time limit exceeded. Please complete the captcha once again.

Most Popular