Abojuto Zabbix 3 ati iṣẹ ibojuwo

Zabbix_logo
Bawo ni gbogbo eniyan. Ni akoko yii Mo mu ọ ni ọpa ti o wulo pupọ yii ati aimọ nipasẹ ọpọlọpọ, lati ni anfani lati ṣe atẹle ati atẹle iṣẹ ti awọn olupin wa gbogbo lati ibi kanna.

Ọpọlọpọ ni awọn irinṣẹ ti o ṣe eyi patapata tabi ni apakan, ni awọn omiiran miiran a gbọdọ fi sori ẹrọ pupọ lati gba anfani ti a n wa.

Otitọ ni pe zabbix n ṣiṣẹ labẹ awoṣe ti ẹyọkan ẹyọkan fun eyiti iwọ ko sanwo penny kan ati pe o ni agbegbe ti o dara. Ṣugbọn bi igbagbogbo, ti o ba fẹ tabi ni awọn orisun fun iṣẹ kan ati / tabi adehun atilẹyin bi daradara bi ikẹkọ ti o dara pupọ lati lo ọpa, Emi yoo sọ fun ọ pe kii ṣe idoko-owo buburu.

Daradara paapaa ọpa yii jẹ fun awọn pinpin nikan ti o da lori debian, ubuntu, redhat. Nitorinaa boya o ni opin fun diẹ ninu, bi wọn ṣe le jasi ni lati tọka si awọn orisun lati ṣajọ.

Ok, bayi a lọ pẹlu itọnisọna ni kikun. Mo ti ṣe fifi sori ẹrọ yii lori debian 8 jessie. Olupin mimọ ati ibi ipamọ data lori olupin miiran, ṣugbọn iyẹn jẹ fun gbogbo eniyan.

Igbesẹ 1

Ṣe igbasilẹ olupin zabbix ati frontend lati nibi

Omiiran miiran jẹ taara lati ọdọ olupin rẹ.

wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix/zabbix-server-pgsql_3.0.2-1+jessie_amd64.deb .
 wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix/zabbix-frontend-php_3.0.2-1+jessie_all.deb .

A fi awọn idii wọnyi sii ati yanju awọn igbẹkẹle.

dpkg -i *.deb
 apt-get install -f

Igbesẹ 2

A ṣafikun orukọ apẹẹrẹ olupin wa zabbix.mydomain.com

 vi /etc/hosts

A ṣafikun fun apẹẹrẹ:
192.168.1.100 zabbix zabbix.mydomain.com

Nipa aiyipada zabbix fi sori ẹrọ ni afun wa iṣeto inagijẹ ni /etc/apache2/conf-enabled/zabbix.conf, lati wọle si bi atẹle http: // / zabbix, Emi ko fẹran rẹ ki a le mu

a2disconf zabbix.conf

Igbesẹ 2.1 (aṣayan-ti o ba fi iṣeto ti tẹlẹ silẹ bi o ti wa, foju si igbesẹ 3)

Ni afikun tabi ni yiyan o yoo ni lati ṣẹda foju-aye tabi yipada 000-default.conf bi o ṣe fẹ ki o ṣafikun atẹle naa

 vi /etc/apache2/sites-available/zabbix.midominio.com.conf

<VirtualHost *:80>

ServerName zabbix.midominio.com

DocumentRoot /usr/share/zabbix

<Directory "/usr/share/zabbix">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

<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 always_populate_raw_post_data -1
</IfModule>
</Directory>

<Directory "/usr/share/zabbix/conf">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>

<Directory "/usr/share/zabbix/app">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>

<Directory "/usr/share/zabbix/include">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>

<Directory "/usr/share/zabbix/local">
Order deny,allow
Deny from all
<files *.php>
Order deny,allow
Deny from all
</files>
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

A fipamọ, jade lọ ati ṣiṣe


a2ensite zabbix.midominio.com.conf
service apache2 restart

Igbesẹ 3

Ṣiṣeto ibi ipamọ data

aptitude install php5-pgsql
aptitude install libapache2-mod-auth-pgsql
service apache2 reload

Awọn .sql wa ninu

cd /usr/share/doc/zabbix-server-pgsql/create.sql.gz

Wọn le gbe ẹ nipasẹ pgadmin3 tabi nipasẹ pgsql
nipasẹ psql

