Freebsd11安装zabbix记录

zabbix([`zæbiks])是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。
zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。
zabbix由2部分构成,zabbix server与可选组件zabbix agent。
zabbix server可以通过SNMP,zabbix agent,ping,端口监视等方法提供对远程服务器/网络状态的监视,数据收集等功能,它可以运行在Linux,Solaris,HP-UX,AIX,Free BSD,Open BSD,OS X等平台上。
zabbix agent需要安装在被监视的目标服务器上,它主要完成对硬件信息或与操作系统有关的内存,CPU等信息的收集。zabbix agent可以运行在Linux,Solaris,HP-UX,AIX,Free BSD,Open BSD, OS X, Tru64/OSF1, Windows NT4.0, Windows (2000/2003/XP/Vista)等系统之上。
zabbix server可以单独监视远程服务器的服务状态;同时也可以与zabbix agent配合,可以轮询zabbix agent主动接收监视数据(agent方式),同时还可被动接收zabbix agent发送的数据(trapping方式)。
另外zabbix server还支持SNMP (v1,v2),可以与SNMP软件(例如:net-snmp)等配合使用。
搭建Zabbix监控环境
要想搭建一个Zabbix的工作环境,需要从服务器入手。与服务器通信,管理员需要使用一个Zabbix前端界面,与Zabbix服务器和数据库进行通信。三个关键(界面、服务器和数据库)可以安装在同一台服务器上,但是如果你拥有一个更大更复杂的环境,将它们安装在不同的主机上也是一个选项。Zabbix服务器能够直接监控到同一网络中的设备,如果其他网络的设备也需要被监控,那还需要一台Zabbix代理服务器。

下面就是FREEBSD UNIX 下安装ZABBIX的过程记录,具体配置过程,以后会在本博客里补充与发布,敬请留意。

Zabbix Life Cycle & Release Policy:

https://www.zabbix.com/life_cycle_and_release_policy

======================================================================

 

===> SECURITY REPORT:

This port has installed the following files which may act as network

servers and may therefore pose a remote security risk to the system.

/usr/local/sbin/zabbix_server

 

This port has installed the following startup scripts which may cause

these network services to be started at boot time.

/usr/local/etc/rc.d/zabbix_server

If there are vulnerabilities in these programs there may be a security

risk to the system. FreeBSD makes no guarantee about the security of

ports included in the Ports Collection. Please type ‘make deinstall’

to deinstall the port if this is a concern.

 

For more information, and contact details about the security

status of this software, see the following webpage:

https://www.zabbix.com/

===>  Cleaning for net-snmp-5.7.3_17

===>  Cleaning for unixODBC-2.3.4

===>  Cleaning for postgresql95-client-9.5.9

===>  Cleaning for fping-3.16

===>  Cleaning for zabbix34-server-3.4.1

root@wiz:/usr/ports/net-mgmt/zabbix34-server # pwd

/usr/ports/net-mgmt/zabbix34-server

root@wiz:/usr/ports/net-mgmt/zabbix34-server # make install clean

 

 

gmake[7]: Nothing to be done for ‘install-data-am’.

gmake[7]: Leaving directory ‘/usr/ports/net/fping/work/fping-3.16/src’

gmake[6]: Leaving directory ‘/usr/ports/net/fping/work/fping-3.16/src’

gmake[6]: Entering directory ‘/usr/ports/net/fping/work/fping-3.16’

gmake[7]: Entering directory ‘/usr/ports/net/fping/work/fping-3.16’

gmake[7]: Nothing to be done for ‘install-exec-am’.

gmake[7]: Nothing to be done for ‘install-data-am’.

gmake[7]: Leaving directory ‘/usr/ports/net/fping/work/fping-3.16’

gmake[6]: Leaving directory ‘/usr/ports/net/fping/work/fping-3.16’

gmake[5]: Leaving directory ‘/usr/ports/net/fping/work/fping-3.16’

gmake[4]: Leaving directory ‘/usr/ports/net/fping/work/fping-3.16’

====> Compressing man pages (compress-man)

===>  Installing for fping-3.16

===>  Checking if fping already installed

===>   Registering installation for fping-3.16 as automatic

Installing fping-3.16…

===> SECURITY REPORT:

This port has installed the following binaries which execute with

increased privileges.

/usr/local/sbin/fping6

/usr/local/sbin/fping

 

This port has installed the following files which may act as network

servers and may therefore pose a remote security risk to the system.

/usr/local/sbin/fping6

/usr/local/sbin/fping

 

If there are vulnerabilities in these programs there may be a security

risk to the system. FreeBSD makes no guarantee about the security of

ports included in the Ports Collection. Please type ‘make deinstall’

to deinstall the port if this is a concern.

 

For more information, and contact details about the security

status of this software, see the following webpage:

http://www.fping.org/

===>   zabbix34-server-3.4.1 depends on executable: fping – found

===>   Returning to build of zabbix34-server-3.4.1

===>   Generating temporary packing list

===> Creating groups.

===> Creating users

Making install in src

Making install in libs

Making install in zbxcrypto

Making install in zbxcommon

Making install in zbxlog

Making install in zbxalgo

……………………………………………………….

Making install in vmware

Making install in taskmanager

Making install in ipmi

Making install in scripts

Making install in preprocessor

/bin/mkdir -p ‘/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/sbin’

install  -s -m 555 zabbix_server ‘/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/sbin’

/usr/bin/make  install-data-hook

/bin/mkdir -p “/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/etc/zabbix34/zabbix_server.conf.d”

/bin/mkdir -p “/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/etc/zabbix34/zabbix/externalscripts”

/bin/mkdir -p “/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/etc/zabbix34/zabbix/alertscripts”

/bin/mkdir -p “/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/lib”

test -f “/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/etc/zabbix34/zabbix_server.conf.sample” || cp “../../conf/zabbix_server.conf” “/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/etc/zabbix34/zabbix_server.conf.sample”

Making install in database

Making install in man

/bin/mkdir -p ‘/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/man/man8’

install  -m 0644 ‘zabbix_server.man’ ‘/usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/man/man8/zabbix_server.8’

Making install in misc

Making install in upgrades

/bin/mkdir -p /usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/share/zabbix34/server/database

(cd /usr/ports/net-mgmt/zabbix34-server/work/zabbix-3.4.1/upgrades/ && /bin/sh -c ‘(/usr/bin/find -Ed $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) &&  /usr/bin/find -Ed $0 $2 \(   -type d -exec /bin/sh -c ‘\”cd ‘\”$1’\” && chmod 755 “$@”‘\” — . {} +  -o -type f -exec /bin/sh -c ‘\”cd ‘\”$1’\” && chmod 0644 “$@”‘\” — . {} + \)’ — dbpatches  /usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/share/zabbix34/server/upgrades/)

(cd /usr/ports/net-mgmt/zabbix34-server/work/zabbix-3.4.1/database/ &&  /bin/sh -c ‘(/usr/bin/find -Ed $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) &&  /usr/bin/find -Ed $0 $2 \(   -type d -exec /bin/sh -c ‘\”cd ‘\”$1’\” && chmod 755 “$@”‘\” — . {} +  -o -type f -exec /bin/sh -c ‘\”cd ‘\”$1’\” && chmod 0644 “$@”‘\” — . {} + \)’ — “ibm_db2 mysql oracle postgresql sqlite3”  /usr/ports/net-mgmt/zabbix34-server/work/stage/usr/local/share/zabbix34/server/database/)

====> Compressing man pages (compress-man)

===> Staging rc.d startup script(s)

===>  Installing for zabbix34-server-3.4.1

===>  Checking if zabbix34-server already installed

===>   Registering installation for zabbix34-server-3.4.1

Installing zabbix34-server-3.4.1…

===> Creating groups.

Creating group ‘zabbix’ with gid ‘122’.

===> Creating users

Creating user ‘zabbix’ with uid ‘122’.

======================================================================

For Zabbix server and proxy daemons, as well as Zabbix frontend, a database is

required. It is not needed to run Zabbix agent.

 

% cd /usr/local/share/zabbix34/server/database

 

PostgreSQL:

shell> psql -U <username>

psql> create database zabbix;

psql> \q

shell> cd database/postgresql

shell> psql -U <username> zabbix < schema.sql

shell> psql -U <username> zabbix < images.sql

shell> psql -U <username> zabbix < data.sql

 

MySQL:

shell> mysql -u<username> -p<password>

mysql> create database zabbix character set utf8;

mysql> quit;

shell> mysql -u<username> -p<password> zabbix < database/mysql/schema.sql

shell> mysql -u<username> -p<password> zabbix < database/mysql/images.sql

shell> mysql -u<username> -p<password> zabbix < database/mysql/data.sql

 

SQLite:

shell> cd database/sqlite3

shell> sqlite3 /var/lib/sqlite/zabbix.db < schema.sql

shell> sqlite3 /var/lib/sqlite/zabbix.db < images.sql

shell> sqlite3 /var/lib/sqlite/zabbix.db < data.sql

 

IBM DB2:

shell> db2 “create database zabbix using codeset utf-8 territory us pagesize 32768”

shell> cd database/ibm_db2

shell> db2batch -d zabbix -f schema.sql

shell> db2batch -d zabbix -f images.sql

shell> db2batch -d zabbix -f data.sql

 

Upgrade notes for 3.4.0:

https://www.zabbix.com/documentation/3.4/manual/installation/upgrade_notes_340

 

Upgrade procedure:

https://www.zabbix.com/documentation/3.4/manual/installation/upgrade

 

Please see https://www.zabbix.com/ for detailed information about Zabbix.

 

On-line Zabbix documentation:

https://www.zabbix.com/documentation/3.4/start

 

For Zabbix frontend “Welcome” screen. Enter the user name Admin with password

zabbix to log in as a Zabbix superuser.

 

For use NMAP please edit sudoers

======================================================================

This is a Zabbix Standard release!

 

Standard Zabbix releases are supported for Zabbix customers during six (6)

months of Full Support (general, critical and security issues) until the next

Zabbix stable release, plus one (1) additional month of Limited Support

(critical and security issues only). Zabbix Standard version release will

result in change of the second version number.

 

Stable release:         Zabbix 3.4

Release date:           August, 2017

End of Full Support:    February, 2018

End of Limited Support: March, 2018

 

Zabbix Life Cycle & Release Policy:

https://www.zabbix.com/life_cycle_and_release_policy

======================================================================

 

===> SECURITY REPORT:

This port has installed the following files which may act as network

servers and may therefore pose a remote security risk to the system.

/usr/local/sbin/zabbix_server

 

This port has installed the following startup scripts which may cause

these network services to be started at boot time.

/usr/local/etc/rc.d/zabbix_server

 

If there are vulnerabilities in these programs there may be a security

risk to the system. FreeBSD makes no guarantee about the security of

ports included in the Ports Collection. Please type ‘make deinstall’

to deinstall the port if this is a concern.

 

For more information, and contact details about the security

status of this software, see the following webpage:

https://www.zabbix.com/

===>  Cleaning for net-snmp-5.7.3_17

===>  Cleaning for unixODBC-2.3.4

===>  Cleaning for postgresql95-client-9.5.9

===>  Cleaning for fping-3.16

===>  Cleaning for zabbix34-server-3.4.1

root@wiz:/usr/ports/net-mgmt/zabbix34-server #

以下文章点击率最高

Loading…

     

如果这文章对你有帮助,请扫左上角微信支付-支付宝,给于打赏,以助博客运营

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注