显示标签为“cacti”的博文。显示所有博文
显示标签为“cacti”的博文。显示所有博文

2008-10-29

Some old stuff for sharing

I think the following open source software resources could be helpful to you.

本页面上是我认为可能对您有用的资源连接,目的是让您能以最小的时间和精力代价来体验开源软件。使用一个虚拟应用可能是一个比较方便的途径;有些开源应用做的非常体贴用户,软件提供ISO文件下载,通过这个ISO文件甚至能一键安装,在一个物理和虚拟的硬件上试用这个软件了。

Virtual Appliances / 虚拟应用



ISO Appliances / ISO应用

FSF mail list
Welcome to the Free Software Supporter, the Free Software Foundation's
monthly news digest and action update.


2007-06-15

开源IT管理工具大全之All in one虚拟机

我做开源工具测试时,90%以上是在VMWare虚拟机中实现的,本人比较懒一直没有学习Xen虚拟机的用法,等下次吧,一等要彻底开源是我的一个梦想呵呵!

说说这个All in One虚拟机的想法,我只是想把所有的我熟悉的工具都安装和配置在一个虚拟机里,这样当有人需要给做Demo的时候,我可以很快的做一个分享.如果有朋友感兴趣的话,我可以刻盘他.总的来讲希望能分享一下我的学习成果给大家.

第一步:安装虚拟机
这个虚拟机我不像使用很多的Snapshoot,我以前是这么做的,从一个基础的OS发出许多分支到不同的工具;这样做的缺点有二:1)特别占磁盘空间;2)不能同时访问多个系统.

我选择的Linux是Open Suse Linux 10.2;Suse的包管理对我来说真的很方便,从安装DVD上用Yast可以方便安装各种软件,无须考虑包之间的依赖性问题.
我选择的是最小图形化系统安装,安装完之后,vmdk文件的大小好像是2GB多.

接下来安装的是所有的必须的包,大致如下:Apache,Perl,MySQL,PostgreSQL,rddtool,net-snmp,php,gcc,Kernel-source(for vmware tools)...等安装完之后用chkconfig on 命令设置需要自动启动的服务;然后把apache等服务逐个启动一下验证是否工作正常.

然后安装的是VMWare tools,这个好像也不是必须,不过还是装上比较好,方便虚拟机和host机共享文件.我的虚拟机的版本是5.5.3workstation版本.

第二步:安装各种开源软件
下面可能会是一个很长的change log

1. 安装OpenNMS 1.3.2 安装方法 设置了opennms的自动启动,还没有设置tomcat5.5.23的自动启动.

2.安装Cacti 0.8.6j 安装方法, 使用的poller.php,尝试安装cactid,安装失败,原因可能是OpenSuse10.2好像没有net-snmp lib包. 暂时不安装cactid

3.安装OCSNG 1.0.1 安装方法

4.安装 hyperic-hq 3.0.4-389 安装方法, 2007-6-21th

5.安装 OTRS 2.2.1-1 安装方法很简单,执行rpm安装既可, 2007-7-28th

2007-06-14

How to install Cacti on OpenSuse 10.2

1.
Download Extract the distribution tarball
Suse:/opt # wget http://www.cacti.net/downloads/cacti-0.8.6j.tar.gz
Suse:/opt # tar zxvf cacti-0.8.6j.tar.gz

2.
Create the MySQL database:
Suse:/opt # mysqladmin --user=root create cacti

3.
Import the default cacti database:
Suse:/opt/cacti-0.8.6j # mysql cacti < user="root"> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cacti';
Query OK, 0 rows affected (0.03 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quite

5.
Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.

Suse:/opt/cacti-0.8.6j # vi include/config.php
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";
$database_port = "3306";

6.
Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.

Suse:/opt # mv cacti-0.8.6j /srv/www/htdocs/cacti
Suse:/opt # useradd cactiuser -d /srv/www/htdocs/cacti

7.
Add a line to your /etc/crontab file similar to:
Suse:/srv/www/htdocs/cacti # vi /etc/crontab
*/5 * * * * cactiuser php /srv/www/htdocs/cacti/poller.php > /dev/null 2>&1

8.
Point your web browser to:
http://10.100.113.138/cacti/index.php

9.
Install cacti patches
Access to http://www.cacti.net/download_patches.php
Be sure that you are in your Cacti directory when you execute these commands.

wget http://www.cacti.net/downloads/patches/0.8.6j/ping_php_version4_snmpgetnext.patch
wget http://www.cacti.net/downloads/patches/0.8.6j/tree_console_missing_hosts.patch
wget http://www.cacti.net/downloads/patches/0.8.6j/thumbnail_graphs_not_working.patch
wget http://www.cacti.net/downloads/patches/0.8.6j/graph_debug_lockup_fix.patch
wget http://www.cacti.net/downloads/patches/0.8.6j/snmpwalk_fix.patch
patch -p1 -N <> 10.
Install cactid
Download Cacti.tar.gz
Suse:/srv/www/htdocs/cacti # wget http://www.cacti.net/downloads/cactid/cacti-cactid-0.8.6i.tar.gz
Suse:/srv/www/htdocs/cacti # tar zxvf cacti-cactid-0.8.6i.tar.gz
Suse:/srv/www/htdocs/cacti # cd cacti-cactid-0.8.6i/
Suse:/srv/www/htdocs/cacti/cacti-cactid-0.8.6i # ./configure
encounter a error:
configure: error: cannot find SNMP headers. Use --with-snmp to specify non-default path.
It seems OpenSuse does not have SNMP headers within installtation DVD. Install cactid latter.


This article is referring Installation Guide for Unix/Linux from cacti.net