Adeegbixinta iyo kormeerka Zabbix 3

Zabbix_logo
Waad salaaman tihiin dhamaantiin. Markan waxaan kuu keenay qalabkan faa iidada badan leh oo aan dad badani garanayn, si aad u awoodo inaad ula socoto oo aad u daawato dhaqdhaqaaqa adeegeyaashayada oo dhan oo hal meel ah.

Qaar badan ayaa ah aaladaha tan ku sameeya gebi ahaanba ama qayb ahaan, xaaladaha kale waa inaan ku rakibnaa dhowr si aan u helno faa'iidada aan raadineyno.

Runtu waxay tahay in zabbix ay ku hoos shaqeyso tusaalaha hal nooc oo aanad ku bixinaynin dinaar oo ay ku leedahay bulsho wanaagsan. Laakiin sida had iyo jeer, haddii aad doorbideyso ama aad leedahay ilo adeeg iyo / ama qandaraas taageero iyo sidoo kale tababar aad u wanaagsan oo loo adeegsado aaladda, waxaan kuu sheegi lahaa inaysan ahayn maalgashi xun.

Hagaag gaar ahaan qalabkani waxaa kaliya loogu talagalay qaybinta iyada oo ku saleysan debian, ubuntu, redhat. Marka waxaa laga yaabaa inay xaddidan tahay qaar, maxaa yeelay waxay u badan tahay inay tixraacaan ilaha laga soo ururinayo.

Waayahay, hadda waxaan la soconnaa casharrada si buuxda. Waxaan ku rakibay qalabkan debian 8 jessie. Server nadiif ah oo wata keydka keydka server kale, laakiin taasi qof walba ayay ku xiran tahay.

Tallaabada 1

Kala soo bax serverka zabbixiyaha oo horay uga soo qaado halkan

Beddelka kale ayaa si toos ah uga socda adeeggaaga.

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 .

Waxaan rakibnaa xirmooyinkaan oo aan xallinnaa kuwa ku tiirsan.

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

Tallaabada 2

Kudar magaca adeegeena tusaale zabbix.mydomain.com

 vi /etc/hosts

Waxaan ku darnaa tusaale ahaan:
192.168.1.100 zabbix zabbix.mydomain.com

Sida caadiga ah zabbix waxay ku rakibeysaa Apache-keena qaab isku mid ah /etc/apache2/conf-enabled/zabbix.conf, si aad uhesho sida soo socota http: // / zabbix, ma jecli sidaa darteed waan awoodi karnaa

a2disconf zabbix.conf

Tallaabada 2.1 (ikhtiyaari ah - haddii aad uga tagtay qaabdhismeedkii hore siduu yahay, u gudub tallaabada 3)

Intaa waxaa dheer ama ikhtiyaar ahaan waxaad ubaahantahay inaad sameysid qaab muuqaal ah ama aad wax ka badasho 000-default.conf sidaad doorbido oo aad kudarto waxyaabaha soo socda

 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>

Waan keydinaa, baxnaa oo orodnaa


a2ensite zabbix.midominio.com.conf
service apache2 restart

Tallaabada 3

Dejinta xogta

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

.Sql ayaa kujira

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

Waxay ku shuban karaan pgadmin3 ama pgsql
waxaa qoray 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

By PgAdmin3 waa wax ka fudud
1 taabo sql, oo hubi inaad kujirto diiwaanka saxda ah
2 riix fur oo xamuul .sql gudaha gudaha .gz
3 orod, oo waad dhamaysay

Screenshot laga soo bilaabo 2016-04-30 13:02:10
Tallaabada 4

vi /etc/zabbix/zabbix_server.conf

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

Tallaabada 5

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

rakibi_1 way fiicantahay halkaan hadaan u tagnay mysql ama postgres waa inaan hubinaa in waxwalba ay cagaaranyihiin ikhtiyaarkeena keydka macluumaadkana la muujiyay. Waxyaabo muhiim ah oo ku saabsan aaga waqtiga php ayaa lagu tafatiri karaa /etc/php5/apache2/php.ini Calaamadda taariikhda.timezone = Ameerika / Curacao tusaale ahaan, dhammaan aagagga la oggol yahay waa halkan

rakibi_2 21 Kadibna waa inaanu habeeynaa keydka macluumaadka, xusuusnow inaad bedesho ciidankii haddii ay ku jirto server kale, sidoo kale isticmaalaha, lambarka sirta iyo magaca keydka macluumaadka
rakibi_3 3134786815727242010 Hadda faahfaahinta serverka

rakibi_4 Marti-geliyaha, haddii aad domain ku leedahay server-kaaga, ku dheji, oo magac ahaanna u yaree, tusaale ahaan, host: zabbix.midomain.com, iyo magac ahaan: zabbix

rakibi_5 870039153112911113 Oo hadaad ogolaato, marka xigta oo waa inaad noo sheegtaa ...

rakibi_7 hada waxaan helnaa kaliya zabbix.mydomain.com

login
default waa Admin - zabbix

Tallaabada 6

Waxaan ku rakibnaa macmiilka adeegeena

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

Tallaabada 7

