【tech】【作業ログ】Zabbix4.0インストールログ抜粋CentOS7 Virtualbox



作業ログあったら初心者の方の手助けになるかな~と思いましたが、
ログの成形が大変だったので今回限りだと思います。(泣

[root@localhost ~]# rpm -i https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/z abbix-release-4.0-1.el7.noarch.rpm
警告: /var/tmp/rpm-tmp.ad7JeO: ヘッダー V4 RSA/SHA512 Signature、鍵 ID a14fe591: NOKEY
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# yum -y install zabbix-server-mysql zabbix-web-mysql zabbi x-agent
読み込んだプラグイン:fastestmirror
Determining fastest mirrors
* base: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
zabbix | 2.9 kB 00:00
zabbix-non-supported | 951 B 00:00
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ zabbix-agent.x86_64 0:4.0.0-2.el7 を インストール
---> パッケージ zabbix-server-mysql.x86_64 0:4.0.0-2.el7 を インストール
--> 依存性の処理をしています: fping のパッケージ: zabbix-server-mysql-4.0.0-2.el7.x86_64
--> 依存性の処理をしています: libnetsnmp.so.31()(64bit) のパッケージ: zabbix-server-mysql-4.0.0-2.el7.x86_64

--> 依存性の処理をしています: libiksemel.so.3()(64bit) のパッケージ: zabbix-server-mysql-4.0.0-2.el7.x86_64
--> 依存性の処理をしています: libXau.so.6()(64bit) のパッケージ: libxcb-1.12-1.el7.x86_64
---> パッケージ libzip.x86_64 0:0.10.1-8.el7 を インストール
--> トランザクションの確認を実行しています。
---> パッケージ libXau.x86_64 0:1.0.8-2.1.el7 を インストール
--> 依存性解決を終了しました。

依存性を解決しました

=============================================================================
Package アーキテクチャー

バージョン リポジトリー 容量

インストール中:
zabbix-agent x86_64 4.0.0-2.el7 zabbix 379 k
zabbix-server-mysql x86_64 4.0.0-2.el7 zabbix 2.1 M
zabbix-web-mysql noarch 4.0.0-2.el7 zabbix 7.8 k
依存性関連でのインストールをします:
OpenIPMI-libs x86_64 2.0.23-2.el7 base 521 k

OpenIPMI-modalias x86_64 2.0.23-2.el7 base 16 k
unixODBC x86_64 2.3.1-11.el7 base 413 k
zabbix-web noarch 4.0.0-2.el7 zabbix 2.7 M

トランザクションの要約



インストール 3 パッケージ (+40 個の依存関係のパッケージ)

総ダウンロード容量: 20 M
インストール容量: 73 M
Downloading packages:
OpenIPMI-modalias-2.0.23-2.el7.x86_64.rpm の公開鍵がインストールされていません
(1/43): OpenIPMI-modalias-2.0.23-2.el7.x86_64.rpm | 16 kB 00:00
(2/43): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00
(3/43): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00

mysql-4.0.0-2.el7.x86_64.rpm | 2.1 MB 00:11

合計 1.2 MB/s | 20 MB 00:17
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 から鍵を取得中です。
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) security@centos.org"
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-5.1804.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX から鍵を取得中です。
Importing GPG key 0x79EA5ED4:
Userid : "Zabbix SIA packager@zabbix.com"

検証中 : libX11-common-1.6.5-1.el7.noarch 36/43
検証中 : zabbix-web-mysql-4.0.0-2.el7.noarch 37/43
検証中 : php-common-5.4.16-45.el7.x86_64 38/43
検証中 : php-pdo-5.4.16-45.el7.x86_64 39/43
検証中 : libXau-1.0.8-2.1.el7.x86_64 40/43
検証中 : zabbix-server-mysql-4.0.0-2.el7.x86_64 41/43
検証中 : iksemel-1.4-2.el7.centos.x86_64 42/43
検証中 : libzip-0.10.1-8.el7.x86_64 43/43