su - postgres
psql
CREATE USER zabbix WITH PASSWORD 'myPassword';
CREATE DATABASE zabixdb;
GRANT ALL PRIVILEGES ON DATABASE zabbixdb to zabbix;
\q
psql -U zabbix -d zabbixdb -f create.sql

Nipa PgAdmin3 o rọrun pupọ
1 tẹ sql, ki o ṣayẹwo pe o wa ni ibi ipamọ data to tọ
2 tẹ ṣii ati fifuye .sql ti o wa ninu .gz
3 ṣiṣe, ati pe o ti pari

Iboju ti 2016-04-30 13:02:10
Igbesẹ 4

vi /etc/zabbix/zabbix_server.conf

DBHost=192.168.x.x
 DBName=zabbixdb
 DBSchema=public
 DBUser=zabbix
 DBPassword=password

Igbesẹ 5

http://<server_ip_or_name>/zabbix
o
http://<server_ip_or_name>

fi sori ẹrọ_1 o dara ni aaye yii ti a ba lọ fun mysql tabi awọn ifiweranṣẹ a gbọdọ ṣayẹwo pe ohun gbogbo wa ni alawọ ewe ati pe aṣayan data data wa ti han. Nkankan pataki nipa agbegbe aago php le ṣatunkọ ninu /etc/php5/apache2/php.ini Ninu aami date.timezone = Amẹrika / Curacao fun apẹẹrẹ, gbogbo awọn agbegbe ti a gba laaye ni nibi

fi sori ẹrọ_2 21 Lẹhinna a gbọdọ tunto ibi ipamọ data, ranti lati yi awọn pada ogun ti o ba wa lori olupin miiran, bakanna olumulo, ọrọ igbaniwọle ati orukọ ibi ipamọ data
fi sori ẹrọ_3 3134786815727242010 Bayi awọn alaye olupin

fi sori ẹrọ_4 Ni agbalejo, ti o ba ni ibugbe lori olupin rẹ, fi sii, ati ni orukọ orukọ idinku, apẹẹrẹ, agbalejo: zabbix.mydomain.com, ati ni orukọ: zabbix

fi sori ẹrọ_5 870039153112911113 Ati pe ti o ba gba, atẹle ati pe o yẹ ki o sọ fun wa ...

fi sori ẹrọ_7 bayi a wọle si zabbix.mydomain.com nikan

wo ile
aiyipada ni Abojuto - zabbix

Igbesẹ 6

A fi alabara sori ẹrọ olupin wa

wget http://repo.zabbix.com/zabbix/3.0/debian/pool/main/z/zabbix/zabbix-agent_3.0.2-1+jessie_amd64.deb .
 dpkg -i zabbix-agent_3.0.2-1+jessie_amd64.deb
 /etc/init.d/zabbix-agent start

Igbesẹ 7

Emi yoo ṣe alaye ninu ẹkọ yii awọn nkan ipilẹ julọ lati ṣafikun alabara kan, nitori nipa aiyipada olupin zabbix ti tunto ọpọlọpọ awọn awoṣe, awọn okunfa, iṣẹ abbl .. ni ipo keji Emi yoo fi koko yii han ọ ni ijinle diẹ sii

Iboju ti 2016-04-30 14:04:49 Iṣeto ni> Awọn ogun> Ṣẹda alejo gbigba

Iboju ti 2016-04-30 14:05:38

hostname ni orukọ gangan ti o gbọdọ fi sii zabbix_agentd.conf, orukọ yii nigbagbogbo jẹ imọ-ẹrọ diẹ sii ... apẹẹrẹ srv-01, iyẹn ko sọ ohunkohun fun mi, paapaa apejuwe ti olupin naa
Orukọ ti o han O ti jẹ orukọ ọrẹ diẹ sii ti o fun laaye laaye bi alakoso lati mọ iru olupin wo ni ... apẹẹrẹ Meeli
Awọn ẹgbẹ jẹ ẹgbẹ wo ni hos yii jẹ, tabi o le ṣẹda tuntun ninu ẹgbẹ Tuntun
Awọn atọkun aṣoju, o le ṣe atẹle lati diẹ sii ju wiwo 1, ṣugbọn o kere ju ọkan gbọdọ wa ni ikede nipasẹ IP ipamọ ati / tabi Orukọ DNS

