opennms

ubuntu 8.10下装 opennms

开启数据库            /etc/init.d/postgresql-8.3 restart
开opennms          /etc/init.d/opennms start
文件本体所在        /usr/share/opennms

配置
nano /etc/ postgresql/8.1/main/pg_hba.conf
          local       all        all                          trust
host       all        all 127.0.0.1/32 trust
host      all         all ::1/128            trust
nano /etc/ postgresql/8.1/main/ postgresql.conf
将监听地址改为全部,修改后的内容应该如下:
listen_addresses=“*"    失败,改localhost

可以启动起来,但找不到节点,哪里出错呢?有空再处理
````````````````````````````````````````````````````````
节点找到,opennms很智能 ,自动发现服务,描图
snmp上遇到不少麻烦,配来配去,把我的snmp也搞坏了。。。
调试了天,snmp搞好了,重做了个配置文件,
 
 
 
方法:

转http://cndefu.blog.163.com/blog/static/59393188200803124532865/
运行snmpconf -g basic_setup,会在当前目录下生成一个snmpd.conf配置文件:
[root@localhost local]# snmpconf -g basic_setup
运行后会出现一个询问菜单,按如下步骤进行回答:CODE:[Copy to clipboard]Do you want to configure the information returned in

the system MIB group (contact info, etc)? (default = y): y

The location of the system: Shenzhen, China

The contact information: [email protected]

Do you want to properly set the value of the sysServices.0 OID (if you don't know, just say no)? (default = y): y

does this host offer physical services (eg, like a repeater) [answer 0 or 1]: 1
does this host offer datalink/subnetwork services (eg, like a bridge): 0
does this host offer internet services (eg, supports IP): 1
does this host offer end-to-end services (eg, supports TCP): 1
does this host offer application services (eg, supports SMTP): 1

Do you want to configure the agent's access control? (default = y): y
Do you want to allow SNMPv3 read-write user based access (default = y): n
Do you want to allow SNMPv3 read-only user based access (default = y): n
Do you want to allow SNMPv1/v2c read-write community access (default = y): n
Do you want to allow SNMPv1/v2c read-only community access (default = y): y

The community name to add read-only access for: public
The hostname or network address to accept this community name from [RETURN for all]: (RETURN)
The OID that this community should be restricted to [RETURN for no-restriction]: (RETURN)

Do you want to configure where and if the agent will send traps? (default = y): n

Do you want to configure the agent's ability to monitor various aspects of your system? (default = y): y
Do you want to configure the agents ability to monitor processes? (default = y): y
Name of the process you want to check on: sshd(需要监控的进程)
Maximum number of processes named ' sshd' that should be running [default = 0]: 1
Minimum number of processes named ' sshd' that should be running [default = 0]: 0

Do another proc line? (default = y): n

Do you want to configure the agents ability to monitor disk space? (default = y): y

Enter the mount point for the disk partion to be checked on: /
Enter the minimum amount of space that should be available on /var: %100

Do another disk line? (default = y): y
Enter the mount point for the disk partion to be checked on: /var
Enter the minimum amount of space that should be available on /var: %100

Do another disk line? (default = y): y

Enter the mount point for the disk partion to be checked on: /usr
Enter the minimum amount of space that should be available on /usr: %100

Do another disk line? (default = y): y

Enter the mount point for the disk partion to be checked on: /home
Enter the minimum amount of space that should be available on /home: %100

Do another disk line? (default = y): n

Do you want to configure the agents ability to monitor load average? (default = y): y

Enter the maximum allowable value for the 1 minute load average: 12
Enter the maximum allowable value for the 5 minute load average: 12
Enter the maximum allowable value for the 15 minute load average: 12

Do another load line? (default = y): n
Do you want to configure the agents ability to monitor file sizes? (default = y): n(如果想监控文件的大小,可以选y)

4.运行net-snmp:
# snmpd -c /path/snmpd.conf (要上面生成的绝对路径)
测试一下看看net-snmp是否配置成功:
#snmpwalk -v 1 -c public localhost .1 (是否可以从.1开始采集服务器数据)
#snmpwalk -v 1 -c public localhost dskPercent.1 (看看刚配置过的硬盘监测是否成功)
如果有数据了,恭喜你snmp安装成功了。



snmp又活了,但是现在opennms里找不到snmp了,新的问题,慢慢研究。。。0829

 
最后,系统重装,傅配置 文档 http://lluxury.blog.51cto.com/900108/196719
有数据了,同时打开另一项功能,我电脑直接就趴了,跑不动。。。。
有空补上

本文出自 “闵行” 博客,谢绝转载!

你可能感兴趣的:(职场,休闲)