Chinaunix首页 | 论坛 | 博客
  • 博客访问: 574733
  • 博文数量: 107
  • 博客积分: 4406
  • 博客等级: 上校
  • 技术积分: 1279
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-07 16:20
文章分类

全部博文(107)

文章存档

2014年(4)

2012年(4)

2011年(16)

2010年(7)

2009年(7)

2008年(11)

2007年(49)

2006年(9)

分类: LINUX

2007-05-09 09:57:50

linux几个opensource的网管软件
openNMS
openESM
zabbix
Nagios
Catti
zenoss
--------------------------------------------------------
Zabbix
What is ZABBIX?
All-in-one 24x7 monitoring solution without high cost.
ZABBIX is software for monitoring of your applications, network and servers. ZABBIX supports both polling and trapping techniques to collect data from monitored hosts. A flexible notification mechanism allows easy and quickly configure different types of notifications for pre-defined events.
Cutting edge features
ZABBIX offers advanced monitoring, alerting and visualisation features today which are missing in other monitoring systems, even some of the best commercial ones. Use of industry standards makes integration of ZABBIX into existing infrastructure trouble-free.
Monitors everything
ZABBIX high-performance agents work under virtually all operating systems. Collecting of SNMP data is also supported. Thus ZABBIX takes care of monitoring and availability of any network device on your network.
Zabbix is a result of 3 years of development. High quality of the software is guaranteed by 12 alpha and 14 beta versions released prior to 1.0. The software has been downloaded more than 20.000 times. Zabbix is already used in production by many companies around the world.
License:GPL
Web Site:
网上可以看到screenshots、可下载代码和软件。
要点:网络、主机、服务器、服务监控。
OpenESM对其进行了包装,。
Key features
包含server,agent两部分。
Open Source solution
Runs on AIX, FreeBSD, HP-UX, Linux, MacOS X, NetBSD, OpenBSD, Solaris, Tru64/OSF
SQL database for storing configuration, collected data and trends
Web interface offers minimal learning, ubiquitous access
Instant drill down from real-time status of IT Services to historical trend and statistics
Data visualisation and mapping
High performance native ZABBIX agents for performance and integrity monitoring for virtually all platforms (UNIX, Win32)
Monitoring of "agentless" environments
Assuring and monitoring SLA for IT Services
Monitoring of SNMP (v1,v2,v3) devices
Application monitoring
Enterprise applications such as Oracle, WebSphere, WebLogic, Exchange, Apache, etc. can be monitored using SNMP. In many cases, agentless technology can be used, cutting down on the deployment and management costs.
ZABBIX agents can be easily extended to perform monitoring of any aspect of your applications. It is matter of writing a shell script which would return required data back to the agent.
availability of standard services (SMTP, IMAP,POP3,HTTP,SSHD,etc) can be monitored without any agent installed.
Server monitoring
Virtually all server platforms are supported including but not limited to UNIX, Win32 and Novell Netware. ZABBIX native agents take care of CPU utilisation, memory utilisation, disk usage, network I/O, temperature of CPUs and mainboards, status of processes, etc. All real-time performance data is immediately available by WEB interface.
IT Services
ZABBIX’s unique technology allows you to relate your applications and underlying servers or network to a IT Service such as application, location, server, network device, region, etc. This technology allows you to correlate your business to your IT infrastructure and identify the impact of your IT infrastructure to the delivery of business service to your customers.
Data visualisation
ZABBIX provides excellent visualisation of statistical and real-time information, ranging from simple graphs to complex views containing graphs, maps and text information. All graphical information is accessible from WEB interface. The wealth of information available such as the trend analysis (days to threshold), the historical graphs and histograms allow you to make informed decisions about the weaknesses and performance of your IT
Network monitoring
ZABBIX supports monitoring of Cisco, Juniper, 3Com, Nortel, Foundry and other routers as well as firewalls from Netscreen, Fortinet, Cisco or Checkpoint. Any network devices (routers, hubs, printers, etc) having SNMP support can be easily monitored by ZABBIX.
ZABBIX makes possible creation of network maps which give very clear representation of monitored network infrastructure. The maps show network devices, connections, statuses of the devices, and reasons if a device is not available or has any problems.
Integration of Fault and Performance Management
The need to effectively integrate fault and performance management is becoming increasingly apparent to IT organizations seeking to ensure quality delivery of business services. ZABBIX generates real-time notification of threshold violations based on scheduled performance tests.
优点:发现安装配置方面相当简洁,易用,而且界面美观,web界面是PHP编写。
前提:APACHE+PHP+MYSQL的安装。
安装顺序(假定已经安装好a、p、m):
1.创建ZABBIX的系统账号
为了安全起见建议创建使用zabbix用户运行ZABBIX.
useradd zabbix
2.解压:
tar xvzf zabbix-1.1beta12.tar.gz
3.创建 ZABBIX 数据库(FOR MYSQL/PostgreSQL).
mysql -u root -p
>create database zabbix;
>quit;
cd create/mysql
cat schema.sql |mysql -u root -p zabbix
cd ../data
cat data.sql |mysql -u -p zabbix
4.编译:
服务器端+客户端的编译:
./configure --with-mysql --with-net-snmp --enable-server --enable-agent --prefix=/usr/local/zabbix
客户端(agent端)只需执行:
./configure
然后执行:
make
make install
cd /usr/local/zabbix/bin
for i in * ; do ln -s /usr/local/zabbix/bin/$i /usr/bin/$i ; done
5.配置:
(1).vi /etc/services
该文件是zabbix建议操作,可忽略:
加入:
zabbix_agent 10050/tcp
zabbix_trap 10051/tcp
(2) WEB interface
回到zabbix的编译目录,
vi frontends/php/include/db.inc.php
更改数据库相关内容:
$DB_TYPE ="MYSQL";
$DB_SERVER ="localhost";
$DB_DATABASE ="zabbix";
$DB_USER ="root";
$DB_PWD ="";
cp php /home/httpd/html/zabbix -R
chown zabbix /home/httpd/html/zabbix/ -R
(3) 生成配置文件:
mkdir /etc/zabbix
cp misc/conf/* /etc/zabbix/
配置相关内容(以下内容请根据大家具体服务器的IP/MYSQL的账号情况做相应修改):
zabbix_agent.conf
grep -v ’^#’ zabbix_agent.conf |grep -v ’^
Server=10.5.21.46
Timeout=3
UserParameter=mysql.ping,/usr/local/mysql/bin/mysqladmin -uroot -p ping|grep alive|wc -l
UserParameter=mysql.uptime,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f2 -d":"|cut -f1 -d"T"
UserParameter=mysql.threads,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f3 -d":"|cut -f1 -d"Q"
UserParameter=mysql.questions,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f4 -d":"|cut -f1 -d"S"
UserParameter=mysql.slowqueries,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f5 -d":"|cut -f1 -d"O"
UserParameter=mysql.qps,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f9 -d":"
UserParameter=mysql.version,/usr/local/mysql/bin/mysql -V
zabbix_agentd.conf
grep -v ’^#’ zabbix_agentd.conf |grep -v ’^
Server=10.5.21.46
Hostname=localhost
ListenPort=10050
ListenIP=10.5.21.46
StartAgents=5
RefreshActiveChecks=120
DisableActive=1
DebugLevel=3
PidFile=/var/tmp/zabbix_agentd.pid
LogFile=/var/log/zabbix_agentd.log
Timeout=3
UserParameter=mysql.ping,/usr/local/mysql/bin/mysqladmin -uroot -p ping|grep alive|wc -l
UserParameter=mysql.uptime,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f2 -d":"|cut -f1 -d"T"
UserParameter=mysql.threads,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f3 -d":"|cut -f1 -d"Q"
UserParameter=mysql.questions,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f4 -d":"|cut -f1 -d"S"
UserParameter=mysql.slowqueries,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f5 -d":"|cut -f1 -d"O"
UserParameter=mysql.qps,/usr/local/mysql/bin/mysqladmin -uroot -p status|cut -f9 -d":"
UserParameter=mysql.version,/usr/local/mysql/bin/mysql -V
zabbix_server.conf
grep -v ’^#’ zabbix_server.conf |grep -v ’^
Server=1
StartPollers=6
StartTrappers=5
ListenPort=10051
HousekeepingFrequency=1
SenderFrequency=30
DebugLevel=3
Timeout=5
UnreachablePeriod=45
UnavailableDelay=15
UnavailableDelay=60
PidFile=/var/tmp/zabbix_server.pid
LogFile=/var/log/zabbix_server.log
AlertScriptsPath=/home/zabbix/bin/
PingerFrequency=30
DBHost=localhost
DBName=zabbix
DBUser=root
DBPassword=
DBSocket=/usr/local/mysql/data/mysql.sock
zabbix_trapper.conf
grep -v ’^#’ zabbix_trapper.conf |grep -v ’^
DebugLevel=2
Timeout=3
LogFile=/var/log/zabbix_trapper.log
DBHost=localhost
DBName=zabbix
DBUser=root
DBPassword=
DBSocket=/usr/local/mysql/data/mysql.sock
(4). 生成启动脚本
cp misc/init.d/redhat/zabbix_* /usr/local/zabbix/bin/
编辑zabbix_agentd_ctl 和 zabbix_suckerd_ctl
BASEDIR=/usr/local/zabbix 为指定的zabbix安装目录.
zabbix_suckerd_ctl文件中的
ZABBIX_SUCKERD=$BASEDIR/bin/zabbix_suckerd可能因为版本关系应该改为
ZABBIX_SUCKERD=$BASEDIR/bin/zabbix_server
6.启动服务:
服务器端
/usr/local/zabbix/bin/zabbix_suckerd_ctl start
客户端(agent端)
/usr/local/zabbix/bin/zabbix_agentd_ctl start
7.打开浏览器:

用户名admin,初始密码为空.
Nagios
Web site:
License:GPL
网上可以看到screenshots、demo(现在不支持了)、可下载代码和软件。
要点:主机、服务器、服务监控。
派生出的另外一个软件:openQRM,管理IDC(数据中心)上千台服务器。上有screenshots。
Nagios is an open source host, service and network monitoring program. It is a host and service monitor designed to inform you of network problems before your clients, end-users or managers do. It has been designed to run under the Linux operating system, but works fine under most *NIX variants as well. The monitoring daemon runs intermittent checks on hosts and services you specify using external "plugins" which return status information to Nagios. When problems are encountered, the daemon can send notifications out to administrative contacts in a variety of different ways (email, instant message, SMS, etc.). Current status information, historical logs, and reports can all be accessed via a web browser.
Monitoring of network services (SMTP, POP3, HTTP, NNTP, PING, etc.)
Monitoring of host resources (processor load, disk and memory usage, running processes, log files, etc.)
Monitoring of environmental factors such as temperature
Simple plugin design that allows users to easily develop their own host and service checks
Ability to define network host hierarchy, allowing detection of and distinction between hosts that are down and those that are unreachable
Contact notifications when service or host problems occur and get resolved (via email, pager, or other user-defined method)
Optional escalation of host and service notifications to different contact groups
Ability to define event handlers to be run during service or host events for proactive problem resolution
Support for implementing redundant and distributed monitoring servers
External command interface that allows on-the-fly modifications to be made to the monitoring and notification behavior through the use of event handlers, the web interface, and third-party applications
Retention of host and service status across program restarts
Scheduled downtime for suppressing host and service notifications during periods of planned outages
Ability to acknowledge problems via the web interface
Web interface for viewing current network status, notification and problem history, log file, etc.
Simple authorization scheme that allows you restrict what users can see and do from the web interface
nagios安装:
#cd /usr/ports/net/nagios
#make
最后提示信息:
make install
- This installs the main program, CGIs, and HTML files
make install-init
- This installs the init script in /usr/local/etc/rc.d
make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file
make install-config
- This installs SAMPLE config files in /usr/local/etc/nagios
You’ll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!
#make install
选择fping,MySQL,snmp支持。
 
OpenNms
Website:。
OpenNMS is the world’s first enterprise grade network management platform developed under the open source model。
与nagios接口。
http monitor。
各种可缩放的图(JRobin、RRDTool)。
Java技术。
插件技术。
Webui client。
Support 32bit,64bits machine。
DHCP、Radius、ups、NTP、SSH、JDBC、Http、ICMP监控。
zenoss
2007 creative open source top 10
阅读(2941) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~