顯示具有 snmp 標籤的文章。 顯示所有文章
顯示具有 snmp 標籤的文章。 顯示所有文章

2008年11月11日 星期二

Set up CACTI on Ubuntu

1. install cacti, it depends on many packages like snmpd, apache2, mysql-server

sudo apt-get install cacti

2. installation in progress
password of your database's administrative user: password of mysql administrator
mysql application password for cacti: leave it blank, cacti will create a random password
webserver type: apache2

3. visit the webpage of your cacti server, http://localhost/cacti
follow cacti installation guide in your web-browse

4. login with default username and password, admin / admin

5. Devices -> Add
Description: Give this host a meaningful description.
Hostname: localhost
Host Template: Generic SNMP-enabled Host
SNMP Version: Version 1
SNMP Community: public
create

6. Associated Graph Templates -> Add Graph Template
add any you need

7. Associated Data Queries -> Add Data Query
add SNMP - Get Mounted Partitions and SNMP - Interface Statistics
save

8. Create Graphs for this Host
select any items you need
create

9. Graph Trees -> Add
Name: A useful name for this graph tree.
create

10 Tree Item -> Add
Tree Item Type: host
Tree Item Value -> Host: choose what you just created
create

2008年7月9日 星期三

Set up MRTG on Ubuntu

1. MRTG( Multi Router Traffic Grapher ) working depends on SNMP( Simple Network Management Protocol )

sudo apt-get install apache2 snmpd mrtg

2.

vi /etc/snmp/snmpd.conf
--
..
# sec.name source community
#com2sec paranoid default public
com2sec readonly default public
#com2sec readwrite default private
..

3. use cfgmaker command to create a mrtg config file

# public is the community name set in step 2
cfgmaker public@localhost > /etc/mrtg.cfg

4. creat mrtg webpages by using indexmaker to read mrtg con

indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html