lost and found ( for me ? )

install cacti on ubuntu 12.04 part1

root@ubuntu1204-vm5:~# tail -1 /etc/lsb-release
root@ubuntu1204-vm5:~# uname -ri
3.2.0-38-generic x86_64

install cacti via apt-get
root@ubuntu1204-vm5:~# apt-get install cacti cacti-spine

The installation process is very easy.
just configure DB credentials and select front end GUI during the installation.
I selected Apache2 as front end GUI.

configuration files for cacti and Apache will be created automatically during installation process.
root@ubuntu1204-vm5:~# ls /etc/apache2/conf.d/
cacti.conf  charset  localized-error-pages  other-vhosts-access-log  security

start apache
root@ubuntu1204-vm5:~# apache2ctl start

after finishing installing cacti , launch browser and accesss to http:// cacti IP/cacti

click Next , select “Net Install”
click “Finish”


user : Admin
credentials : admin

change password

you can check how cacti collects stats
root@ubuntu1204-vm5:/usr/share/cacti/site/scripts# pwd

root@ubuntu1204-vm5:/usr/share/cacti/site/scripts# cat linux_memory.pl

open(PROCESS, "cat /proc/meminfo | grep -w $ARGV[0] |");
foreach (<PROCESS>) {
if ($_ =~ /($ARGV[0].*\s)(.*[0-9])( kB)/) {
print $2;
root@ubuntu1204-vm5:/usr/share/cacti/site/scripts# cat /proc/meminfo | grep -w $ARGV[0]
Unevictable:           0 kB
Mlocked:               0 kB
Writeback:             0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0

there are templates for some devices / processes .

Of course , you can create your custom templates.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.