免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 926 | 回复: 0
打印 上一主题 下一主题

opennms 安装指南 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-20 14:41 |只看该作者 |倒序浏览

系统centos 5.1,数据库postgresql
1.网络安装opennms关系包
运行命令: rpm -Uvh
http://yum.opennms.org/repofiles/opennms-repo-snapshot-rhel5.noarch.rpm

2.检查是否安装成功, 运行命令:
[root@opennms vmware]# yum list opennms
Repository opennms-stable-common is listed more than once in the configuration Repository opennms-stable-rhel5 is listed more than once in the configuration Setting up repositories Reading repository metadata in from local files Available Packages
opennms.noarch 1.3.10-0.8030.snapshot opennms-snapshot
安装这个版本的OpenNMS,运行命令: yum install opennms ; yum会处理包的依赖关系下载安装。
这一步yum会根据opennms的依赖关系到opennms.org下载。(如opennms-webapp、opennms-core、opennms-1.)。opennms-webapp是一个web interface程序
3.配置系统环境变量
vi /etc/profile
OPENNMS_HOME=/opt/opennms
source /etc/profile

4.配置postgresql连接安全
service postgresql start
vi /var/lib/pgsql/data/pg_hba.conf
local   all         all  trust
host    all         all         127.0.0.1/32        trust
host    all         all         ::1/128             trust


5.配置postgreq侦听
vi /var/lib/pgsql/data/postgresql.conf
listen_addresses = 'localhost
有文档说要tcpip_socket = true  这是不完全正确的。在新的版本里,不需要配置,否则不能启动postgresql。

service postgresql restart

6.指定jdk位置
[root@opennms vmware]# echo $OPENNMS_HOME
/opt/opennms
[root@opennms vmware]# cd /opt/opennms/bin/
runjava  -S /usr/java/jdk1.5.0_15/bin/java


7.初始化OpenNMS的数据库
[root@opennms bin]# pwd
/opt/opennms/bin
[root@opennms bin]# ./install -disU -l /usr/lib/jni:/usr/lib

  - checking table "qrtz_locks"... CREATED
- creating tables... DONE
- inserting initial table data for "distPoller"... OK
- inserting initial table data for "categories"... OK
- inserting initial table data for "qrtz_locks"... OK
- checking if database "opennms" is unicode... ALREADY UNICODE
- checking if iplike is usable... NO
- removing existing iplike definition (if any)... OK
- inserting C iplike function... SKIPPED (location of iplike function not set)
- inserting PL/pgSQL iplike function... OK
- checking for stale eventtime.so references... OK
Installer completed successfully!


8.
service opennms start

9.
lsof -i:8980

10.
http://ip:8980/opennms 用户名和密码都是admin

11.几个较重要的配置文件
/opt/opennms/etc/
include
discovery-configuration.xml
snmp-config.xml


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6436/showart_500909.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP