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…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營