インストール:
zabbix-agent.x86_64 0:4.0.0-2.el7
zabbix-server-mysql.x86_64 0:4.0.0-2.el7
zabbix-web-mysql.noarch 0:4.0.0-2.el7

依存性関連をインストールしました:
OpenIPMI-libs.x86_64 0:2.0.23-2.el7
unixODBC.x86_64 0:2.3.1-11.el7
zabbix-web.noarch 0:4.0.0-2.el7

完了しました!


[root@localhost ~]# yum -y install mariadb mariadb-server
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ mariadb.x86_64 1:5.5.60-1.el7_5 を インストール
--> 依存性の処理をしています: mariadb-libs(x86-64) = 1:5.5.60-1.el7_5 のパッケージ: 1:mariadb-5.5.60-1.el7_5.x86_64
--> 依存性の処理をしています: perl(Sys::Hostname) のパッケージ: 1:mariadb-5.5.60-1.el7_5.x86_64
---> パッケージ perl-HTTP-Tiny.noarch 0:0.033-3.el7 を インストール
---> パッケージ perl-parent.noarch 1:0.225-244.el7 を インストール
--> 依存性解決を終了しました。

依存性を解決しました

=============================================================================
Package アーキテクチャー
バージョン リポジトリー

容量

インストール中:
mariadb x86_64 1:5.5.60-1.el7_5 updates 8.9 M
mariadb-server x86_64 1:5.5.60-1.el7_5 updates 11 M
依存性関連でのインストールをします:
perl-parent noarch 1:0.225-244.el7 base 12 k
perl-podlators noarch 2.5.1-3.el7 base 112 k
perl-threads x86_64 1.87-4.el7 base 49 k
perl-threads-shared x86_64 1.43-6.el7 base 39 k
依存性関連での更新をします:
mariadb-libs x86_64 1:5.5.60-1.el7_5 updates 758 k

トランザクションの要約

インストール 2 パッケージ (+35 個の依存関係のパッケージ)
更新 ( 1 個の依存関係のパッケージ)

総ダウンロード容量: 33 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.

86_64.rpm | 11 MB 01:47

合計 316 kB/s | 33 MB 01:47
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
検証中 : perl-Getopt-Long-2.40-3.el7.noarch 36/39
検証中 : perl-Text-ParseWords-3.29-4.el7.noarch 37/39
検証中 : 1:mariadb-5.5.60-1.el7_5.x86_64 38/39
検証中 : 1:mariadb-libs-5.5.56-2.el7.x86_64 39/39

インストール:
mariadb.x86_64 1:5.5.60-1.el7_5 mariadb-server.x86_64 1:5.5.60-1.el7_5

依存性関連をインストールしました:
perl.x86_64 4:5.16.3-292.el7
perl-Carp.noarch 0:1.26-244.el7
perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7
perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7
perl-threads.x86_64 0:1.87-4.el7
perl-threads-shared.x86_64 0:1.43-6.el7

依存性を更新しました:
mariadb-libs.x86_64 1:5.5.60-1.el7_5

完了しました!