Waxaan kuugu sharaxayaa casharkaan waxyaabaha ugu aasaasiga ah ee lagu kordhin karo macmiil, maxaa yeelay asal ahaan zabbix server wuxuu habeeyay dhowr shey, kiciyayaal, ficil iwm ... qoraal labaad waxaan ku tusi doonaa mowduucan si qoto dheer

Screenshot laga soo bilaabo 2016-04-30 14:04:49 Qaabeynta> Martida> Abuur marti

Screenshot laga soo bilaabo 2016-04-30 14:05:38

magaca aqalka waa magaca saxda ah ee ay tahay inaad gasho zabbix_agent.conf, magacani badanaa waa farsamo badan ... tusaale srv-01, taasi waxba iima sheegayso, xitaa sharaxaadda serverka
Magaca muuqda Horayba waa magac saaxiibtinimo badan oo kuu oggolaanaysa ka maamul ahaan inaad ogaato serverka uu yahay ... tusaale ahaan Boostada
Kooxaha waa kooxdee ay hoskan ka tirsan yihiin, ama waxaad ku abuuri kartaa koox cusub koox cusub
Isdhexgalka wakiilada, waxaad ka kormeeri kartaa in ka badan 1 interface, laakiin ugu yaraan mid waa in lagu caddeeyaa cinwaanka IP iyo / ama Magaca DNS

Screenshot laga soo bilaabo 2016-04-30 14:06:24 Kadibna waan bixinnaa Template oo sidaan soo sheegayba, waxay hore u leedahay qaar badan oo hore loogu dhawaaqay by default, sida http / https, ssh, icmp iyo xitaa qaar ka mid ah oo ay ku jiraan dhowr arrimo hal, sida OSLinux.
Marka hore waad riixaysaa Dooro, ka dibna hubi dhammaan tusmooyinka aad u baahan tahay oo riix dooro daaqaddaas cusub, ugu dambayntii ku dar

Screenshot laga soo bilaabo 2016-04-30 14:08:02 Tallaabada ugu dambeysa, waxaan kugula talineynaa inaad kiciso alaabada martigeliyaha otomaatiga

Hadda si aan ugu dhammeyno server-ka aan dooneyno inaan kormeerno oo aan horeyba ugu sheegnay serverka, waxaan wax ka bedelnaa faylka wakiilka

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

Tani waa tan oo dhan fursaddan qaybtii labaad ee casharradan, waxaan qorshaynayaa inaan si qoto dheer ugu dhaadhaco dhammaan kiciyaasha, ficillada iyo howlaha aad uga faa'iideysan karto codsigan. Mahadsanid lana soco


Nuxurka maqaalka wuxuu u hogaansamayaa mabaadi'deena anshaxa tifaftirka. Si aad u soo sheegto khalad guji Halkan.

5 faallooyin, ka tag taada

Ka tag faalladaada

cinwaanka email aan la daabacin doonaa.

*

*

  1. Masuul ka ah xogta: Miguel Ángel Gatón
  2. Ujeedada xogta: Xakamaynta SPAM, maaraynta faallooyinka.
  3. Sharci: Oggolaanshahaaga
  4. Isgaarsiinta xogta: Xogta looma gudbin doono dhinacyada saddexaad marka laga reebo waajibaadka sharciga ah.
  5. Kaydinta xogta: Macluumaadka ay martigelisay Shabakadaha Occentus (EU)
  6. Xuquuqda: Waqti kasta oo aad xadidi karto, soo ceshan karto oo tirtiri karto macluumaadkaaga.

  1.   Rodolfo dijo

    Qalabkani wuxuu u muuqdaa mid aad u fiican, waxaan rajeynayaa boostada labaad.

  2.   Proferay dijo

    Jaleecada hore waxay umuuqataa inay tahay qalab dhameystiran oo awood badan. Waxaan isku dayi doonaa inaan qaabeeyo waqti yar.
    Waad ku mahadsan tahay macluumaadka!

  3.   Alberto dijo

    Waxaan aad u xiiseynayaa tijaabinta qalabka kormeerka waxaanan jeclaan lahaa inaan ogaado kuwa aad u maleyneyso inay ugu fiican yihiin.
    Horey ayaan uga ogaa Zabbix, laakiin waxay ila muuqataa inay igu yara adagtahay aqoonteyda darteed, in kastoo aan fursad kale siin doono anigoo raacaya (inta aan awoodo) talaabooyinka tan iyo qodobbada kale ee imanaya (Mahadsanid!) . Ka dhig mid la awoodi karo sida ugu macquulsan fadlan :))
    Qalab kale oo aan aad u xiiseeyo ayaa ah: GRAPHANA oo aan sidoo kale isku dayo. Mid kale oo wanaagsan oo aan isleeyahay waa: NAGIOS
    Miyaad taqaan kuwa kale oo tixraac u ah kormeerka xogta iyo muuqaalka kuwaas oo si fudud loo fulin karo?

    1.    Arturo dijo

      Waxaan isticmaalaa CACTI waxaan ku sameeyay tijaabooyin Pandora FMS iyo ntop

  4.   Diego dijo

    Tababar fiican! lasoco qaybta labaad. Shaqo wacan