Iboju ti 2016-04-30 14:06:24 Lẹhinna a fun awoṣe ati bi mo ti mẹnuba, o ti ni ọpọlọpọ tẹlẹ ti kede nipasẹ aiyipada, bii http / https, ssh, icmp ati paapaa diẹ ninu ti o ni ọpọlọpọ awọn awoṣe ninu ọkan, gẹgẹbi OS Linux.
Akọkọ o tẹ yan, lẹhinna ṣayẹwo gbogbo awọn awoṣe ti o nilo ki o tẹ yan lati ferese tuntun yẹn, nikẹhin fi

Iboju ti 2016-04-30 14:08:02 Gẹgẹbi igbesẹ ti o kẹhin, Mo ṣeduro muu ṣiṣẹ akojo-ọja Aifọwọyi

Bayi lati pari lori olupin ti a fẹ ṣe atẹle ati pe a ti kede tẹlẹ lori olupin naa, a ṣatunkọ faili failiddd

vi /etc/zabbix/zabbix_agentd.conf
Server= ip del servidor
ServerActive=ip del servidor
Hostname=el nombre hostname que colocamos en la configuracion host del server, tiene que ser exactamente igual, mayusculas, espacios, simbolos, sino te dará un error
/etc/init.d/zabbix-agent start

Eyi ni gbogbo fun anfani yii ni ẹya keji ti ẹkọ yii, Mo gbero lati lọ si ijinle pẹlu gbogbo awọn okunfa, awọn iṣe ati awọn iṣẹ ti o le lo nilokulo lati inu ohun elo yii. O ṣeun ati duro aifwy


Awọn akoonu ti nkan naa faramọ awọn ilana wa ti awọn ilana olootu. Lati jabo aṣiṣe kan tẹ nibi.

Awọn asọye 5, fi tirẹ silẹ

Fi ọrọ rẹ silẹ

Adirẹsi imeeli rẹ yoo ko le ṣe atejade. O beere aaye ti wa ni samisi pẹlu *

*

*

  1. Lodidi fun data naa: Miguel Ángel Gatón
  2. Idi ti data naa: SPAM Iṣakoso, iṣakoso ọrọ asọye.
  3. Ofin: Iyọọda rẹ
  4. Ibaraẹnisọrọ data: Awọn data kii yoo ni ifọrọhan si awọn ẹgbẹ kẹta ayafi nipasẹ ọranyan ofin.
  5. Ibi ipamọ data: Alaye data ti o gbalejo nipasẹ Awọn nẹtiwọọki Occentus (EU)
  6. Awọn ẹtọ: Ni eyikeyi akoko o le ni opin, gba pada ki o paarẹ alaye rẹ.

  1.   Rodolfo wi

    Ọpa yii dun dara julọ, Mo nireti ifiweranṣẹ keji.

  2.   Proferay wi

    Ni iṣaju akọkọ o dabi pe o jẹ ohun elo pipe ati alagbara. Emi yoo gbiyanju lati tunto rẹ laipẹ.
    O ṣeun fun alaye naa!

  3.   Alberto wi

    Mo nifẹ pupọ si idanwo awọn irinṣẹ ibojuwo ati pe emi yoo fẹ lati mọ iru awọn wo ni o ro pe o dara julọ.
    Mo ti mọ tẹlẹ nipa Zabbix, ṣugbọn o dabi ohun ti o nira pupọ si mi nitori imọ mi, botilẹjẹpe Emi yoo fun ni aye miiran nipa titẹle (bi mo ti le ṣe) awọn igbesẹ ti eyi ati awọn nkan miiran ti o de (O ṣeun!) . Ṣe ki o jẹ ifarada bi o ti ṣee jọwọ :))
    Ọpa miiran ti Mo rii pupọ julọ ni: GRAFANA ti Mo tun ni lati gbiyanju. Omiiran miiran ti Mo ro pe ni: NAGIOS
    Njẹ o mọ awọn miiran ti o jẹ itọkasi ninu ibojuwo data ati iworan ti o rọrun lati ṣe lati ṣe?

    1.    Arturo wi

      Mo lo CACTI ati pe Mo ti ṣe awọn idanwo pẹlu Pandora FMS ati ntop

  4.   Diego wi

    Ikẹkọ nla! n reti siwaju si apakan keji. Iṣẹ ti o wuyi