[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# cat /etc/sysconfig/selinux

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

SELINUX=enforcing

SELINUXTYPE= can take one of three two values:

targeted - Targeted processes are protected,

minimum - Modification of targeted policy. Only selected processes are protected.

mls - Multi Level Security protection.

SELINUXTYPE=targeted

[root@localhost ~]# vi /etc/sysconfig/selinux
"/etc/sysconfig/selinux" 14L, 547C# This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

SELINUX=enforcing

SELINUXTYPE= can take one of three two values:

targeted - Targeted processes are protected,

minimum - Modification of targeted policy. Only selected processes are protected.

mls - Multi Level Security protection.

SELINUXTYPE=targeted

[root@localhost ~]# cat /etc/sysconfig/selinux

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

SELINUX=disabled

SELINUXTYPE= can take one of three two values:

targeted - Targeted processes are protected,

minimum - Modification of targeted policy. Only selected processes are protected.

mls - Multi Level Security protection.

SELINUXTYPE=targeted

[root@localhost ~]# reboot

[root@localhost ~]# cat /etc/sysconfig/selinux

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

SELINUX=disabled

SELINUXTYPE= can take one of three two values:

targeted - Targeted processes are protected,

minimum - Modification of targeted policy. Only selected processes are protected.

mls - Multi Level Security protection.

SELINUXTYPE=targeted


[root@localhost ~]# systemctl status mariadb
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# systemctl enable mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# systemctl start mariadb
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# systemctl status mariadb
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since 水 2018-10-10 00:58:22 JST; 13s ago
Process: 1398 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 1319 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 1397 (mysqld_safe)
CGroup: /system.slice/mariadb.service
tq1397 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
mq1559 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/my...

10月 10 00:58:20 localhost.localdomain mariadb-prepare-db-dir[1319]: MySQ...
10月 10 00:58:20 localhost.localdomain mariadb-prepare-db-dir[1319]: Plea...
10月 10 00:58:20 localhost.localdomain mariadb-prepare-db-dir[1319]: The ...
10月 10 00:58:20 localhost.localdomain mariadb-prepare-db-dir[1319]: You ...
10月 10 00:58:20 localhost.localdomain mariadb-prepare-db-dir[1319]: http...
10月 10 00:58:20 localhost.localdomain mariadb-prepare-db-dir[1319]: Cons...
10月 10 00:58:20 localhost.localdomain mariadb-prepare-db-dir[1319]: http...
10月 10 00:58:20 localhost.localdomain mysqld_safe[1397]: 181010 00:58:20...
10月 10 00:58:20 localhost.localdomain mysqld_safe[1397]: 181010 00:58:20...
10月 10 00:58:22 localhost.localdomain systemd[1]: Started MariaDB databa...
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!

By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
... Success!

Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
... Success!

Cleaning up...

All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!
[root@localhost ~]# mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database zabbixDB character set utf8 collate utf8_bin; ;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> grant all privileges on zabbixDB.* to zabbixuser@localhost identi fied by 'ZabbixPW123!!';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit
Bye
[root@localhost ~]# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbixuser -p zabbixDB
Enter password:
[root@localhost ~]# mysql -uroot -p zabbixDB
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 12
Server version: 5.5.60-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [zabbix]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| zabbixDB |
+--------------------+
4 rows in set (0.00 sec)

MariaDB [zabbix]> exit
Bye


[root@localhost ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:httpd(8)
man:apachectl(8)
[root@localhost ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since 水 2018-10-10 01:09:58 JST; 4s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 1694 (httpd)
Status: "Processing requests..."
CGroup: /system.slice/httpd.service
tq1694 /usr/sbin/httpd -DFOREGROUND
tq1696 /usr/sbin/httpd -DFOREGROUND
tq1697 /usr/sbin/httpd -DFOREGROUND
tq1698 /usr/sbin/httpd -DFOREGROUND
tq1699 /usr/sbin/httpd -DFOREGROUND
mq1700 /usr/sbin/httpd -DFOREGROUND

10月 10 01:09:58 localhost.localdomain systemd[1]: Starting The Apache HT...
10月 10 01:09:58 localhost.localdomain httpd[1694]: AH00558: httpd: Could...
10月 10 01:09:58 localhost.localdomain systemd[1]: Started The Apache HTT...
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@localhost ~]# systemctl enable zabbix-server
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.service.
[root@localhost ~]# systemctl start zabbix-server
[root@localhost ~]# systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: active (running) since 水 2018-10-10 01:10:18 JST; 3s ago
Process: 1728 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 1730 (zabbix_server)
CGroup: /system.slice/zabbix-server.service
mq1730 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.con...

10月 10 01:10:18 localhost.localdomain systemd[1]: Starting Zabbix Server...
10月 10 01:10:18 localhost.localdomain systemd[1]: PID file /run/zabbix/z...
10月 10 01:10:18 localhost.localdomain systemd[1]: Started Zabbix Server.
Hint: Some lines were ellipsized, use -l to show in full.

[root@localhost ~]# vi /etc/zabbix/zabbix_server.conf

[root@localhost ~]# cat /etc/zabbix/zabbix_server.confvi

############ GENERAL PARAMETERS #################

Option: ListenPort

Listen port for trapper.

#

Mandatory: no

Range: 1024-32767

Default:

ListenPort=10051

Option: SourceIP

Source IP address for outgoing connections.

#

Mandatory: no

Default:

SourceIP=

Option: LogType

Specifies where log messages are written to:

system - syslog

file - file specified with LogFile parameter

console - standard output

#

Mandatory: no

Default:

LogType=file

Option: LogFile

Log file name for LogType 'file' parameter.

#

Mandatory: yes, if LogType is set to file, otherwise no

Default:

LogFile=

LogFile=/var/log/zabbix/zabbix_server.log

Option: LogFileSize

Maximum size of log file in MB.

0 - disable automatic log rotation.

#

Mandatory: no

Range: 0-1024

Default:

LogFileSize=1

LogFileSize=0

Option: DebugLevel

Specifies debug level:

0 - basic information about starting and stopping of Zabbix processes

1 - critical information

2 - error information

3 - warnings

4 - for debugging (produces lots of information)

5 - extended debugging (produces even more information)

#

Mandatory: no

Range: 0-5

Default:

DebugLevel=3

Option: PidFile

Name of PID file.

#

Mandatory: no

Default:

PidFile=/tmp/zabbix_server.pid

PidFile=/var/run/zabbix/zabbix_server.pid

Option: SocketDir

IPC socket directory.

Directory to store IPC sockets used by internal Zabbix services.

#

Mandatory: no

Default:

SocketDir=/tmp

SocketDir=/var/run/zabbix

Option: DBHost

Database host name.

If set to localhost, socket is used for MySQL.

If set to empty string, socket is used for PostgreSQL.

#

Mandatory: no

Default:

DBHost=localhost

Option: DBName

Database name.

For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.

#

Mandatory: yes

Default:

DBName=

DBName=zabbixDB

Option: DBSchema

Schema name. Used for IBM DB2 and PostgreSQL.

#

Mandatory: no

Default:

DBSchema=

Option: DBUser

Database user. Ignored for SQLite.

#

Mandatory: no

Default:

DBUser=

DBUser=zabbixuser

Option: DBPassword

Database password. Ignored for SQLite.

Comment this line if no password is used.

#

Mandatory: no

Default:

DBPassword=ZabbixPW123!!

Option: DBSocket

Path to MySQL socket.

#

Mandatory: no

Default:

DBSocket=

Option: DBPort

Database port when not using local socket. Ignored for SQLite.

#

Mandatory: no

Range: 1024-65535

Default:

DBPort=

Option: HistoryStorageURL

History storage HTTP[S] URL.

#

Mandatory: no

Default:

HistoryStorageURL=

Option: HistoryStorageTypes

Comma separated list of value types to be sent to the history storage.

#

Mandatory: no

Default:

HistoryStorageTypes=uint,dbl,str,log,text

Option: HistoryStorageDateIndex

Enable preprocessing of history values in history storage to store values in different indices based on date.

0 - disable

1 - enable

#

Mandatory: no

Default:

HistoryStorageDateIndex=0

Option: ExportDir

Directory for real time export of events, history and trends in newline delimited JSON format.

If set, enables real time export.

#

Mandatory: no

Default:

ExportDir=

Option: ExportFileSize

Maximum size per export file in bytes.

Only used for rotation if ExportDir is set.

#

Mandatory: no

Range: 1M-1G

Default:

ExportFileSize=1G

############ ADVANCED PARAMETERS ################

Option: StartPollers

Number of pre-forked instances of pollers.

#

Mandatory: no

Range: 0-1000

Default:

StartPollers=5

Option: StartIPMIPollers

Number of pre-forked instances of IPMI pollers.

The IPMI manager process is automatically started when at least one IPMI poller is started.

#

Mandatory: no

Range: 0-1000

Default:

StartIPMIPollers=0

Option: StartPreprocessors

Number of pre-forked instances of preprocessing workers.

The preprocessing manager process is automatically started when preprocessor worker is started.

#

Mandatory: no

Range: 1-1000

Default:

StartPreprocessors=3

Option: StartPollersUnreachable

Number of pre-forked instances of pollers for unreachable hosts (including IPMI and Java).

At least one poller for unreachable hosts must be running if regular, IPMI or Java pollers

are started.

#

Mandatory: no

Range: 0-1000

Default:

StartPollersUnreachable=1

Option: StartTrappers

Number of pre-forked instances of trappers.

Trappers accept incoming connections from Zabbix sender, active agents and active proxies.

At least one trapper process must be running to display server availability and view queue

in the frontend.

#

Mandatory: no

Range: 0-1000

Default:

StartTrappers=5

Option: StartPingers

Number of pre-forked instances of ICMP pingers.

#

Mandatory: no

Range: 0-1000

Default:

StartPingers=1

Option: StartDiscoverers

Number of pre-forked instances of discoverers.

#

Mandatory: no

Range: 0-250

Default:

StartDiscoverers=1

Option: StartHTTPPollers

Number of pre-forked instances of HTTP pollers.

#

Mandatory: no

Range: 0-1000

Default:

StartHTTPPollers=1

Option: StartTimers

Number of pre-forked instances of timers.

Timers process maintenance periods.

Only the first timer process handles host maintenance updates. Problem suppression updates are shared.

between all timers.

#

Mandatory: no

Range: 1-1000

Default:

StartTimers=1

Option: StartEscalators

Number of pre-forked instances of escalators.

#

Mandatory: no

Range: 0-100

Default:

StartEscalators=1

Option: StartAlerters

Number of pre-forked instances of alerters.

Alerters send the notifications created by action operations.

#

Mandatory: no

Range: 0-100

Default:

StartAlerters=3

Option: JavaGateway

IP address (or hostname) of Zabbix Java gateway.

Only required if Java pollers are started.

#

Mandatory: no

Default:

JavaGateway=

Option: JavaGatewayPort

Port that Zabbix Java gateway listens on.

#

Mandatory: no

Range: 1024-32767

Default:

JavaGatewayPort=10052

Option: StartJavaPollers

Number of pre-forked instances of Java pollers.

#

Mandatory: no

Range: 0-1000

Default:

StartJavaPollers=0

Option: StartVMwareCollectors

Number of pre-forked vmware collector instances.

#

Mandatory: no

Range: 0-250

Default:

StartVMwareCollectors=0

Option: VMwareFrequency

How often Zabbix will connect to VMware service to obtain a new data.

#

Mandatory: no

Range: 10-86400

Default:

VMwareFrequency=60

Option: VMwarePerfFrequency

How often Zabbix will connect to VMware service to obtain performance data.

#

Mandatory: no

Range: 10-86400

Default:

VMwarePerfFrequency=60

Option: VMwareCacheSize

Size of VMware cache, in bytes.

Shared memory size for storing VMware data.

Only used if VMware collectors are started.

#

Mandatory: no

Range: 256K-2G

Default:

VMwareCacheSize=8M

Option: VMwareTimeout

Specifies how many seconds vmware collector waits for response from VMware service.

#

Mandatory: no

Range: 1-300

Default:

VMwareTimeout=10

Option: SNMPTrapperFile

Temporary file used for passing data from SNMP trap daemon to the server.

Must be the same as in zabbix_trap_receiver.pl or SNMPTT configuration file.

#

Mandatory: no

Default:

SNMPTrapperFile=/tmp/zabbix_traps.tmp

SNMPTrapperFile=/var/log/snmptrap/snmptrap.log

Option: StartSNMPTrapper

If 1, SNMP trapper process is started.

#

Mandatory: no

Range: 0-1

Default:

StartSNMPTrapper=0

Option: ListenIP

List of comma delimited IP addresses that the trapper should listen on.

Trapper will listen on all network interfaces if this parameter is missing.

#

Mandatory: no

Default:

ListenIP=0.0.0.0

ListenIP=127.0.0.1

Option: HousekeepingFrequency

How often Zabbix will perform housekeeping procedure (in hours).

Housekeeping is removing outdated information from the database.

To prevent Housekeeper from being overloaded, no more than 4 times HousekeepingFrequency

hours of outdated information are deleted in one housekeeping cycle, for each item.

To lower load on server startup housekeeping is postponed for 30 minutes after server start.

With HousekeepingFrequency=0 the housekeeper can be only executed using the runtime control option.

In this case the period of outdated information deleted in one housekeeping cycle is 4 times the

period since the last housekeeping cycle, but not less than 4 hours and not greater than 4 days.

#

Mandatory: no

Range: 0-24

Default:

HousekeepingFrequency=1

Option: MaxHousekeeperDelete

The table "housekeeper" contains "tasks" for housekeeping procedure in the format:

[housekeeperid], [tablename], [field], [value].

No more than 'MaxHousekeeperDelete' rows (corresponding to [tablename], [field], [value])

will be deleted per one task in one housekeeping cycle.

SQLite3 does not use this parameter, deletes all corresponding rows without a limit.

If set to 0 then no limit is used at all. In this case you must know what you are doing!

#

Mandatory: no

Range: 0-1000000

Default:

MaxHousekeeperDelete=5000

Option: CacheSize

Size of configuration cache, in bytes.

Shared memory size for storing host, item and trigger data.

#

Mandatory: no

Range: 128K-8G

Default:

CacheSize=8M

Option: CacheUpdateFrequency

How often Zabbix will perform update of configuration cache, in seconds.

#

Mandatory: no

Range: 1-3600

Default:

CacheUpdateFrequency=60

Option: StartDBSyncers

Number of pre-forked instances of DB Syncers.

#

Mandatory: no

Range: 1-100

Default:

StartDBSyncers=4

Option: HistoryCacheSize

Size of history cache, in bytes.

Shared memory size for storing history data.

#

Mandatory: no

Range: 128K-2G

Default:

HistoryCacheSize=16M

Option: HistoryIndexCacheSize

Size of history index cache, in bytes.

Shared memory size for indexing history cache.

#

Mandatory: no

Range: 128K-2G

Default:

HistoryIndexCacheSize=4M

Option: TrendCacheSize

Size of trend cache, in bytes.

Shared memory size for storing trends data.

#

Mandatory: no

Range: 128K-2G

Default:

TrendCacheSize=4M

Option: ValueCacheSize

Size of history value cache, in bytes.

Shared memory size for caching item history data requests.

Setting to 0 disables value cache.

#

Mandatory: no

Range: 0,128K-64G

Default:

ValueCacheSize=8M

Option: Timeout

Specifies how long we wait for agent, SNMP device or external check (in seconds).

#

Mandatory: no

Range: 1-30

Default:

Timeout=3

Timeout=4

Option: TrapperTimeout

Specifies how many seconds trapper may spend processing new data.

#

Mandatory: no

Range: 1-300

Default:

TrapperTimeout=300

Option: UnreachablePeriod

After how many seconds of unreachability treat a host as unavailable.

#

Mandatory: no

Range: 1-3600

Default:

UnreachablePeriod=45

Option: UnavailableDelay

How often host is checked for availability during the unavailability period, in seconds.

#

Mandatory: no

Range: 1-3600

Default:

UnavailableDelay=60

Option: UnreachableDelay

How often host is checked for availability during the unreachability period, in seconds.

#

Mandatory: no

Range: 1-3600

Default:

UnreachableDelay=15

Option: AlertScriptsPath

Full path to location of custom alert scripts.

Default depends on compilation options.

To see the default path run command "zabbix_server --help".

#

Mandatory: no

Default:

AlertScriptsPath=${datadir}/zabbix/alertscripts

AlertScriptsPath=/usr/lib/zabbix/alertscripts

Option: ExternalScripts

Full path to location of external scripts.

Default depends on compilation options.

To see the default path run command "zabbix_server --help".

#

Mandatory: no

Default:

ExternalScripts=${datadir}/zabbix/externalscripts

ExternalScripts=/usr/lib/zabbix/externalscripts

Option: FpingLocation

Location of fping.

Make sure that fping binary has root ownership and SUID flag set.

#

Mandatory: no

Default:

FpingLocation=/usr/sbin/fping

Option: Fping6Location

Location of fping6.

Make sure that fping6 binary has root ownership and SUID flag set.

Make empty if your fping utility is capable to process IPv6 addresses.

#

Mandatory: no

Default:

Fping6Location=/usr/sbin/fping6

Option: SSHKeyLocation

Location of public and private keys for SSH checks and actions.

#

Mandatory: no

Default:

SSHKeyLocation=

Option: LogSlowQueries

How long a database query may take before being logged (in milliseconds).

Only works if DebugLevel set to 3, 4 or 5.

0 - don't log slow queries.

#

Mandatory: no

Range: 1-3600000

Default:

LogSlowQueries=0

LogSlowQueries=3000

Option: TmpDir

Temporary directory.

#

Mandatory: no

Default:

TmpDir=/tmp

Option: StartProxyPollers

Number of pre-forked instances of pollers for passive proxies.

#
#\ Mandatory: no
#\ Range: 0-250
#\ Default:
#\ StartProxyPollers=1

### Option: ProxyConfigFrequency

How often Zabbix Server sends configuration data to a Zabbix Proxy in seconds.

This parameter is used only for proxies in the passive mode.

#\
#\ Mandatory: no
#\ Range: 1-3600247
#\ Default:
#\ ProxyConfigFrequency=3600

Option: ProxyDataFrequency

How often Zabbix Server requests history data from a Zabbix Proxy in seconds.

This parameter is used only for proxies in the passive mode.

#

Mandatory: no

Range: 1-3600

Default:

ProxyDataFrequency=1

Option: AllowRoot

Allow the server to run as 'root'. If disabled and the server is started by 'root', the server

will try to switch to the user specified by the User configuration option instead.

Has no effect if started under a regular user.

0 - do not allow

1 - allow

#

Mandatory: no

Default:

AllowRoot=0

Option: User

Drop privileges to a specific, existing user on the system.

Only has effect if run as 'root' and AllowRoot is disabled.

#

Mandatory: no

Default:

User=zabbix

Option: Include

You may include individual files or all files in a directory in the configuration file.

Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.

#

Mandatory: no

Default:

Include=

Include=/usr/local/etc/zabbix_server.general.conf

Include=/usr/local/etc/zabbix_server.conf.d/

Include=/usr/local/etc/zabbix_server.conf.d/*.conf

Option: SSLCertLocation

Location of SSL client certificates.

This parameter is used only in web monitoring.

Default depends on compilation options.

To see the default path run command "zabbix_server --help".

#

Mandatory: no

Default:

SSLCertLocation=${datadir}/zabbix/ssl/certs

Option: SSLKeyLocation

Location of private keys for SSL client certificates.

This parameter is used only in web monitoring.

Default depends on compilation options.

To see the default path run command "zabbix_server --help".

#

Mandatory: no

Default:

SSLKeyLocation=${datadir}/zabbix/ssl/keys

Option: SSLCALocation

Override the location of certificate authority (CA) files for SSL server certificate verification.

If not set, system-wide directory will be used.

This parameter is used only in web monitoring and SMTP authentication.

#

Mandatory: no

Default:

SSLCALocation=

####### LOADABLE MODULES #######

Option: LoadModulePath

Full path to location of server modules.

Default depends on compilation options.

To see the default path run command "zabbix_server --help".

#

Mandatory: no

Default:

LoadModulePath=${libdir}/modules

Option: LoadModule

Module to load at server startup. Modules are used to extend functionality of the server.

Format: LoadModule=<module.so>

The modules must be located in directory specified by LoadModulePath.

It is allowed to include multiple LoadModule parameters.

#

Mandatory: no

Default:

LoadModule=

####### TLS-RELATED PARAMETERS #######

Option: TLSCAFile

Full pathname of a file containing the top-level CA(s) certificates for

peer certificate verification.

#

Mandatory: no

Default:

TLSCAFile=

Option: TLSCRLFile

Full pathname of a file containing revoked certificates.

#

Mandatory: no

Default:

TLSCRLFile=

Option: TLSCertFile

Full pathname of a file containing the server certificate or certificate chain.

#

Mandatory: no

Default:

TLSCertFile=

Option: TLSKeyFile

Full pathname of a file containing the server private key.

#

Mandatory: no

Default:

TLSKeyFile=

[root@localhost ~]# vi /etc/httpd/conf.d/zabbix.conf

[root@localhost ~]# cat /etc/httpd/conf.d/zabbix.conf
#

Zabbix monitoring system php web frontend

#

Alias /zabbix /usr/share/zabbix


Options FollowSymLinks
AllowOverride None
Require all granted

<IfModule mod_php5.c>
    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    php_value max_input_vars 10000
    php_value always_populate_raw_post_data -1
    # php_value date.timezone Europe/Riga
</IfModule>


Require all denied


Require all denied


Require all denied


Require all denied

[root@localhost ~]# cat /etc/httpd/conf.d/zabbix.conf


[root@localhost ~]# vi /etc/httpd/conf.d/zabbix.conf
#

Zabbix monitoring system php web frontend

#

Alias /zabbix /usr/share/zabbix


Options FollowSymLinks
AllowOverride None
Require all granted

<IfModule mod_php5.c>
    php_value max_execution_time 300
    php_value memory_limit 128M
    php_value post_max_size 16M
    php_value upload_max_filesize 2M
    php_value max_input_time 300
    php_value max_input_vars 10000
    php_value always_populate_raw_post_data -1
    php_value date.timezone Asia/Tokyo
</IfModule>


Require all denied


Require all denied


Require all denied


Require all denied

[root@localhost ~]# firewall-cmd --add-service=http --permanent
success
[root@localhost ~]# firewall-cmd --reload
success
[root@localhost ~]# systemctl restart httpd
[root@localhost ~]# systemctl restart zabbix-server




久しぶりにみてみると、モバイルバッテリーもずいぶん安くなってるんですね!

皆さん既にやってると思いますが、 AmazonPrimeだとAmazon Music Unlimitedが月額780円でできるんですね!
最近知ってapple musicから乗り換えました。(200円ですが安い方がいいに越したことはないです笑)

下のPythonの本は kindle unlimitedで無料で読めますのでお勧めです!(30日無料期間に読んで解約もアリだと思います。笑)



投稿者:

mame

都内20代前半ITエンジニア 見た目は女性、性格は男・・・ 品のある女性になりたいT_T 既婚子持ち 趣味の:IT、DIY、投資 などについてのメモblog

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です