cacti thold hdd used percent

April 18, 2009

在plugin thold 3.8的版本里
已经取好了data source item “hdd_total”的值为special data source:VALUE_OF_HDD_TOTAL
所以只要在定义CDEFs的时候,把最后的字串等于

CURRENT_DATA_SOURCE,VALUE_OF_HDD_TOTAL,/,100,*

于是具体方法就简单了
直接用custom string即可
或者更王道一点的办法是改global_arrays.php
在$custom_data_source_types加上对”VALUE_OF_HDD_TOTAL”的描述
这样设CDEFs的时候就可以在下拉列表框里选择了

Install cacti 0.8.7d on debian 5.0

April 16, 2009

downloal the debian 5 iso for install:
http://cdimage.debian.org/debian-cd/5.0.0/i386/iso-cd/debian-500-i386-netinst.iso

install the debian with the downloaded ISO

code:

#!/bin/bash

#update!
apt-get update
apt-get upgrade
cd /tmp

#install the component
apt-get install ssh patch zip -y
#apt-get install gcc g++ -y
apt-get install apache2 -y
apt-get install php5 php5-gd -y
apt-get install mysql-server -y
apt-get install php5-mysql -y
apt-get install phpmyadmin -y
#apt-get install snmp
#apt-get install rrdtool
#install cactid
apt-get install cacti-spine -y

do not config the mysql for cacti.

#download and extract the cacti 0.8.7d from cacti.net
cd /tmp
mv /usr/share/cacti/site /usr/share/cacti/site-b
wget http://www.cacti.net/downloads/cacti-0.8.7d.tar.gz
tar zxvf cacti-0.8.7d.tar.gz
mv cacti-0.8.7d /usr/share/cacti/site #debian/ubuntu

#download the patch from cacti.net
wget http://www.cacti.net/downloads/patches/0.8.7d/ping_timeout.patch
wget http://www.cacti.net/downloads/patches/0.8.7d/graph_search.patch
wget http://www.cacti.net/downloads/patches/0.8.7d/page_length_graph_view.patch
wget http://www.cacti.net/downloads/patches/0.8.7d/snmp_string_issue_with_rrdtool_creation.patch

#patch for cacti 0.8.7d
cd /usr/share/cacti/site
patch -p1 -N < /tmp/ping_timeout.patch
patch -p1 -N < /tmp/graph_search.patch
patch -p1 -N < /tmp/page_length_graph_view.patch
patch -p1 -N < /tmp/snmp_string_issue_with_rrdtool_creation.patch
cd /tmp

#download cacti-plugin-0.8.7d-PA-v2.4.zip for cacti 0.8.7d from Patrick.Ru’s Blog.
wget http://forums.cacti.net/download.php?id=16863 -O cacti-plugin-0.8.7d-PA-v2.4.zip

#unzip the cacti-plugin-0.8.7d-PA-v2.4.zip
unzip cacti-plugin-0.8.7d-PA-v2.4.zip

#patch the PA v2.4 for cacti-0.8.7d
cd /usr/share/cacti/site
patch -p1 -N < /tmp/cacti-plugin-0.8.7d-PA-v2.4.diff
cd /tmp

#Create the database for cacti
mysql -u root -pdbadmin
CREATE DATABASE `cacti` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
\g
CREATE USER ‘cactiuser’@'localhost’ IDENTIFIED BY ‘cactiuser’
\g
GRANT ALL PRIVILEGES ON `cacti` . * TO ‘cactiuser’@'localhost’
\g
\q
mysql -u cactiuser -pcactiuser cacti < /usr/share/cacti/site/cacti.sql
mysql -u cactiuser -pcactiuser cacti < /tmp/pa.sql

cacti account

April 15, 2009

mysql database root password: dbadmin

cacti database name: cactidb

cacti database user: cactiuser / password: cactiuser

auto install mysql?

April 15, 2009

Can mysql be install auto with the root passsword?

Install cacti 0.8.7b on debian 5.0

April 14, 2009

It is a setup movic file.

But I can not upload the avi file here.

:(

downloal the debian 5 iso for install:
http://cdimage.debian.org/debian-cd/5.0.0/i386/iso-cd/debian-500-i386-netinst.iso

install the debian with the downloaded ISO.

code:

#!/bin/bash

#update!
apt-get update
apt-get upgrade
cd /tmp

#install the component
apt-get install ssh patch zip -y
#apt-get install gcc g++ -y
apt-get install apache2 -y
apt-get install php5 php5-gd -y
apt-get install mysql-server -y
apt-get install php5-mysql -y
apt-get install phpmyadmin -y
#apt-get install snmp
#apt-get install rrdtool
#install cactid
apt-get install cacti-spine -y
#install the PA v2.1 for cacti 0.8.7b
wget http://forums.cacti.net/download.php?id=14435 -O cacti-plugin-0.8.7b-PA-v2.1.zip
unzip cacti-plugin-0.8.7b-PA-v2.1.zip
cd /usr/share/cacti/site
patch -p1 -N < /tmp/cacti-plugin-0.8.7b-PA-v2.1.diff
cd /tmp
#import the pa.sql to mysql
mysql -u cacti -pcacti cacti < pa.sql

Plugin Architecture for cacti

April 14, 2009

original file from www.cactiusers.org

Plugin Architecture v2.1

 

Plugin Architecture v2.4

http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7d-PA-v2.4.zip

My wordpress server can?

April 14, 2009

I have plan to deplay my wordpress server to service my blog before.

Has the solution?

Can it run in a small nas hardware?

Such as : buffalo NAS/Kurobox -pro?

Finding…..

about the attachment at this blog.

April 14, 2009

I just want to upload the script and other useful file to the blog, but I found that it can not accept.

:(

why? How can I do in other way?

cacti 0.8.7d

April 14, 2009

cacti 0.8.7d original file from www.cacti.net

http://www.cacti.net/downloads/cacti-0.8.7d.tar.gz

cacti 0.8.7b

April 14, 2009

cacti 0.8.7b original file from www.cacti.net

http://www.cacti.net/downloads/cacti-0.8.7b.tar.gz


Follow

Get every new post delivered to your Inbox.