<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zabbix instalace - Návody krok za krokem - initMAX s.r.o.</title>
	<atom:link href="https://www.initmax.cz/wiki/kapitola/zabbix/zabbix-instalace/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.initmax.cz/wiki/kapitola/zabbix/zabbix-instalace/</link>
	<description>Nabízíme monitoring všech prvků infrastruktury; správu identit, automatizaci serverů, služeb i aplikací; správu logů, databází a mnoho více.</description>
	<lastBuildDate>Thu, 12 Feb 2026 12:57:18 +0000</lastBuildDate>
	<language>cs</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Zabbix 8.0 LTS &#8211; návod na&#160;instalaci v&#160;5 minutách</title>
		<link>https://www.initmax.cz/wiki/zabbix-8-0-navod-na-instalaci-v-5-minutach/</link>
		
		<dc:creator><![CDATA[Tomáš Heřmánek]]></dc:creator>
		<pubDate>Thu, 06 Nov 2025 06:16:54 +0000</pubDate>
				<guid isPermaLink="false">https://www.initmax.cz/?post_type=wiki&#038;p=21302</guid>

					<description><![CDATA[<p>V tomto návodu si ukážeme, jak během pěti minut nainstalovat a nakonfigurovat nejnovější Zabbix verze 8.0 s databází PostgreSQL 18 a TimescaleDB. Výběr ...</p>
<p>The post <a href="https://www.initmax.cz/wiki/zabbix-8-0-navod-na-instalaci-v-5-minutach/">Zabbix 8.0 LTS &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>V tomto návodu si ukážeme, jak během pěti minut nainstalovat a&nbsp;nakonfigurovat nejnovější Zabbix verze 8.0 s&nbsp;databází PostgreSQL 18 a&nbsp;TimescaleDB.</p>



<h2 class="wp-block-heading" id="vyber-operacniho-systemu">Výběr operačního systému</h2>



<p>Návod obsahuje postup pro RHEL platformy na&nbsp;verzi 10, kde stačí případně jen poupravit repozitáře. Návod pro Debian je připraven pro verzi 13, která je aktuálně poslední podporovanou verzí.</p>


<section id="os-switcher-block_7866c8a9a39d0cd0441b4c526f2e1052" data-id="os-switcher-block_7866c8a9a39d0cd0441b4c526f2e1052" class="gt-block os-switcher">
                    <a class="os-switcher__item is-active" onclick="osSwitch(this,'#rhel')">
                            <figure>
                     <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800px" height="800px" viewBox="0 -31 256 256" version="1.1" preserveAspectRatio="xMidYMid"><g><path d="M170.758031,111.610687 C187.582343,111.610687 211.924474,108.140925 211.924474,88.1292728 C211.974775,86.5848226 211.834752,85.0400539 211.507565,83.5298204 L201.48829,40.009856 C199.175115,30.434388 197.144363,26.0904607 180.333499,17.6850288 C167.288269,11.014478 138.871184,0 130.465752,0 C122.638614,0 120.365785,10.0865183 111.032394,10.0865183 C102.048668,10.0865183 95.3781173,2.55525131 86.9726853,2.55525131 C78.9034707,2.55525131 73.6450325,8.05576597 69.5835277,19.3661152 C69.5835277,19.3661152 58.2731785,51.2664105 56.8207199,55.8927602 C56.5898643,56.7423115 56.4900906,57.6221338 56.5248487,58.5018063 C56.5248487,70.9014995 105.343597,111.556893 170.758031,111.556893 M214.506623,96.2522822 C216.833247,107.26676 216.833247,108.423348 216.833247,109.875806 C216.833247,128.703974 195.665007,139.153607 167.839665,139.153607 C104.953585,139.193953 49.8677466,102.344539 49.8677466,77.9889597 C49.8641113,74.5987697 50.555245,71.2437963 51.898499,68.1310691 C29.2778005,69.2607592 0,73.2953665 0,99.1437508 C0,141.48023 100.313787,193.661152 179.741757,193.661152 C240.63743,193.661152 255.995835,166.118232 255.995835,144.371699 C255.995835,127.264964 241.202275,107.845054 214.53352,96.2522822" fill="#EE0000"></path><path d="M214.506623,96.2522822 C216.833247,107.26676 216.833247,108.423348 216.833247,109.875806 C216.833247,128.703974 195.665007,139.15364 167.839665,139.15364 C104.953585,139.193953 49.8677323,102.344539 49.8677323,77.9889597 C49.8641113,74.5987697 50.555245,71.2437963 51.898499,68.1310691 L56.8207199,55.946555 C56.5952566,56.7787916 56.4955298,57.6400686 56.5248487,58.5018063 C56.5248487,70.9014995 105.343597,111.556893 170.758031,111.556893 C187.582343,111.556893 211.924474,108.08713 211.924474,88.075478 C211.974775,86.5310279 211.834752,84.9862591 211.507565,83.4760257 L214.506623,96.2522822 Z" fill="#000000"></path></g></svg>                 </figure>
                        <span>Alma/CentOS/RHEL/Rocky 10</span>
        </a>
                    <a class="os-switcher__item" onclick="osSwitch(this,'#debian')">
                            <figure>
                     <svg xmlns="http://www.w3.org/2000/svg" width="30.412" height="37.855" viewBox="0 0 30.412 37.855"><g data-name="Group 4978" transform="translate(0)"><path data-name="Path 3295" d="M51.55,57.148c-.627.009.119.323.938.449.226-.177.431-.355.614-.529a4.68,4.68,0,0,1-1.552.08" transform="translate(-33.375 -37.148)" fill="#a80030"></path><path data-name="Path 3296" d="M60.9,51.791a3.984,3.984,0,0,0,.742-1.664,4.059,4.059,0,0,1-.522,1.154c-1.172.738-.11-.438,0-.886-1.261,1.587-.173.952-.219,1.395" transform="translate(-39.357 -32.63)" fill="#a80030"></path><path data-name="Path 3297" d="M64.59,44.219c.076-1.13-.222-.772-.323-.341.117.061.209.8.323.341" transform="translate(-41.805 -28.292)" fill="#a80030"></path><path data-name="Path 3298" d="M45.172,1.4c.335.06.723.106.669.186.366-.08.449-.154-.669-.186" transform="translate(-29.376 -0.911)" fill="#a80030"></path><path data-name="Path 3299" d="M46.647,1.932l-.237.049.22-.02.016-.029" transform="translate(-30.181 -1.258)" fill="#a80030"></path><path data-name="Path 3300" d="M27.224,16.859a5.583,5.583,0,0,1-.6,2.378l-.542.271c-.444.861.043.547-.275,1.232a14.973,14.973,0,0,1-2.553,2.047c-.329-.007.223-.389.3-.538-.927.637-.744.956-2.162,1.342l-.042-.092c-3.5,1.645-8.354-1.615-8.291-6.064-.037.282-.106.212-.184.326a5.6,5.6,0,0,1,3.144-5.526,5.3,5.3,0,0,1,5.9.767,5.257,5.257,0,0,0-4.3-2.063,4.856,4.856,0,0,0-4.172,2.489c-.951.6-1.061,2.308-1.475,2.62-.557,4.1,1.049,5.867,3.765,7.949.428.288.12.332.178.552a7.372,7.372,0,0,1-2.409-1.842,6.473,6.473,0,0,0,1.253,1.444c-.851-.288-1.988-2.062-2.32-2.135,1.467,2.627,5.952,4.607,8.3,3.624a9.8,9.8,0,0,1-3.688-.429c-.513-.264-1.21-.811-1.086-.913a9.158,9.158,0,0,0,9.289-1.316c.705-.549,1.476-1.484,1.7-1.5-.335.5.057.243-.2.688.7-1.134-.305-.461.727-1.958l.381.525c-.142-.941,1.169-2.084,1.036-3.572.3-.455.335.49.016,1.537.443-1.162.117-1.348.23-2.307a8.71,8.71,0,0,1,.367,1,4.423,4.423,0,0,1,.441-2.543c-.142-.063-.445.5-.514-.83.01-.576.16-.3.218-.444a2.546,2.546,0,0,1-.59-1.353c.131-.2.35.516.528.545a13.163,13.163,0,0,1-.32-1.7c-.52-1.087-.184.145-.606-.467-.554-1.727.459-.4.528-1.185A13.868,13.868,0,0,1,30.732,13.3a15.9,15.9,0,0,0-.769-2.765c.255.107-.41-1.958.331-.59A12.326,12.326,0,0,0,24.513,3.03c.293.268.662.6.529.657-1.189-.708-.98-.763-1.15-1.062-.969-.394-1.032.032-1.674,0A19.878,19.878,0,0,0,18.36,1.153l.076.357c-1.209-.4-1.409.153-2.716,0-.08-.062.419-.225.829-.284-1.169.154-1.115-.23-2.259.043a9.724,9.724,0,0,1,.881-.5c-.954.058-2.277.555-1.868.1C11.748,1.57,8.986,2.544,7.436,4l-.049-.326c-.71.853-3.1,2.547-3.288,3.651l-.19.044a20.47,20.47,0,0,0-.9,1.979c-.483.824-.709.317-.64.446A30.106,30.106,0,0,0,.536,14.669c.291.435.007,2.616.117,4.362-.478,8.623,6.052,17,13.189,18.929a14.369,14.369,0,0,0,3.925.4c-1.561-.446-1.763-.237-3.284-.767-1.1-.517-1.338-1.107-2.115-1.781l.308.543c-1.524-.539-.886-.667-2.126-1.06l.328-.429a2.824,2.824,0,0,1-1.531-1.273l-.54.021c-.649-.8-1-1.378-.97-1.826l-.175.311c-.2-.34-2.389-3-1.252-2.384a2.563,2.563,0,0,1-.8-.867l.231-.265a4.4,4.4,0,0,1-.972-1.906,1.236,1.236,0,0,0,.695.535c-1.381-3.427-1.459-.189-2.5-3.489l.221-.018a7.327,7.327,0,0,1-.409-.805l.1-.96c-.994-1.15-.278-4.889-.135-6.94.1-.834.83-1.722,1.386-3.114l-.339-.058C4.532,10.7,7.58,7.3,8.992,7.471c.684-.859-.136,0-.269-.22,1.5-1.554,1.974-1.1,2.988-1.378,1.093-.649-.938.253-.42-.247,1.89-.483,1.339-1.1,3.8-1.342.26.148-.6.229-.82.421,1.575-.77,4.983-.6,7.2.428,2.569,1.2,5.455,4.749,5.569,8.088l.13.035c-.066,1.327.2,2.862-.262,4.272l.317-.667" transform="translate(-0.32 -0.503)" fill="#a80030"></path><path data-name="Path 3301" d="M32.208,59.764l-.088.44a8.451,8.451,0,0,0,1.266,1.6c-.379-.739-.66-1.045-1.178-2.044" transform="translate(-20.88 -38.903)" fill="#a80030"></path><path data-name="Path 3302" d="M34.247,58.123a3.488,3.488,0,0,1-.492-.821,5.711,5.711,0,0,0,.685,1.39l-.193-.569" transform="translate(-21.944 -37.3)" fill="#a80030"></path><path data-name="Path 3303" d="M82.358,48.916l-.092.231a11.156,11.156,0,0,1-1.093,3.489,10.961,10.961,0,0,0,1.185-3.72" transform="translate(-52.81 -31.841)" fill="#a80030"></path><path data-name="Path 3304" d="M45.054.187A13.512,13.512,0,0,1,46.546,0c-.586.049-1.17.079-1.746.153l.254.035" transform="translate(-29.133)" fill="#a80030"></path><path data-name="Path 3305" d="M2.44,23.219c.1.9-.681,1.256.172.659.457-1.03-.179-.284-.172-.659" transform="translate(-1.409 -15.114)" fill="#a80030"></path><path data-name="Path 3306" d="M-.053,32.764a9.824,9.824,0,0,0,.307-1.315c-.543.694-.25.842-.307,1.315" transform="translate(0.082 -20.471)" fill="#a80030"></path></g></svg>                 </figure>
                        <span>Debian 13</span>
        </a>
    </section>





<section id="social-links-block_4f4a585c553ec4bb2946ce5f70487ed2" data-id="social-links-block_4f4a585c553ec4bb2946ce5f70487ed2" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>




<div id="rhel" class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading">Než začneme</h2>



<p>Pro účely této <strong>ukázky</strong> si nejdříve přepneme SELinux do&nbsp;Permissive módu. </p>



<p>Pokud plánujete SELinux trvale deaktivovat, můžete tak učinit úpravou konfiguračního souboru.&nbsp;Nicméně, doporučujeme zvážit možnost naučit se s&nbsp;SELinuxem pracovat a&nbsp;využít jeho bezpečnostní výhody.&nbsp;Podrobné informace o&nbsp;správném nastavení a&nbsp;monitorování SELinuxu naleznete <a href="https://www.initmax.cz/wiki/selinux-integrace-se-zabbixem-a-dalsimi-nastroji/">v našem samostatném článku.​</a></p>


<section id="block-code-block_d50813134d10a5566717656b65c7ee85" data-id="block-code-block_d50813134d10a5566717656b65c7ee85" class="gt-block block-code">
    <pre><code>setenforce 0</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>V prvním kroku si naistalujeme repozitáře pro PostgreSQL a&nbsp;zakážeme výchozí, systémové PostgreSQL repozitáře.</p>


<section id="block-code-block_697ca9cb94515f429f7da4e30c5225c2" data-id="block-code-block_697ca9cb94515f429f7da4e30c5225c2" class="gt-block block-code">
    <pre><code>dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-10-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně pak nainstalujeme PostgreSQL, v&nbsp;tomto případě to bude aktuálně podporovaná verze 18.</p>


<section id="block-code-block_60325e4f05e2ae9914ffaa78eb2fbd60" data-id="block-code-block_60325e4f05e2ae9914ffaa78eb2fbd60" class="gt-block block-code">
    <pre><code>dnf install -y postgresql18-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Inicializujeme databázi a&nbsp;nastavíme její automatické spouštění.</p>


<section id="block-code-block_e6b5fd4e9d0777875953edcd83b0fbd0" data-id="block-code-block_e6b5fd4e9d0777875953edcd83b0fbd0" class="gt-block block-code">
    <pre><code>/usr/pgsql-18/bin/postgresql-18-setup initdb
systemctl enable postgresql-18 --now</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databáze je nyní nainstalovaná, a&nbsp;můžeme tedy přikročit k&nbsp;instalaci Zabbix serveru a&nbsp;všech jeho součástí.</p>



<p>Nejprve si z&nbsp;repozitáře EPEL vyloučíme jakékoliv instalační balíčky týkající se Zabbixu. Za předpokladu, že je nainstalován.</p>



<p>To provedeme tak, že na&nbsp;konec souboru <code>/etc/yum.repos.d/epel.repo</code> vložíme následující řádek:</p>


<section id="block-code-block_4bc70cb1da1dec35c6f39b3b357fb9f4" data-id="block-code-block_4bc70cb1da1dec35c6f39b3b357fb9f4" class="gt-block block-code">
    <pre><code>[epel]
...
excludepkgs=zabbix*</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Přidáme si repozitáře Zabbixu a&nbsp;vyčistíme instalační cache.</p>


<section id="block-code-block_8d82e8bf4873073eb738e3250f26cbac" data-id="block-code-block_8d82e8bf4873073eb738e3250f26cbac" class="gt-block block-code">
    <pre><code>rpm -Uvh https://repo.zabbix.com/zabbix/8.0/release/rocky/10/noarch/zabbix-release-latest.el10.noarch.rpm
dnf clean all</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nainstalujeme všechny potřebné součásti Zabbixu.</p>



<p>V tomto případě použijeme jako primárního monitorovacího agenta Zabbix Agent 2, který vám doporučujeme používat, jelikož přináší daleko více funkcionalit.</p>


<section id="block-code-block_0691a87d2690e5a61f22b0b18856872f" data-id="block-code-block_0691a87d2690e5a61f22b0b18856872f" class="gt-block block-code">
    <pre><code>dnf install zabbix-server-pgsql zabbix-web-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 zabbix-web-service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>Nejprve vytvoříme databázového uživatele pro Zabbix, budeme vyzváni k&nbsp;zadání jeho přístupového hesla.</p>


<section id="block-code-block_b5737919838f2bde519350e3b1a84c88" data-id="block-code-block_b5737919838f2bde519350e3b1a84c88" class="gt-block block-code">
    <pre><code>cd /tmp
sudo -u postgres createuser --pwprompt zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tuto chvíli jsme schopni naimportovat výchozí schéma a&nbsp;data. Opět budeme vyzváni k&nbsp;zadání hesla. <br>Zde použijeme heslo z&nbsp;předchozího kroku.</p>


<section id="block-code-block_7e6343b7a85e5d00ed1172f9d549030f" data-id="block-code-block_7e6343b7a85e5d00ed1172f9d549030f" class="gt-block block-code">
    <pre><code>sudo -u postgres createdb -O zabbix zabbix
zcat /usr/share/zabbix/sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení firewallu</h2>



<p>Nazávěr na&nbsp;firewallu povolíme porty, které jsou nezbytné pro běh Zabbix serveru.</p>


<section id="block-code-block_9c52c809daffb87c360f87e56c5607af" data-id="block-code-block_9c52c809daffb87c360f87e56c5607af" class="gt-block block-code">
    <pre><code>firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-port=10051/tcp
firewall-cmd --reload</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Nejčistší varianta je instalace z&nbsp;oficiálních TimescaleDB/TigerData repozitářů, jenže pro&nbsp;<strong>EL/10</strong>&nbsp;zatím nejsou (v&nbsp;našem případě) potřebné balíčky k&nbsp;dispozici. Proto použijeme&nbsp;<strong>malý workaround</strong>&nbsp;přes&nbsp;<strong>oficiální PGDG non-free repo</strong>, abychom mohli nainstalovat&nbsp;<strong>Community/TSL</strong>&nbsp;variantu.</p>



<p>Jakmile budou balíčky pro EL/10 v&nbsp;oficiálním TimescaleDB repozitáři dostupné,&nbsp;<strong>přejdeme na&nbsp;něj</strong>&nbsp;(a&nbsp;tenhle workaround už nebude potřeba).</p>



<p><br>Přidání repozitářů (PGDG non-free)</p>


<section id="block-code-block_7756cbb7985073bbfb4056b7dc81f8b8" data-id="block-code-block_7756cbb7985073bbfb4056b7dc81f8b8" class="gt-block block-code">
    <pre><code>dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/non-free/EL-10-x86_64/pgdg-redhat-nonfree-repo-latest.noarch.rpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Instalace TimescaleDB (TSL / Community)</p>


<section id="block-code-block_0a36f4e49684f5817eb8a5ef68b68580" data-id="block-code-block_0a36f4e49684f5817eb8a5ef68b68580" class="gt-block block-code">
    <pre><code>dnf install timescaledb-tsl_18</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Dále si nainstalujeme&nbsp;timescaledb-tune. V&nbsp;ideálním případě bychom použili oficiální TimescaleDB balíčky, kde bývá tento nástroj součástí distribuce, ale protože na&nbsp;EL/10 zatím jedeme workaround přes PGDG, doinstalujeme ho zvlášť.</p>


<section id="block-code-block_751b94a44be362cda3d715e2509698e4" data-id="block-code-block_751b94a44be362cda3d715e2509698e4" class="gt-block block-code">
    <pre><code>dnf install -y golang

# nainstaluje binary do /usr/local/sbin
GOBIN=/usr/local/sbin go install github.com/timescale/timescaledb-tune/cmd/timescaledb-tune@latest</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Spustíme utilitu <code>timescaledb-tune</code> a&nbsp;jako parametr jí předáme vyšší hodnotu maximálního množství připojení (<code>--max-conns</code>), které pro tyto testovací účely nastavíme na&nbsp;<code>125</code>.</p>



<p>Tato utilita slouží k&nbsp;přizpůsobení výchozího nastavení PostgreSQL vůčihledně výkonu a&nbsp;adekvátnímu nastavení parametrů PostgreSQL pro fungování s&nbsp;TimescaleDB.</p>



<p>Zároveň nám tato utilit pomocí instalačního průvodce pomůže vybrat aktuální a&nbsp;platný konfigurační soubor PostgreSQL a&nbsp;nastaví i&nbsp;automatické načítání knihoven TimescaleDB.</p>



<p>Prosím, odpovídejte &#8222;ano&#8220; (y) na&nbsp;všechny otázky. Pozor, automatický tuner předpokládá, že PostgreSQL běží na&nbsp;samostatném serveru, a&nbsp;proto může být potřeba případně upravit parametry.</p>


<section id="block-code-block_fc90badc9c839f45b315a8c15cf16019" data-id="block-code-block_fc90badc9c839f45b315a8c15cf16019" class="gt-block block-code">
    <pre><code>timescaledb-tune --pg-config /usr/pgsql-18/bin --max-conns=125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1350" height="532" src="https://www.initmax.cz/wp-content/uploads/2025/11/zabbix80-tune.png" alt="" class="wp-image-21502" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/zabbix80-tune.png 1350w, https://www.initmax.cz/wp-content/uploads/2025/11/zabbix80-tune-300x118.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/zabbix80-tune-1024x404.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/zabbix80-tune-768x303.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/zabbix80-tune-608x240.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/zabbix80-tune-1216x479.png 1216w" sizes="(max-width: 1350px) 100vw, 1350px" /></figure>



<p>Následně restartujeme systémovou službu pro PostgreSQL:</p>


<section id="block-code-block_2ff21132e1dcd88b16bbbd007291da60" data-id="block-code-block_2ff21132e1dcd88b16bbbd007291da60" class="gt-block block-code">
    <pre><code>systemctl restart postgresql-18.service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá již jen vytvořit a&nbsp;aktivovat samotnou TimescaleDB:</p>



<p><strong>Pozor:</strong> Během vývoje došlo ke změně cesty z&nbsp;původní <code>/usr/share/zabbix-sql-scripts/postgresql/timescaledb/schema.sql</code> na&nbsp;novou <code>/usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql</code>.</p>


<section id="block-code-block_36477242caf4f17b0b03870077b36c32" data-id="block-code-block_36477242caf4f17b0b03870077b36c32" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix serveru</h2>



<p>Otevřeme konfigurační soubor Zabbix serveru v&nbsp;cestě:</p>


<section id="block-code-block_6c126d07c264a0971459db7cc62769b4" data-id="block-code-block_6c126d07c264a0971459db7cc62769b4" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tomto konfiguračním souboru upravíme následující parametry tak, jak vídíte na&nbsp;předloze níže:</p>


<section id="block-code-block_a077734e72cd705cb85eadb6fb645504" data-id="block-code-block_a077734e72cd705cb85eadb6fb645504" class="gt-block block-code">
    <pre><code>...
DBPassword=password
StartReportWriters=1
WebServiceURL=http://localhost:10053/report
...</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku doinstalujeme všechny jazykové balíčky pro Zabbix frontend:</p>


<section id="block-code-block_96eb99512b3b58d976ba0cfa5c88018f" data-id="block-code-block_96eb99512b3b58d976ba0cfa5c88018f" class="gt-block block-code">
    <pre><code>dnf install glibc-langpack-en glibc-langpack-cs glibc-langpack-sk glibc-langpack-fr glibc-langpack-de glibc-langpack-es glibc-langpack-it glibc-langpack-zh glibc-langpack-pt glibc-langpack-da glibc-langpack-nb glibc-langpack-pl glibc-langpack-tr glibc-langpack-he glibc-langpack-ja glibc-langpack-ko glibc-langpack-ru glibc-langpack-uk glibc-langpack-ca glibc-langpack-ka glibc-langpack-vi glibc-langpack-uz</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nakonec restartujeme všechny související služby a&nbsp;nastavíme je tak, aby se spouštěly automaticky po&nbsp;startu:</p>


<section id="block-code-block_822239481cbb2ce44bddee0ee98c4d4a" data-id="block-code-block_822239481cbb2ce44bddee0ee98c4d4a" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm
systemctl enable zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Pro ověření stavu, že nám Zabbix server nastartoval v&nbsp;pořádku můžeme kromě jiného zkontrolovat i&nbsp;jeho log soubor:</p>


<section id="block-code-block_c1ae0f3bd2cf191e94e4ef6a00b7595f" data-id="block-code-block_c1ae0f3bd2cf191e94e4ef6a00b7595f" class="gt-block block-code">
    <pre><code>less /var/log/zabbix/zabbix_server.log</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V případě, že uvidíte v&nbsp;log souboru zprávu o&nbsp;tom, že je verze TimescaleDB příliš nová, pak to není žádný velký problém. Zabbix nedokáže dostatečně rychle reagovat na&nbsp;nejnovější verze TimescaleDB tak, aby ji ve svém kódu nastavil jako podporovanou, ovšem kompatibilita je Zabbixem zaručena a&nbsp;námi ověřena.</p>



<p>V případě této chyby stačí otevřít konfigurační soubor Zabbix serveru v&nbsp;cestě <code>/etc/zabbix/zabbix_server.conf</code> a&nbsp;zde upravte následující konfigurační parametr:</p>


<section id="block-code-block_0d9c654be5eb573375d8ef3ac591e5c2" data-id="block-code-block_0d9c654be5eb573375d8ef3ac591e5c2" class="gt-block block-code">
    <pre><code>AllowUnsupportedDBVersions=1</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Soubor s&nbsp;tímto nastavením uložte a&nbsp;zrestartujte systémovou službu Zabbix serveru.</p>


<section id="block-code-block_d38c4c1a02cadd8b4beb5d49c2ff722e" data-id="block-code-block_d38c4c1a02cadd8b4beb5d49c2ff722e" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix frontendu</h2>



<p>V prohlížeči si otevřeme cílové URL, na&nbsp;kterém Zabbix běží. Například tedy <code>http://192.168.0.50/zabbix</code>, kde nás uvítá průvodce prvotní instalací.</p>



<p>Po zvolení implicitního jazyka se tlačítkem <strong>Next step</strong> posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1796" height="1116" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts1.png" alt="" class="wp-image-21325" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-1216x756.png 1216w" sizes="(max-width: 1796px) 100vw, 1796px" /></figure>



<p>Pokud je kontrola v&nbsp;pořádku, pak se tedy můžeme kliknutím na&nbsp;<code>Next step</code> posunout na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1796" height="1116" src="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3.png" alt="" class="wp-image-21340" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-1216x756.png 1216w" sizes="(max-width: 1796px) 100vw, 1796px" /></figure>



<p>Zde vyplňujeme pouze políčko <strong>Password</strong> pro přístup do&nbsp;databáze, nic dalšího není třeba měnit.</p>



<p>Po vyplnění opět klikneme na&nbsp;<strong>Next step</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1116" src="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2.png" alt="" class="wp-image-21338" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-1216x756.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Na následující stránce se základním nastavením vyplníme název serveru, časové pásmo, a&nbsp;kliknutím na&nbsp;<strong>Next step</strong> pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1116" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts4.png" alt="" class="wp-image-21336" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-1216x756.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>V tomto souhrnu zkontrolumeme všechny zadané hodnoty a&nbsp;kliknutím na&nbsp;<strong>Next step</strong> dokončíme instalaci.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1116" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts5.png" alt="" class="wp-image-21334" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-1216x756.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Nyní již kliknutím na&nbsp;tlačítko <strong>Finish</strong> přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1116" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts6.png" alt="" class="wp-image-21330" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-1216x756.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Po úspěšném přihlášení pomocí dříve zadaných údajů můžeme začít používat nejnovější Zabbix verze 8.0 (<strong>Admin/zabbix</strong>).</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="816" height="860" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts7.png" alt="" class="wp-image-21332" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts7.png 816w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts7-285x300.png 285w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts7-768x809.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts7-608x641.png 608w" sizes="auto, (max-width: 816px) 100vw, 816px" /></figure>
</div>


<p>A takto vypada úvodní dashboard nového Zabbixu 8.0:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2560" height="1307" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts8-scaled.png" alt="" class="wp-image-21348" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-scaled.png 2560w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-300x153.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-1024x523.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-768x392.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-1536x784.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-2048x1046.png 2048w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-608x310.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-1216x621.png 1216w" sizes="auto, (max-width: 2560px) 100vw, 2560px" /></figure>



<h2 class="wp-block-heading">Nastavení Zabbix reportingu</h2>



<p>Proto, aby byl plně funkční reporting se všemi jeho vylepšeními si nejprve musíme nainstalovat Google Chrome.</p>



<p>Následujícím příkazem stáhneme instalační balíček, a&nbsp;ten také nainstalujeme:</p>


<section id="block-code-block_d253bf302ae9e6468b1580ab3c155692" data-id="block-code-block_d253bf302ae9e6468b1580ab3c155692" class="gt-block block-code">
    <pre><code>wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf localinstall google-chrome-stable_current_x86_64.rpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku upravíme v&nbsp;Zabbix frontendu parametr &#8222;<strong>Frontend URL</strong>&#8220; na&nbsp;aktuálně platnou hodnotu, toto nastavení se nachází zde:</p>


<section id="block-code-block_4553b1299956d6798c00f9132fe8801f" data-id="block-code-block_4553b1299956d6798c00f9132fe8801f" class="gt-block block-code">
    <pre><code>Administration -&gt; General -&gt; Other</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Příklad této konfigurace pak můžete vidět na&nbsp;obrázku níže.</p>



<figure class="wp-block-image size-full is-style-default"><img loading="lazy" decoding="async" width="2560" height="1307" src="https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-scaled.png" alt="" class="wp-image-21353" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-scaled.png 2560w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-300x153.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-1024x523.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-768x392.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-1536x784.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-2048x1046.png 2048w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-608x310.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-1216x621.png 1216w" sizes="auto, (max-width: 2560px) 100vw, 2560px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>
</div></div>



<div id="debian" class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading">Instalace závislostí</h2>


<section id="block-code-block_40f1feb80f08d24f4b24b9f2fe8bcb59" data-id="block-code-block_40f1feb80f08d24f4b24b9f2fe8bcb59" class="gt-block block-code">
    <pre><code>apt install sudo gpg curl wget</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>V prvním kroku si nainstalujeme repozitáře pro PostgreSQL a&nbsp;zakážeme výchozí systémové repozitáře PostgreSQL. Na&nbsp;otázku &#8218;<strong>This script will enable the PostgreSQL APT repository on apt.postgresql.org on<br>your system. The distribution codename used will be trixie-pgdg.</strong>&#8218; stiskněte <strong>Enter </strong>pro pokračování a&nbsp;potvrzení instalace z&nbsp;oficiálního repozitáře.</p>


<section id="block-code-block_49e9544151a1c40bf7377d4fc6b5e26c" data-id="block-code-block_49e9544151a1c40bf7377d4fc6b5e26c" class="gt-block block-code">
    <pre><code>apt install -y postgresql-common
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně pak nainstalujeme PostgreSQL, v&nbsp;tomto případě to bude aktuálně podporovaná verze 18.</p>


<section id="block-code-block_3224af98e5afb1945575288bca5fa85f" data-id="block-code-block_3224af98e5afb1945575288bca5fa85f" class="gt-block block-code">
    <pre><code>apt -y install postgresql-18</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nastartování PostgreSQL a&nbsp;nastavení automatického spuštění při&nbsp;startu systému</p>


<section id="block-code-block_93f0e4ff21e713e3243a62aede0ba1b0" data-id="block-code-block_93f0e4ff21e713e3243a62aede0ba1b0" class="gt-block block-code">
    <pre><code>systemctl enable postgresql --now</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databáze je nyní nainstalovaná, a&nbsp;můžeme tedy přikročit k&nbsp;instalaci Zabbix serveru a&nbsp;všech jeho součástí.</p>



<p>Přidáme si repozitáře Zabbixu a&nbsp;vyčistíme instalační cache.</p>


<section id="block-code-block_c4e90c0d2222c0f86bedf7af2c91365a" data-id="block-code-block_c4e90c0d2222c0f86bedf7af2c91365a" class="gt-block block-code">
    <pre><code>wget https://repo.zabbix.com/zabbix/8.0/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_8.0+debian13_all.deb
dpkg -i zabbix-release_latest_8.0+debian13_all.deb
apt update</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nainstalujeme všechny potřebné součásti Zabbixu.</p>



<p>V tomto případě použijeme jako primárního monitorovacího agenta Zabbix Agent 2, který vám doporučujeme používat, jelikož přináší daleko více funkcionalit.</p>


<section id="block-code-block_1b8612bfc042dc6c26957ee011db3bdb" data-id="block-code-block_1b8612bfc042dc6c26957ee011db3bdb" class="gt-block block-code">
    <pre><code>apt install zabbix-server-pgsql zabbix-frontend-php php8.4-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 zabbix-web-service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>Nejprve vytvoříme databázového uživatele pro Zabbix. Během procesu budeme vyzváni k&nbsp;zadání jeho přístupového hesla. Dále vytvoříme prázdnou databázi a&nbsp;nastavíme jí příslušná oprávnění.</p>


<section id="block-code-block_d097c13649605aae5e4cc6e3f3bbb135" data-id="block-code-block_d097c13649605aae5e4cc6e3f3bbb135" class="gt-block block-code">
    <pre><code>sudo -u postgres createuser --pwprompt zabbix
sudo -u postgres createdb -O zabbix zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tuto chvíli jsme schopni naimportovat výchozí schéma a&nbsp;data. Opět budeme vyzváni k&nbsp;zadání hesla. <br>Zde použijeme heslo z&nbsp;předchozího kroku.</p>


<section id="block-code-block_cbef31dbc19dea345e15928e9b917281" data-id="block-code-block_cbef31dbc19dea345e15928e9b917281" class="gt-block block-code">
    <pre><code>zcat /usr/share/zabbix/sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Nyní se pustíme do&nbsp;instalace TimescaleDB a&nbsp;začneme tím, že přidáme její oficiální repozitář.</p>


<section id="block-code-block_fd3d60729d47872db6e7ff2d2ccd2ee3" data-id="block-code-block_fd3d60729d47872db6e7ff2d2ccd2ee3" class="gt-block block-code">
    <pre><code>echo &quot;deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main&quot; | sudo tee /etc/apt/sources.list.d/timescaledb.list
wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nainstalujme TimescaleDB.</p>


<section id="block-code-block_6dc30d3600db41ccdb2b22e4e0daf5b5" data-id="block-code-block_6dc30d3600db41ccdb2b22e4e0daf5b5" class="gt-block block-code">
    <pre><code>apt update
apt install timescaledb-2-postgresql-18 timescaledb-2-loader-postgresql-18</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Spustíme utilitu <code>timescaledb-tune</code> a&nbsp;jako parametr jí předáme vyšší hodnotu maximálního množství připojení (<code>--max-conns</code>), které pro tyto testovací účely nastavíme na&nbsp;<code>125</code>.</p>



<p>Tato utilita slouží k&nbsp;přizpůsobení výchozího nastavení PostgreSQL vůčihledně výkonu a&nbsp;adekvátnímu nastavení parametrů PostgreSQL pro fungování s&nbsp;TimescaleDB.</p>



<p>Zároveň nám tato utilit pomocí instalačního průvodce pomůže vybrat aktuální a&nbsp;platný konfigurační soubor PostgreSQL a&nbsp;nastaví i&nbsp;automatické načítání knihoven TimescaleDB.</p>



<p>Prosím, odpovídejte &#8222;ano&#8220; (y) na&nbsp;všechny otázky. Pozor, automatický tuner předpokládá, že PostgreSQL běží na&nbsp;samostatném serveru, a&nbsp;proto může být potřeba případně upravit parametry.</p>


<section id="block-code-block_f8162d8143f483a73fee2cfb1d71dab6" data-id="block-code-block_f8162d8143f483a73fee2cfb1d71dab6" class="gt-block block-code">
    <pre><code>timescaledb-tune --pg-config /usr/bin --max-conns=125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1020" height="524" src="https://www.initmax.cz/wp-content/uploads/2025/11/timescaledb-debian13.png" alt="" class="wp-image-21317" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/timescaledb-debian13.png 1020w, https://www.initmax.cz/wp-content/uploads/2025/11/timescaledb-debian13-300x154.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/timescaledb-debian13-768x395.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/timescaledb-debian13-608x312.png 608w" sizes="auto, (max-width: 1020px) 100vw, 1020px" /></figure>



<p>Následně restartujeme systémovou službu pro PostgreSQL:</p>


<section id="block-code-block_d3fd1eb69ece9d87ff4f4926bed11f0a" data-id="block-code-block_d3fd1eb69ece9d87ff4f4926bed11f0a" class="gt-block block-code">
    <pre><code>systemctl restart postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá již jen vytvořit a&nbsp;aktivovat samotnou TimescaleDB:</p>


<section id="block-code-block_36477242caf4f17b0b03870077b36c32" data-id="block-code-block_36477242caf4f17b0b03870077b36c32" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix serveru</h2>



<p>Otevřeme konfigurační soubor Zabbix serveru v&nbsp;cestě:</p>


<section id="block-code-block_6c126d07c264a0971459db7cc62769b4" data-id="block-code-block_6c126d07c264a0971459db7cc62769b4" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tomto konfiguračním souboru upravíme následující parametry tak, jak vídíte na&nbsp;předloze níže:</p>


<section id="block-code-block_a077734e72cd705cb85eadb6fb645504" data-id="block-code-block_a077734e72cd705cb85eadb6fb645504" class="gt-block block-code">
    <pre><code>...
DBPassword=password
StartReportWriters=1
WebServiceURL=http://localhost:10053/report
...</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku nastavíme jazykové balíčky pro Zabbix frontend. Můžete zvolit pouze ty, které potřebujete, nebo povolit všechny.</p>


<section id="block-code-block_99527f83f6de59ef57150ed13ae13851" data-id="block-code-block_99527f83f6de59ef57150ed13ae13851" class="gt-block block-code">
    <pre><code>sed -i &#039;/# en_US.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# en_GB.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# cs_CZ.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# sk_SK.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# fr_FR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# de_DE.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# es_ES.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# it_IT.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# zh_CN.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# pt_PT.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# pt_BR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# da_DK.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# nb_NO.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# pl_PL.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# tr_TR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# he_IL.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ja_JP.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ko_KR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ru_RU.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# uk_UA.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ca_ES.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ka_GE.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# uz_UZ.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# vi_VN UTF-8/s/^# //&#039; /etc/locale.gen
locale-gen</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nakonec restartujeme všechny související služby a&nbsp;nastavíme je tak, aby se spouštěly automaticky po&nbsp;startu:</p>


<section id="block-code-block_55ae8296384529bb2b722415ae386083" data-id="block-code-block_55ae8296384529bb2b722415ae386083" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server zabbix-web-service zabbix-agent2 apache2
systemctl enable zabbix-server zabbix-web-service zabbix-agent2 apache2</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Pro ověření stavu, že nám Zabbix server nastartoval v&nbsp;pořádku můžeme kromě jiného zkontrolovat i&nbsp;jeho log soubor:</p>


<section id="block-code-block_c1ae0f3bd2cf191e94e4ef6a00b7595f" data-id="block-code-block_c1ae0f3bd2cf191e94e4ef6a00b7595f" class="gt-block block-code">
    <pre><code>less /var/log/zabbix/zabbix_server.log</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V případě, že uvidíte v&nbsp;log souboru zprávu o&nbsp;tom, že je verze TimescaleDB příliš nová, pak to není žádný velký problém. Zabbix nedokáže dostatečně rychle reagovat na&nbsp;nejnovější verze TimescaleDB tak, aby ji ve svém kódu nastavil jako podporovanou, ovšem kompatibilita je Zabbixem zaručena a&nbsp;námi ověřena.</p>



<p>V případě této chyby stačí otevřít konfigurační soubor Zabbix serveru v&nbsp;cestě <code>/etc/zabbix/zabbix_server.conf</code> a&nbsp;zde upravte následující konfigurační parametr:</p>


<section id="block-code-block_0d9c654be5eb573375d8ef3ac591e5c2" data-id="block-code-block_0d9c654be5eb573375d8ef3ac591e5c2" class="gt-block block-code">
    <pre><code>AllowUnsupportedDBVersions=1</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Soubor s&nbsp;tímto nastavením uložte a&nbsp;zrestartujte systémovou službu Zabbix serveru.</p>


<section id="block-code-block_d38c4c1a02cadd8b4beb5d49c2ff722e" data-id="block-code-block_d38c4c1a02cadd8b4beb5d49c2ff722e" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix frontendu</h2>



<p>V prohlížeči si otevřeme cílové URL, na&nbsp;kterém Zabbix běží. Například tedy <code>http://192.168.0.50/zabbix</code>, kde nás uvítá průvodce prvotní instalací.</p>



<p>Po zvolení implicitního jazyka se tlačítkem <strong>Next step</strong> posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1116" src="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1.png" alt="" class="wp-image-21325" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts1-1216x756.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Pokud je kontrola v&nbsp;pořádku, pak se tedy můžeme kliknutím na&nbsp;<strong>Next step</strong> posunout na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1796" height="1116" src="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3.png" alt="" class="wp-image-21340" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts3-1216x756.png 1216w" sizes="(max-width: 1796px) 100vw, 1796px" /></figure>



<p>Zde vyplňujeme pouze políčko <strong>Password</strong> pro přístup do&nbsp;databáze, nic dalšího není třeba měnit.</p>



<p>Po vyplnění opět klikneme na&nbsp;<strong>Next step</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1116" src="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2.png" alt="" class="wp-image-21338" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts2-1216x756.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Na následující stránce se základním nastavením vyplníme název serveru, časové pásmo, a&nbsp;kliknutím na&nbsp;<strong>Next step</strong> pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1116" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts4.png" alt="" class="wp-image-21336" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts4-1216x756.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>V tomto souhrnu zkontrolumeme všechny zadané hodnoty a&nbsp;kliknutím na&nbsp;<strong>Next step</strong> dokončíme instalaci.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1116" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts5.png" alt="" class="wp-image-21334" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts5-1216x756.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Nyní již kliknutím na&nbsp;tlačítko <strong>Finish</strong> přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1116" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts6.png" alt="" class="wp-image-21330" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6.png 1796w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-300x186.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-1024x636.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-768x477.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-1536x954.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-608x378.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts6-1216x756.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Po úspěšném přihlášení pomocí dříve zadaných údajů můžeme začít používat nejnovější Zabbix verze 8.0 (<code><strong>Admin/zabbix</strong></code>).</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="816" height="860" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts7.png" alt="" class="wp-image-21332" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts7.png 816w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts7-285x300.png 285w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts7-768x809.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts7-608x641.png 608w" sizes="auto, (max-width: 816px) 100vw, 816px" /></figure>
</div>


<p>A takto vypada úvodní dashboard nového Zabbixu 8.0:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2560" height="1307" src="https://www.initmax.com/wp-content/uploads/2025/11/setup-8.0lts8-scaled.png" alt="" class="wp-image-21348" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-scaled.png 2560w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-300x153.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-1024x523.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-768x392.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-1536x784.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-2048x1046.png 2048w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-608x310.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/setup-8.0lts8-1216x621.png 1216w" sizes="auto, (max-width: 2560px) 100vw, 2560px" /></figure>



<h2 class="wp-block-heading">Nastavení Zabbix reportingu</h2>



<p>Proto, aby byl plně funkční reporting se všemi jeho vylepšeními si nejprve musíme nainstalovat Google Chrome.</p>



<p>Následujícím příkazem stáhneme instalační balíček, a&nbsp;ten také nainstalujeme:</p>


<section id="block-code-block_de90f10d587cb8cb6f39f904a031b593" data-id="block-code-block_de90f10d587cb8cb6f39f904a031b593" class="gt-block block-code">
    <pre><code>curl -fSsL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg &gt;&gt; /dev/null
echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.list
apt update
apt install google-chrome-stable</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku upravíme v&nbsp;Zabbix frontendu parametr &#8222;<strong>Frontend URL</strong>&#8220; na&nbsp;aktuálně platnou hodnotu, toto nastavení se nachází zde:</p>


<section id="block-code-block_4553b1299956d6798c00f9132fe8801f" data-id="block-code-block_4553b1299956d6798c00f9132fe8801f" class="gt-block block-code">
    <pre><code>Administration -&gt; General -&gt; Other</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Příklad této konfigurace pak můžete vidět na&nbsp;obrázku níže.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2560" height="1307" src="https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-scaled.png" alt="" class="wp-image-21353" srcset="https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-scaled.png 2560w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-300x153.png 300w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-1024x523.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-768x392.png 768w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-1536x784.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-2048x1046.png 2048w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-608x310.png 608w, https://www.initmax.cz/wp-content/uploads/2025/11/reporting-8.0-1216x621.png 1216w" sizes="auto, (max-width: 2560px) 100vw, 2560px" /></figure>
</div></div>



<h2 class="wp-block-heading">Dokončovací práce</h2>



<ul class="wp-block-list">
<li>Zkontrolujte, že správně běží Zabbix server, databázový server a&nbsp;mají správnou verzi</li>
</ul>



<h2 class="wp-block-heading">Podpora pro Item Browser</h2>



<p>Veškeré potřebné kroky naleznete v&nbsp;<a href="https://www.initmax.cz/wiki/instalace-a-zakladni-pouziti-pro-item-browser/">samostatném návodu na&nbsp;naší wiki<strong>.</strong></a></p>


<section id="block-webinar-block_d3484b2c5ce9723da4a4a23e99241c8b" data-id="block-webinar-block_d3484b2c5ce9723da4a4a23e99241c8b" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/7-0-workshop-zabbix-7-0-monitorovani-pomoci-browser-item-pomoci-aplikace-selenium/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2024/05/ilustrace_webinare_zabbix_7.0_13_thumbnail_web-copy-2.png"
				 width="400"
		 height="250"
		 class=""
		 alt="7.0 Workshop: Zabbix 7.0 &#8211; Monitorování pomocí Browser Item pomocí aplikace Selenium"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#4caf50;">Nový</span><span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2024-06-21">21.&nbsp;6.&nbsp;2024</time>
							</div>
			<h3 class="webinar-promotion__title">7.0 Workshop: Zabbix 7.0 &#8211; Monitorování pomocí Browser Item pomocí aplikace Selenium</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>



<h2 class="wp-block-heading">Vlastní rebranding</h2>



<p>Veškeré potřebné kroky naleznete v&nbsp;<a href="https://www.initmax.cz/wiki/rebranding-zabbixu/">samostatném návodu na&nbsp;naší wiki<strong>.</strong></a></p>


<section id="block-newsletter-block_013e792015f7decc1aca31a52d4bb416" data-id="block-newsletter-block_013e792015f7decc1aca31a52d4bb416" class="gt-block block-newsletter">
    <section id="newsletter" class="newsletter">
	<div class="gradient basic">
		<div class="newsletter__inner width width--general">
			<div class="col left">
									<h2 class="newsletter__title">Buďte v&nbsp;obraze s&nbsp;naším newsletterem</h2>
													<div class="newsletter__content"><p>Díky initMAX newsletteru Vám neunikne žádná z&nbsp;pozvánek na&nbsp;akce a&nbsp;webináře, žádný z&nbsp;tipů, jak dostat ze svého IT MAXimum, ani ověřené informace o&nbsp;novinkách ze světa Zabbix a&nbsp;dalších technologií.</p>
</div>
							</div>
			<div class="col right form-wrapper">
				<div class="newsletter-form">
	<form method="post" action="/wiki/kapitola/zabbix/zabbix-instalace/feed/" enctype="multipart/form-data">
		<input type="hidden" name="url" value="https://www.initmax.cz/wiki/kapitola/zabbix/zabbix-instalace/feed/">

		<div class="inputs">

			<label for="newsletter-form_contact_email" class="top">Vaše e-mailová adresa:</label>
			<div class="df">

				<div class="input">
					<input type="text" id="newsletter-form_contact_email" name="newsletter_email" placeholder="@" data-format="email" data-required="1">
									</div><!-- /.input -->

				<a href="#" class="btn btn--white sendBtn">Odeslat</a>

			</div>

			<div class="bottom nm">
				<label for="newsletter-form_gdpr" class="checkbox gdpr">
					<input type="checkbox" id="newsletter-form_gdpr" name="newsletter_gdpr">
					<span>Souhlasím se&nbsp;<a href="https://www.initmax.cz/ochrana-osobnich-udaju/" target="_blank">zpracováním osobních údajů</a>.</span>
				</label>
			</div>

		</div><!-- /.inputs -->
		<div class="sent hidden">
			<div class="iconOk"><h3>Děkujeme, že jste se přihlásili k&nbsp;odběru našeho newsletteru.</h3>
</div>
			<button class="sent__close" title="Zavřít" onclick="closeFormMessage(this,event)"><svg data-name="Group 3602" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 3272" d="M0,0H24V24H0Z" fill="none"/><line data-name="Line 98" y2="14" transform="translate(7.05 7.05) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 99" x2="14" transform="translate(7.05 16.95) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</button>
		</div><!-- /.sent -->
	</form>
</div>			</div>
		</div>
	</div>
</section></section>



<section id="social-links-block_4f4a585c553ec4bb2946ce5f70487ed2" data-id="social-links-block_4f4a585c553ec4bb2946ce5f70487ed2" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>

<p>The post <a href="https://www.initmax.cz/wiki/zabbix-8-0-navod-na-instalaci-v-5-minutach/">Zabbix 8.0 LTS &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Zabbix 7.4 &#8211; návod na&#160;instalaci v&#160;5 minutách</title>
		<link>https://www.initmax.cz/wiki/zabbix-7-4-navod-na-instalaci-v-5-minutach/</link>
		
		<dc:creator><![CDATA[Tomáš Heřmánek]]></dc:creator>
		<pubDate>Thu, 17 Apr 2025 18:20:06 +0000</pubDate>
				<guid isPermaLink="false">https://www.initmax.cz/?post_type=wiki&#038;p=18207</guid>

					<description><![CDATA[<p>V tomto návodu si ukážeme, jak během pěti minut nainstalovat a nakonfigurovat nejnovější Zabbix verze 7.4 s databází PostgreSQL 17 a TimescaleDB. Výběr ...</p>
<p>The post <a href="https://www.initmax.cz/wiki/zabbix-7-4-navod-na-instalaci-v-5-minutach/">Zabbix 7.4 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>V tomto návodu si ukážeme, jak během pěti minut nainstalovat a&nbsp;nakonfigurovat nejnovější Zabbix verze 7.4 s&nbsp;databází PostgreSQL 17 a&nbsp;TimescaleDB.</p>



<h2 class="wp-block-heading" id="vyber-operacniho-systemu">Výběr operačního systému</h2>



<p>Návod obsahuje postup pro RHEL platformy na&nbsp;verzi 9, kde stačí případně jen poupravit repozitáře. Návod pro Debian je připraven pro verzi 12, která je aktuálně poslední podporovanou verzí.</p>


<section id="os-switcher-block_16c9b4c88b5a478c8d02d25788df6288" data-id="os-switcher-block_16c9b4c88b5a478c8d02d25788df6288" class="gt-block os-switcher">
                    <a class="os-switcher__item is-active" onclick="osSwitch(this,'#rhel')">
                            <figure>
                     <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800px" height="800px" viewBox="0 -31 256 256" version="1.1" preserveAspectRatio="xMidYMid"><g><path d="M170.758031,111.610687 C187.582343,111.610687 211.924474,108.140925 211.924474,88.1292728 C211.974775,86.5848226 211.834752,85.0400539 211.507565,83.5298204 L201.48829,40.009856 C199.175115,30.434388 197.144363,26.0904607 180.333499,17.6850288 C167.288269,11.014478 138.871184,0 130.465752,0 C122.638614,0 120.365785,10.0865183 111.032394,10.0865183 C102.048668,10.0865183 95.3781173,2.55525131 86.9726853,2.55525131 C78.9034707,2.55525131 73.6450325,8.05576597 69.5835277,19.3661152 C69.5835277,19.3661152 58.2731785,51.2664105 56.8207199,55.8927602 C56.5898643,56.7423115 56.4900906,57.6221338 56.5248487,58.5018063 C56.5248487,70.9014995 105.343597,111.556893 170.758031,111.556893 M214.506623,96.2522822 C216.833247,107.26676 216.833247,108.423348 216.833247,109.875806 C216.833247,128.703974 195.665007,139.153607 167.839665,139.153607 C104.953585,139.193953 49.8677466,102.344539 49.8677466,77.9889597 C49.8641113,74.5987697 50.555245,71.2437963 51.898499,68.1310691 C29.2778005,69.2607592 0,73.2953665 0,99.1437508 C0,141.48023 100.313787,193.661152 179.741757,193.661152 C240.63743,193.661152 255.995835,166.118232 255.995835,144.371699 C255.995835,127.264964 241.202275,107.845054 214.53352,96.2522822" fill="#EE0000"></path><path d="M214.506623,96.2522822 C216.833247,107.26676 216.833247,108.423348 216.833247,109.875806 C216.833247,128.703974 195.665007,139.15364 167.839665,139.15364 C104.953585,139.193953 49.8677323,102.344539 49.8677323,77.9889597 C49.8641113,74.5987697 50.555245,71.2437963 51.898499,68.1310691 L56.8207199,55.946555 C56.5952566,56.7787916 56.4955298,57.6400686 56.5248487,58.5018063 C56.5248487,70.9014995 105.343597,111.556893 170.758031,111.556893 C187.582343,111.556893 211.924474,108.08713 211.924474,88.075478 C211.974775,86.5310279 211.834752,84.9862591 211.507565,83.4760257 L214.506623,96.2522822 Z" fill="#000000"></path></g></svg>                 </figure>
                        <span>Alma/CentOS/RHEL/Rocky 9</span>
        </a>
                    <a class="os-switcher__item" onclick="osSwitch(this,'#debian')">
                            <figure>
                     <svg xmlns="http://www.w3.org/2000/svg" width="30.412" height="37.855" viewBox="0 0 30.412 37.855"><g data-name="Group 4978" transform="translate(0)"><path data-name="Path 3295" d="M51.55,57.148c-.627.009.119.323.938.449.226-.177.431-.355.614-.529a4.68,4.68,0,0,1-1.552.08" transform="translate(-33.375 -37.148)" fill="#a80030"></path><path data-name="Path 3296" d="M60.9,51.791a3.984,3.984,0,0,0,.742-1.664,4.059,4.059,0,0,1-.522,1.154c-1.172.738-.11-.438,0-.886-1.261,1.587-.173.952-.219,1.395" transform="translate(-39.357 -32.63)" fill="#a80030"></path><path data-name="Path 3297" d="M64.59,44.219c.076-1.13-.222-.772-.323-.341.117.061.209.8.323.341" transform="translate(-41.805 -28.292)" fill="#a80030"></path><path data-name="Path 3298" d="M45.172,1.4c.335.06.723.106.669.186.366-.08.449-.154-.669-.186" transform="translate(-29.376 -0.911)" fill="#a80030"></path><path data-name="Path 3299" d="M46.647,1.932l-.237.049.22-.02.016-.029" transform="translate(-30.181 -1.258)" fill="#a80030"></path><path data-name="Path 3300" d="M27.224,16.859a5.583,5.583,0,0,1-.6,2.378l-.542.271c-.444.861.043.547-.275,1.232a14.973,14.973,0,0,1-2.553,2.047c-.329-.007.223-.389.3-.538-.927.637-.744.956-2.162,1.342l-.042-.092c-3.5,1.645-8.354-1.615-8.291-6.064-.037.282-.106.212-.184.326a5.6,5.6,0,0,1,3.144-5.526,5.3,5.3,0,0,1,5.9.767,5.257,5.257,0,0,0-4.3-2.063,4.856,4.856,0,0,0-4.172,2.489c-.951.6-1.061,2.308-1.475,2.62-.557,4.1,1.049,5.867,3.765,7.949.428.288.12.332.178.552a7.372,7.372,0,0,1-2.409-1.842,6.473,6.473,0,0,0,1.253,1.444c-.851-.288-1.988-2.062-2.32-2.135,1.467,2.627,5.952,4.607,8.3,3.624a9.8,9.8,0,0,1-3.688-.429c-.513-.264-1.21-.811-1.086-.913a9.158,9.158,0,0,0,9.289-1.316c.705-.549,1.476-1.484,1.7-1.5-.335.5.057.243-.2.688.7-1.134-.305-.461.727-1.958l.381.525c-.142-.941,1.169-2.084,1.036-3.572.3-.455.335.49.016,1.537.443-1.162.117-1.348.23-2.307a8.71,8.71,0,0,1,.367,1,4.423,4.423,0,0,1,.441-2.543c-.142-.063-.445.5-.514-.83.01-.576.16-.3.218-.444a2.546,2.546,0,0,1-.59-1.353c.131-.2.35.516.528.545a13.163,13.163,0,0,1-.32-1.7c-.52-1.087-.184.145-.606-.467-.554-1.727.459-.4.528-1.185A13.868,13.868,0,0,1,30.732,13.3a15.9,15.9,0,0,0-.769-2.765c.255.107-.41-1.958.331-.59A12.326,12.326,0,0,0,24.513,3.03c.293.268.662.6.529.657-1.189-.708-.98-.763-1.15-1.062-.969-.394-1.032.032-1.674,0A19.878,19.878,0,0,0,18.36,1.153l.076.357c-1.209-.4-1.409.153-2.716,0-.08-.062.419-.225.829-.284-1.169.154-1.115-.23-2.259.043a9.724,9.724,0,0,1,.881-.5c-.954.058-2.277.555-1.868.1C11.748,1.57,8.986,2.544,7.436,4l-.049-.326c-.71.853-3.1,2.547-3.288,3.651l-.19.044a20.47,20.47,0,0,0-.9,1.979c-.483.824-.709.317-.64.446A30.106,30.106,0,0,0,.536,14.669c.291.435.007,2.616.117,4.362-.478,8.623,6.052,17,13.189,18.929a14.369,14.369,0,0,0,3.925.4c-1.561-.446-1.763-.237-3.284-.767-1.1-.517-1.338-1.107-2.115-1.781l.308.543c-1.524-.539-.886-.667-2.126-1.06l.328-.429a2.824,2.824,0,0,1-1.531-1.273l-.54.021c-.649-.8-1-1.378-.97-1.826l-.175.311c-.2-.34-2.389-3-1.252-2.384a2.563,2.563,0,0,1-.8-.867l.231-.265a4.4,4.4,0,0,1-.972-1.906,1.236,1.236,0,0,0,.695.535c-1.381-3.427-1.459-.189-2.5-3.489l.221-.018a7.327,7.327,0,0,1-.409-.805l.1-.96c-.994-1.15-.278-4.889-.135-6.94.1-.834.83-1.722,1.386-3.114l-.339-.058C4.532,10.7,7.58,7.3,8.992,7.471c.684-.859-.136,0-.269-.22,1.5-1.554,1.974-1.1,2.988-1.378,1.093-.649-.938.253-.42-.247,1.89-.483,1.339-1.1,3.8-1.342.26.148-.6.229-.82.421,1.575-.77,4.983-.6,7.2.428,2.569,1.2,5.455,4.749,5.569,8.088l.13.035c-.066,1.327.2,2.862-.262,4.272l.317-.667" transform="translate(-0.32 -0.503)" fill="#a80030"></path><path data-name="Path 3301" d="M32.208,59.764l-.088.44a8.451,8.451,0,0,0,1.266,1.6c-.379-.739-.66-1.045-1.178-2.044" transform="translate(-20.88 -38.903)" fill="#a80030"></path><path data-name="Path 3302" d="M34.247,58.123a3.488,3.488,0,0,1-.492-.821,5.711,5.711,0,0,0,.685,1.39l-.193-.569" transform="translate(-21.944 -37.3)" fill="#a80030"></path><path data-name="Path 3303" d="M82.358,48.916l-.092.231a11.156,11.156,0,0,1-1.093,3.489,10.961,10.961,0,0,0,1.185-3.72" transform="translate(-52.81 -31.841)" fill="#a80030"></path><path data-name="Path 3304" d="M45.054.187A13.512,13.512,0,0,1,46.546,0c-.586.049-1.17.079-1.746.153l.254.035" transform="translate(-29.133)" fill="#a80030"></path><path data-name="Path 3305" d="M2.44,23.219c.1.9-.681,1.256.172.659.457-1.03-.179-.284-.172-.659" transform="translate(-1.409 -15.114)" fill="#a80030"></path><path data-name="Path 3306" d="M-.053,32.764a9.824,9.824,0,0,0,.307-1.315c-.543.694-.25.842-.307,1.315" transform="translate(0.082 -20.471)" fill="#a80030"></path></g></svg>                 </figure>
                        <span>Debian 12</span>
        </a>
    </section>



<section id="block-webinar-block_511e0a52ba3c6cc8c3e219acd80f41b4" data-id="block-webinar-block_511e0a52ba3c6cc8c3e219acd80f41b4" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/instalace-zabbixu-7-4-v-peti-minutach/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2025/06/03_thumbnail_web.png"
				 width="400"
		 height="250"
		 class=""
		 alt="Instalace Zabbixu 7.4 v&nbsp;pěti minutách"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#4caf50;">Nový</span><span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2025-07-11">11.&nbsp;7.&nbsp;2025</time>
							</div>
			<h3 class="webinar-promotion__title">Instalace Zabbixu 7.4 v&nbsp;pěti minutách</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>


<section id="social-links-block_6a5156a032db586fa5a8c6584ae45e2c" data-id="social-links-block_6a5156a032db586fa5a8c6584ae45e2c" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>




<div id="rhel" class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading">Než začneme</h2>



<p>Pro účely této <strong>ukázky</strong> si nejdříve přepneme SELinux do&nbsp;Permissive módu. </p>



<p>Pokud plánujete SELinux trvale deaktivovat, můžete tak učinit úpravou konfiguračního souboru.&nbsp;Nicméně, doporučujeme zvážit možnost naučit se s&nbsp;SELinuxem pracovat a&nbsp;využít jeho bezpečnostní výhody.&nbsp;Podrobné informace o&nbsp;správném nastavení a&nbsp;monitorování SELinuxu naleznete <a href="https://www.initmax.cz/wiki/selinux-integrace-se-zabbixem-a-dalsimi-nastroji/">v našem samostatném článku.​</a></p>


<section id="block-code-block_5d05d55e1fb35ad3867ba93e631109f6" data-id="block-code-block_5d05d55e1fb35ad3867ba93e631109f6" class="gt-block block-code">
    <pre><code>setenforce 0</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>V prvním kroku si naistalujeme repozitáře pro PostgreSQL a&nbsp;zakážeme výchozí, systémové PostgreSQL repozitáře.</p>


<section id="block-code-block_65c01fbbed3ad8f36ffb0637c8809b6f" data-id="block-code-block_65c01fbbed3ad8f36ffb0637c8809b6f" class="gt-block block-code">
    <pre><code>dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně pak nainstalujeme PostgreSQL, v&nbsp;tomto případě to bude aktuálně podporovaná verze 17.</p>


<section id="block-code-block_0e7c4dca1a3fbfdcb719bd2662d4f04b" data-id="block-code-block_0e7c4dca1a3fbfdcb719bd2662d4f04b" class="gt-block block-code">
    <pre><code>dnf install -y postgresql17-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Inicializujeme databázi a&nbsp;nastavíme její automatické spouštění.</p>


<section id="block-code-block_fc4068b830d94d690424503f99acf806" data-id="block-code-block_fc4068b830d94d690424503f99acf806" class="gt-block block-code">
    <pre><code>/usr/pgsql-17/bin/postgresql-17-setup initdb
systemctl enable postgresql-17 --now</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databáze je nyní nainstalovaná, a&nbsp;můžeme tedy přikročit k&nbsp;instalaci Zabbix serveru a&nbsp;všech jeho součástí.</p>



<p>Nejprve si z&nbsp;repozitáře EPEL vyloučíme jakékoliv instalační balíčky týkající se Zabbixu. Za předpokladu, že je nainstalován.</p>



<p>To provedeme tak, že na&nbsp;konec souboru <code>/etc/yum.repos.d/epel.repo</code> vložíme následující řádek:</p>


<section id="block-code-block_68c267047bfb7fca8a1fbb4d85e5bb10" data-id="block-code-block_68c267047bfb7fca8a1fbb4d85e5bb10" class="gt-block block-code">
    <pre><code>[epel]
...
excludepkgs=zabbix*</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Přidáme si repozitáře Zabbixu a&nbsp;vyčistíme instalační cache.</p>


<section id="block-code-block_df65cae91a2dec8d23b55449b692d538" data-id="block-code-block_df65cae91a2dec8d23b55449b692d538" class="gt-block block-code">
    <pre><code>rpm -Uvh https://repo.zabbix.com/zabbix/7.4/release/rocky/9/noarch/zabbix-release-latest.el9.noarch.rpm
dnf clean all</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nainstalujeme všechny potřebné součásti Zabbixu.</p>



<p>V tomto případě použijeme jako primárního monitorovacího agenta Zabbix Agent 2, který vám doporučujeme používat, jelikož přináší daleko více funkcionalit.</p>


<section id="block-code-block_3ee3c993c911aadc55052f7cb6f3ec7a" data-id="block-code-block_3ee3c993c911aadc55052f7cb6f3ec7a" class="gt-block block-code">
    <pre><code>dnf install zabbix-server-pgsql zabbix-web-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 zabbix-web-service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>Nejprve vytvoříme databázového uživatele pro Zabbix, budeme vyzváni k&nbsp;zadání jeho přístupového hesla.</p>


<section id="block-code-block_03e761035b8bcee394c10ba736aa383a" data-id="block-code-block_03e761035b8bcee394c10ba736aa383a" class="gt-block block-code">
    <pre><code>cd /tmp
sudo -u postgres createuser --pwprompt zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tuto chvíli jsme schopni naimportovat výchozí schéma a&nbsp;data. Opět budeme vyzváni k&nbsp;zadání hesla. <br>Zde použijeme heslo z&nbsp;předchozího kroku.</p>


<section id="block-code-block_645addc608e8fe885c1b476e557042d0" data-id="block-code-block_645addc608e8fe885c1b476e557042d0" class="gt-block block-code">
    <pre><code>sudo -u postgres createdb -O zabbix zabbix
zcat /usr/share/zabbix/sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení firewallu</h2>



<p>Nazávěr na&nbsp;firewallu povolíme porty, které jsou nezbytné pro běh Zabbix serveru.</p>


<section id="block-code-block_01e9da902ca794263705cbe51f8fed58" data-id="block-code-block_01e9da902ca794263705cbe51f8fed58" class="gt-block block-code">
    <pre><code>firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-port=10051/tcp
firewall-cmd --reload</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Nyní se pustíme do&nbsp;instalace TimescaleDB a&nbsp;začneme tím, že přidáme její oficiální repozitář.</p>


<section id="block-code-block_cd9c8f6944210ef675f9803d0e1d60a4" data-id="block-code-block_cd9c8f6944210ef675f9803d0e1d60a4" class="gt-block block-code">
    <pre><code>tee /etc/yum.repos.d/timescale_timescaledb.repo &lt;&lt;EOL
[timescale_timescaledb]
name=timescale_timescaledb
baseurl=https://packagecloud.io/timescale/timescaledb/el/$(rpm -E %{rhel})/\$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOL</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nainstalujme TimescaleDB.</p>


<section id="block-code-block_d7beec1638561908c961bfe24f966023" data-id="block-code-block_d7beec1638561908c961bfe24f966023" class="gt-block block-code">
    <pre><code>dnf install timescaledb-2-postgresql-17 timescaledb-2-loader-postgresql-17</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Spustíme utilitu <code>timescaledb-tune</code> a&nbsp;jako parametr jí předáme vyšší hodnotu maximálního množství připojení (<code>--max-conns</code>), které pro tyto testovací účely nastavíme na&nbsp;<code>125</code>.</p>



<p>Tato utilita slouží k&nbsp;přizpůsobení výchozího nastavení PostgreSQL vůčihledně výkonu a&nbsp;adekvátnímu nastavení parametrů PostgreSQL pro fungování s&nbsp;TimescaleDB.</p>



<p>Zároveň nám tato utilit pomocí instalačního průvodce pomůže vybrat aktuální a&nbsp;platný konfigurační soubor PostgreSQL a&nbsp;nastaví i&nbsp;automatické načítání knihoven TimescaleDB.</p>



<p>Prosím, odpovídejte &#8222;ano&#8220; (y) na&nbsp;všechny otázky. Pozor, automatický tuner předpokládá, že PostgreSQL běží na&nbsp;samostatném serveru, a&nbsp;proto může být potřeba případně upravit parametry.</p>


<section id="block-code-block_c486f3a17617160bde6b962e0b077a96" data-id="block-code-block_c486f3a17617160bde6b962e0b077a96" class="gt-block block-code">
    <pre><code>timescaledb-tune --pg-config /usr/pgsql-17/bin --max-conns=125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1530" height="584" src="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune.png" alt="" class="wp-image-17150" srcset="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune.png 1530w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-300x115.png 300w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-1024x391.png 1024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-768x293.png 768w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-608x232.png 608w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-1216x464.png 1216w" sizes="auto, (max-width: 1530px) 100vw, 1530px" /></figure>



<p>Následně restartujeme systémovou službu pro PostgreSQL:</p>


<section id="block-code-block_f837d92fdcb4579f8daffbaa94a22755" data-id="block-code-block_f837d92fdcb4579f8daffbaa94a22755" class="gt-block block-code">
    <pre><code>systemctl restart postgresql-17.service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá již jen vytvořit a&nbsp;aktivovat samotnou TimescaleDB:</p>



<p><strong>Pozor:</strong> Během vývoje došlo ke změně cesty z&nbsp;původní <code>/usr/share/zabbix-sql-scripts/postgresql/timescaledb/schema.sql</code> na&nbsp;novou <code>/usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql</code>.</p>


<section id="block-code-block_589b4abe05cef974c1067fd4b41cece8" data-id="block-code-block_589b4abe05cef974c1067fd4b41cece8" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix serveru</h2>



<p>Otevřeme konfigurační soubor Zabbix serveru v&nbsp;cestě:</p>


<section id="block-code-block_1e431d0344c6f82381d9cb6dc331515d" data-id="block-code-block_1e431d0344c6f82381d9cb6dc331515d" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tomto konfiguračním souboru upravíme následující parametry tak, jak vídíte na&nbsp;předloze níže:</p>


<section id="block-code-block_980a28eb2aa5656d6dfb40035b1cbe08" data-id="block-code-block_980a28eb2aa5656d6dfb40035b1cbe08" class="gt-block block-code">
    <pre><code>...
DBPassword=password
StartReportWriters=1
WebServiceURL=http://localhost:10053/report
...</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku doinstalujeme všechny jazykové balíčky pro Zabbix frontend:</p>


<section id="block-code-block_1f941763463d87aa15d098b49ca0fc71" data-id="block-code-block_1f941763463d87aa15d098b49ca0fc71" class="gt-block block-code">
    <pre><code>dnf install glibc-langpack-en glibc-langpack-cs glibc-langpack-sk glibc-langpack-fr glibc-langpack-de glibc-langpack-es glibc-langpack-it glibc-langpack-zh glibc-langpack-pt glibc-langpack-da glibc-langpack-nb glibc-langpack-pl glibc-langpack-tr glibc-langpack-he glibc-langpack-ja glibc-langpack-ko glibc-langpack-ru glibc-langpack-uk glibc-langpack-ca glibc-langpack-ka glibc-langpack-vi glibc-langpack-uz</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nakonec restartujeme všechny související služby a&nbsp;nastavíme je tak, aby se spouštěly automaticky po&nbsp;startu:</p>


<section id="block-code-block_63842e571ac6323dbfc4b13bb6a1a441" data-id="block-code-block_63842e571ac6323dbfc4b13bb6a1a441" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm
systemctl enable zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Pro ověření stavu, že nám Zabbix server nastartoval v&nbsp;pořádku můžeme kromě jiného zkontrolovat i&nbsp;jeho log soubor:</p>


<section id="block-code-block_4d83b05756702e0755bea7a89f539375" data-id="block-code-block_4d83b05756702e0755bea7a89f539375" class="gt-block block-code">
    <pre><code>less /var/log/zabbix/zabbix_server.log</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V případě, že uvidíte v&nbsp;log souboru zprávu o&nbsp;tom, že je verze TimescaleDB příliš nová, pak to není žádný velký problém. Zabbix nedokáže dostatečně rychle reagovat na&nbsp;nejnovější verze TimescaleDB tak, aby ji ve svém kódu nastavil jako podporovanou, ovšem kompatibilita je Zabbixem zaručena a&nbsp;námi ověřena.</p>



<p>V případě této chyby stačí otevřít konfigurační soubor Zabbix serveru v&nbsp;cestě <code>/etc/zabbix/zabbix_server.conf</code> a&nbsp;zde upravte následující konfigurační parametr:</p>


<section id="block-code-block_e9dddb8ee1c2e67a0b3f2b122d2be8c8" data-id="block-code-block_e9dddb8ee1c2e67a0b3f2b122d2be8c8" class="gt-block block-code">
    <pre><code>AllowUnsupportedDBVersions=1</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Soubor s&nbsp;tímto nastavením uložte a&nbsp;zrestartujte systémovou službu Zabbix serveru.</p>


<section id="block-code-block_4b9bf34201b94ec6e590079f2b65b369" data-id="block-code-block_4b9bf34201b94ec6e590079f2b65b369" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix frontendu</h2>



<p>V prohlížeči si otevřeme cílové URL, na&nbsp;kterém Zabbix běží. Například tedy <code>http://192.168.0.50/zabbix</code>, kde nás uvítá průvodce prvotní instalací.</p>



<p>Po zvolení implicitního jazyka se tlačítkem <strong>Next step</strong> posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1122" src="https://www.initmax.cz/wp-content/uploads/2025/04/install74.png" alt="" class="wp-image-18221" srcset="https://www.initmax.cz/wp-content/uploads/2025/04/install74.png 1794w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-300x188.png 300w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-1024x640.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-768x480.png 768w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-1536x961.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-608x380.png 608w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-1216x761.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Pokud je kontrola v&nbsp;pořádku, pak se tedy můžeme kliknutím na&nbsp;<code>Next step</code> posunout na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png" alt="" class="wp-image-16593" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Zde vyplňujeme pouze políčko <strong>Password</strong> pro přístup do&nbsp;databáze, nic dalšího není třeba měnit.</p>



<p>Po vyplnění opět klikneme na&nbsp;<strong>Next step</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png" alt="" class="wp-image-16591" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Na následující stránce se základním nastavením vyplníme název serveru, časové pásmo, a&nbsp;kliknutím na&nbsp;<strong>Next step</strong> pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1124" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png" alt="" class="wp-image-16589" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-300x188.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1024x641.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-768x481.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1536x961.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-608x381.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1216x761.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>V tomto souhrnu zkontrolumeme všechny zadané hodnoty a&nbsp;kliknutím na&nbsp;<strong>Next step</strong> dokončíme instalaci.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1792" height="1136" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png" alt="" class="wp-image-16587" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png 1792w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1024x649.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-768x487.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1536x974.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-608x385.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1216x771.png 1216w" sizes="auto, (max-width: 1792px) 100vw, 1792px" /></figure>



<p>Nyní již kliknutím na&nbsp;tlačítko <strong>Finish</strong> přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1130" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png" alt="" class="wp-image-16585" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-300x189.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1024x644.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-768x483.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1536x966.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-608x383.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1216x765.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Po úspěšném přihlášení pomocí dříve zadaných údajů můžeme začít používat nejnovější Zabbix verze 7.4 (<strong>Admin/zabbix</strong>).</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2422" height="1112" src="https://www.initmax.cz/wp-content/uploads/2025/04/login74.png" alt="" class="wp-image-18219" srcset="https://www.initmax.cz/wp-content/uploads/2025/04/login74.png 2422w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-300x138.png 300w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-1024x470.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-768x353.png 768w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-1536x705.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-2048x940.png 2048w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-608x279.png 608w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-1216x558.png 1216w" sizes="auto, (max-width: 2422px) 100vw, 2422px" /></figure>



<p>A takto vypada úvodní dashboard nového Zabbixu 7.4:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="3024" height="1578" src="https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74.png" alt="" class="wp-image-18217" srcset="https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74.png 3024w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-300x157.png 300w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-1024x534.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-768x401.png 768w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-1536x802.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-2048x1069.png 2048w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-608x317.png 608w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-1216x635.png 1216w" sizes="auto, (max-width: 3024px) 100vw, 3024px" /></figure>



<h2 class="wp-block-heading">Nastavení Zabbix reportingu</h2>



<p>Proto, aby byl plně funkční reporting se všemi jeho vylepšeními si nejprve musíme nainstalovat Google Chrome.</p>



<p>Následujícím příkazem stáhneme instalační balíček, a&nbsp;ten také nainstalujeme:</p>


<section id="block-code-block_e7ddfcd3d012a957987f05c114599791" data-id="block-code-block_e7ddfcd3d012a957987f05c114599791" class="gt-block block-code">
    <pre><code>wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf localinstall google-chrome-stable_current_x86_64.rpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku upravíme v&nbsp;Zabbix frontendu parametr &#8222;<strong>Frontend URL</strong>&#8220; na&nbsp;aktuálně platnou hodnotu, toto nastavení se nachází zde:</p>


<section id="block-code-block_9b5e25e8ab97eeda63b9ccd55314c368" data-id="block-code-block_9b5e25e8ab97eeda63b9ccd55314c368" class="gt-block block-code">
    <pre><code>Administration -&gt; General -&gt; Other</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Příklad této konfigurace pak můžete vidět na&nbsp;obrázku níže.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1652" height="1364" src="https://www.initmax.cz/wp-content/uploads/2025/04/general74.png" alt="" class="wp-image-18227" srcset="https://www.initmax.cz/wp-content/uploads/2025/04/general74.png 1652w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-300x248.png 300w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-1024x845.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-768x634.png 768w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-1536x1268.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-608x502.png 608w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-1216x1004.png 1216w" sizes="auto, (max-width: 1652px) 100vw, 1652px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>
</div></div>



<div id="debian" class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading">Instalace závislostí</h2>


<section id="block-code-block_ac1a351fed849dedcb5917a6c4eec180" data-id="block-code-block_ac1a351fed849dedcb5917a6c4eec180" class="gt-block block-code">
    <pre><code>apt install sudo gpg curl wget</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>V prvním kroku si nainstalujeme repozitáře pro PostgreSQL a&nbsp;zakážeme výchozí systémové repozitáře PostgreSQL. Na&nbsp;otázku &#8218;<strong>This script will enable the PostgreSQL APT repository on apt.postgresql.org on your system. The distribution codename used will be bookworm-pgdg.</strong>&#8218; stiskněte <strong>Enter </strong>pro pokračování a&nbsp;potvrzení instalace z&nbsp;oficiálního repozitáře.</p>


<section id="block-code-block_125f2ec0ec1eba3998f663b94d4e819a" data-id="block-code-block_125f2ec0ec1eba3998f663b94d4e819a" class="gt-block block-code">
    <pre><code>apt install -y postgresql-common
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně pak nainstalujeme PostgreSQL, v&nbsp;tomto případě to bude aktuálně podporovaná verze 17.</p>


<section id="block-code-block_df933ce8112d08b1add3e5fa0cec7e1e" data-id="block-code-block_df933ce8112d08b1add3e5fa0cec7e1e" class="gt-block block-code">
    <pre><code>apt -y install postgresql-17</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nastartování PostgreSQL a&nbsp;nastavení automatického spuštění při&nbsp;startu systému</p>


<section id="block-code-block_639700e5228dcb75bfb377b8ce53c16a" data-id="block-code-block_639700e5228dcb75bfb377b8ce53c16a" class="gt-block block-code">
    <pre><code>systemctl enable postgresql --now</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databáze je nyní nainstalovaná, a&nbsp;můžeme tedy přikročit k&nbsp;instalaci Zabbix serveru a&nbsp;všech jeho součástí.</p>



<p>Přidáme si repozitáře Zabbixu a&nbsp;vyčistíme instalační cache.</p>


<section id="block-code-block_08b27a38ca705fa4c88eec64013f60a1" data-id="block-code-block_08b27a38ca705fa4c88eec64013f60a1" class="gt-block block-code">
    <pre><code>wget https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.4+debian12_all.deb
dpkg -i zabbix-release_latest_7.4+debian12_all.deb
apt update</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nainstalujeme všechny potřebné součásti Zabbixu.</p>



<p>V tomto případě použijeme jako primárního monitorovacího agenta Zabbix Agent 2, který vám doporučujeme používat, jelikož přináší daleko více funkcionalit.</p>


<section id="block-code-block_50d852b6d03b444533c9eb174e951163" data-id="block-code-block_50d852b6d03b444533c9eb174e951163" class="gt-block block-code">
    <pre><code>apt install zabbix-server-pgsql zabbix-frontend-php php8.2-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 zabbix-web-service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>Nejprve vytvoříme databázového uživatele pro Zabbix. Během procesu budeme vyzváni k&nbsp;zadání jeho přístupového hesla. Dále vytvoříme prázdnou databázi a&nbsp;nastavíme jí příslušná oprávnění.</p>


<section id="block-code-block_09ef734d11d79a2af6fcf0ad9a1b521a" data-id="block-code-block_09ef734d11d79a2af6fcf0ad9a1b521a" class="gt-block block-code">
    <pre><code>sudo -u postgres createuser --pwprompt zabbix
sudo -u postgres createdb -O zabbix zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tuto chvíli jsme schopni naimportovat výchozí schéma a&nbsp;data. Opět budeme vyzváni k&nbsp;zadání hesla. <br>Zde použijeme heslo z&nbsp;předchozího kroku.</p>


<section id="block-code-block_b95bbe837d3ed1dde95b893045a4698d" data-id="block-code-block_b95bbe837d3ed1dde95b893045a4698d" class="gt-block block-code">
    <pre><code>zcat /usr/share/zabbix/sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Nyní se pustíme do&nbsp;instalace TimescaleDB a&nbsp;začneme tím, že přidáme její oficiální repozitář.</p>


<section id="block-code-block_67897a2550f829ddf864800685e9ef54" data-id="block-code-block_67897a2550f829ddf864800685e9ef54" class="gt-block block-code">
    <pre><code>echo &quot;deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main&quot; | sudo tee /etc/apt/sources.list.d/timescaledb.list
wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nainstalujme TimescaleDB.</p>


<section id="block-code-block_e4204362aed0d48c509c76853c6c7efc" data-id="block-code-block_e4204362aed0d48c509c76853c6c7efc" class="gt-block block-code">
    <pre><code>apt update
apt install timescaledb-2-postgresql-17 timescaledb-2-loader-postgresql-17</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Spustíme utilitu <code>timescaledb-tune</code> a&nbsp;jako parametr jí předáme vyšší hodnotu maximálního množství připojení (<code>--max-conns</code>), které pro tyto testovací účely nastavíme na&nbsp;<code>125</code>.</p>



<p>Tato utilita slouží k&nbsp;přizpůsobení výchozího nastavení PostgreSQL vůčihledně výkonu a&nbsp;adekvátnímu nastavení parametrů PostgreSQL pro fungování s&nbsp;TimescaleDB.</p>



<p>Zároveň nám tato utilit pomocí instalačního průvodce pomůže vybrat aktuální a&nbsp;platný konfigurační soubor PostgreSQL a&nbsp;nastaví i&nbsp;automatické načítání knihoven TimescaleDB.</p>



<p>Prosím, odpovídejte &#8222;ano&#8220; (y) na&nbsp;všechny otázky. Pozor, automatický tuner předpokládá, že PostgreSQL běží na&nbsp;samostatném serveru, a&nbsp;proto může být potřeba případně upravit parametry.</p>


<section id="block-code-block_669744d7910721dcd9f39a072871b709" data-id="block-code-block_669744d7910721dcd9f39a072871b709" class="gt-block block-code">
    <pre><code>timescaledb-tune --pg-config /usr/bin --max-conns=125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1158" height="582" src="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian.png" alt="" class="wp-image-17171" srcset="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian.png 1158w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian-300x151.png 300w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian-1024x515.png 1024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian-768x386.png 768w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian-608x306.png 608w" sizes="auto, (max-width: 1158px) 100vw, 1158px" /></figure>



<p>Následně restartujeme systémovou službu pro PostgreSQL:</p>


<section id="block-code-block_6ee12845da04206be2a21966b0b6be5e" data-id="block-code-block_6ee12845da04206be2a21966b0b6be5e" class="gt-block block-code">
    <pre><code>systemctl restart postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá již jen vytvořit a&nbsp;aktivovat samotnou TimescaleDB:</p>



<p><strong>Pozor:</strong> Během vývoje došlo ke změně cesty z&nbsp;původní <code>/usr/share/zabbix-sql-scripts/postgresql/timescaledb/schema.sql</code> na&nbsp;novou<code> /usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql</code>.</p>


<section id="block-code-block_589b4abe05cef974c1067fd4b41cece8" data-id="block-code-block_589b4abe05cef974c1067fd4b41cece8" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix serveru</h2>



<p>Otevřeme konfigurační soubor Zabbix serveru v&nbsp;cestě:</p>


<section id="block-code-block_1e431d0344c6f82381d9cb6dc331515d" data-id="block-code-block_1e431d0344c6f82381d9cb6dc331515d" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tomto konfiguračním souboru upravíme následující parametry tak, jak vídíte na&nbsp;předloze níže:</p>


<section id="block-code-block_980a28eb2aa5656d6dfb40035b1cbe08" data-id="block-code-block_980a28eb2aa5656d6dfb40035b1cbe08" class="gt-block block-code">
    <pre><code>...
DBPassword=password
StartReportWriters=1
WebServiceURL=http://localhost:10053/report
...</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku nastavíme jazykové balíčky pro Zabbix frontend. Můžete zvolit pouze ty, které potřebujete, nebo povolit všechny.</p>


<section id="block-code-block_84d2fcb42341003cef4e82ca92513ec4" data-id="block-code-block_84d2fcb42341003cef4e82ca92513ec4" class="gt-block block-code">
    <pre><code>sed -i &#039;/# en_US.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# en_GB.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# cs_CZ.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# sk_SK.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# fr_FR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# de_DE.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# es_ES.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# it_IT.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# zh_CN.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# pt_PT.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# pt_BR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# da_DK.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# nb_NO.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# pl_PL.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# tr_TR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# he_IL.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ja_JP.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ko_KR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ru_RU.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# uk_UA.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ca_ES.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ka_GE.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# uz_UZ.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# vi_VN UTF-8/s/^# //&#039; /etc/locale.gen
locale-gen</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nakonec restartujeme všechny související služby a&nbsp;nastavíme je tak, aby se spouštěly automaticky po&nbsp;startu:</p>


<section id="block-code-block_38fec4ff688e16e5bb91ee8bcbbebee8" data-id="block-code-block_38fec4ff688e16e5bb91ee8bcbbebee8" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server zabbix-web-service zabbix-agent2 apache2
systemctl enable zabbix-server zabbix-web-service zabbix-agent2 apache2</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Pro ověření stavu, že nám Zabbix server nastartoval v&nbsp;pořádku můžeme kromě jiného zkontrolovat i&nbsp;jeho log soubor:</p>


<section id="block-code-block_4d83b05756702e0755bea7a89f539375" data-id="block-code-block_4d83b05756702e0755bea7a89f539375" class="gt-block block-code">
    <pre><code>less /var/log/zabbix/zabbix_server.log</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V případě, že uvidíte v&nbsp;log souboru zprávu o&nbsp;tom, že je verze TimescaleDB příliš nová, pak to není žádný velký problém. Zabbix nedokáže dostatečně rychle reagovat na&nbsp;nejnovější verze TimescaleDB tak, aby ji ve svém kódu nastavil jako podporovanou, ovšem kompatibilita je Zabbixem zaručena a&nbsp;námi ověřena.</p>



<p>V případě této chyby stačí otevřít konfigurační soubor Zabbix serveru v&nbsp;cestě <code>/etc/zabbix/zabbix_server.conf</code> a&nbsp;zde upravte následující konfigurační parametr:</p>


<section id="block-code-block_e9dddb8ee1c2e67a0b3f2b122d2be8c8" data-id="block-code-block_e9dddb8ee1c2e67a0b3f2b122d2be8c8" class="gt-block block-code">
    <pre><code>AllowUnsupportedDBVersions=1</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Soubor s&nbsp;tímto nastavením uložte a&nbsp;zrestartujte systémovou službu Zabbix serveru.</p>


<section id="block-code-block_4b9bf34201b94ec6e590079f2b65b369" data-id="block-code-block_4b9bf34201b94ec6e590079f2b65b369" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix frontendu</h2>



<p>V prohlížeči si otevřeme cílové URL, na&nbsp;kterém Zabbix běží. Například tedy <code>http://192.168.0.50/zabbix</code>, kde nás uvítá průvodce prvotní instalací.</p>



<p>Po zvolení implicitního jazyka se tlačítkem <strong>Next step</strong> posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1122" src="https://www.initmax.cz/wp-content/uploads/2025/04/install74.png" alt="" class="wp-image-18221" srcset="https://www.initmax.cz/wp-content/uploads/2025/04/install74.png 1794w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-300x188.png 300w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-1024x640.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-768x480.png 768w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-1536x961.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-608x380.png 608w, https://www.initmax.cz/wp-content/uploads/2025/04/install74-1216x761.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Pokud je kontrola v&nbsp;pořádku, pak se tedy můžeme kliknutím na&nbsp;<strong>Next step</strong> posunout na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png" alt="" class="wp-image-16593" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Zde vyplňujeme pouze políčko <strong>Password</strong> pro přístup do&nbsp;databáze, nic dalšího není třeba měnit.</p>



<p>Po vyplnění opět klikneme na&nbsp;<strong>Next step</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png" alt="" class="wp-image-16591" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Na následující stránce se základním nastavením vyplníme název serveru, časové pásmo, a&nbsp;kliknutím na&nbsp;<strong>Next step</strong> pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1124" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png" alt="" class="wp-image-16589" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-300x188.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1024x641.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-768x481.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1536x961.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-608x381.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1216x761.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>V tomto souhrnu zkontrolumeme všechny zadané hodnoty a&nbsp;kliknutím na&nbsp;<strong>Next step</strong> dokončíme instalaci.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1792" height="1136" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png" alt="" class="wp-image-16587" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png 1792w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1024x649.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-768x487.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1536x974.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-608x385.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1216x771.png 1216w" sizes="auto, (max-width: 1792px) 100vw, 1792px" /></figure>



<p>Nyní již kliknutím na&nbsp;tlačítko <strong>Finish</strong> přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1130" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png" alt="" class="wp-image-16585" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-300x189.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1024x644.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-768x483.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1536x966.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-608x383.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1216x765.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Po úspěšném přihlášení pomocí dříve zadaných údajů můžeme začít používat nejnovější Zabbix verze 7.4 (<code><strong>Admin/zabbix</strong></code>).</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2422" height="1112" src="https://www.initmax.cz/wp-content/uploads/2025/04/login74.png" alt="" class="wp-image-18219" srcset="https://www.initmax.cz/wp-content/uploads/2025/04/login74.png 2422w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-300x138.png 300w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-1024x470.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-768x353.png 768w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-1536x705.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-2048x940.png 2048w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-608x279.png 608w, https://www.initmax.cz/wp-content/uploads/2025/04/login74-1216x558.png 1216w" sizes="auto, (max-width: 2422px) 100vw, 2422px" /></figure>



<p>A takto vypada úvodní dashboard nového Zabbixu 7.4:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="3024" height="1578" src="https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74.png" alt="" class="wp-image-18217" srcset="https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74.png 3024w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-300x157.png 300w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-1024x534.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-768x401.png 768w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-1536x802.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-2048x1069.png 2048w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-608x317.png 608w, https://www.initmax.cz/wp-content/uploads/2025/04/dashboard74-1216x635.png 1216w" sizes="auto, (max-width: 3024px) 100vw, 3024px" /></figure>



<h2 class="wp-block-heading">Nastavení Zabbix reportingu</h2>



<p>Proto, aby byl plně funkční reporting se všemi jeho vylepšeními si nejprve musíme nainstalovat Google Chrome.</p>



<p>Následujícím příkazem stáhneme instalační balíček, a&nbsp;ten také nainstalujeme:</p>


<section id="block-code-block_ef19207116bdd9527d1c7d5a42283fb1" data-id="block-code-block_ef19207116bdd9527d1c7d5a42283fb1" class="gt-block block-code">
    <pre><code>curl -fSsL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg &gt;&gt; /dev/null
echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.list
apt update
apt install google-chrome-stable</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku upravíme v&nbsp;Zabbix frontendu parametr &#8222;<strong>Frontend URL</strong>&#8220; na&nbsp;aktuálně platnou hodnotu, toto nastavení se nachází zde:</p>


<section id="block-code-block_9b5e25e8ab97eeda63b9ccd55314c368" data-id="block-code-block_9b5e25e8ab97eeda63b9ccd55314c368" class="gt-block block-code">
    <pre><code>Administration -&gt; General -&gt; Other</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Příklad této konfigurace pak můžete vidět na&nbsp;obrázku níže.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1652" height="1364" src="https://www.initmax.cz/wp-content/uploads/2025/04/general74.png" alt="" class="wp-image-18227" srcset="https://www.initmax.cz/wp-content/uploads/2025/04/general74.png 1652w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-300x248.png 300w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-1024x845.png 1024w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-768x634.png 768w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-1536x1268.png 1536w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-608x502.png 608w, https://www.initmax.cz/wp-content/uploads/2025/04/general74-1216x1004.png 1216w" sizes="auto, (max-width: 1652px) 100vw, 1652px" /></figure>
</div></div>



<h2 class="wp-block-heading">Dokončovací práce</h2>



<ul class="wp-block-list">
<li>Zkontrolujte, že správně běží Zabbix server, databázový server a&nbsp;mají správnou verzi</li>



<li>Zkontrolujte také, zda při&nbsp;startu serveru nebo proxy v&nbsp;systému neuvidíte následující chybu: ‚<strong>…the user limit of 1024 file descriptors is insufficient. The maximum number of concurrent checks per worker has been reduced…</strong>‘ <a href="https://www.initmax.cz/wiki/zabbix-7-0-a-navyseni-systemovych-limitu/">Návod na&nbsp;odstranění naleznete na&nbsp;naší wiki</a>.</li>
</ul>



<h2 class="wp-block-heading">Podpora pro Item Browser</h2>



<p>Veškeré potřebné kroky naleznete v&nbsp;<a href="https://www.initmax.cz/wiki/instalace-a-zakladni-pouziti-pro-item-browser/">samostatném návodu na&nbsp;naší wiki<strong>.</strong></a></p>


<section id="block-webinar-block_12a6e0aa302c48f95d232923d37c5632" data-id="block-webinar-block_12a6e0aa302c48f95d232923d37c5632" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/7-0-workshop-zabbix-7-0-monitorovani-pomoci-browser-item-pomoci-aplikace-selenium/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2024/05/ilustrace_webinare_zabbix_7.0_13_thumbnail_web-copy-2.png"
				 width="400"
		 height="250"
		 class=""
		 alt="7.0 Workshop: Zabbix 7.0 &#8211; Monitorování pomocí Browser Item pomocí aplikace Selenium"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#4caf50;">Nový</span><span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2024-06-21">21.&nbsp;6.&nbsp;2024</time>
							</div>
			<h3 class="webinar-promotion__title">7.0 Workshop: Zabbix 7.0 &#8211; Monitorování pomocí Browser Item pomocí aplikace Selenium</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>



<h2 class="wp-block-heading">Vlastní rebranding</h2>



<p>Veškeré potřebné kroky naleznete v&nbsp;<a href="https://www.initmax.cz/wiki/rebranding-zabbixu/">samostatném návodu na&nbsp;naší wiki<strong>.</strong></a></p>


<section id="block-newsletter-block_62e4425cd28ed70be33cf83e9739d909" data-id="block-newsletter-block_62e4425cd28ed70be33cf83e9739d909" class="gt-block block-newsletter">
    <section id="newsletter" class="newsletter">
	<div class="gradient basic">
		<div class="newsletter__inner width width--general">
			<div class="col left">
									<h2 class="newsletter__title">Buďte v&nbsp;obraze s&nbsp;naším newsletterem</h2>
													<div class="newsletter__content"><p>Díky initMAX newsletteru Vám neunikne žádná z&nbsp;pozvánek na&nbsp;akce a&nbsp;webináře, žádný z&nbsp;tipů, jak dostat ze svého IT MAXimum, ani ověřené informace o&nbsp;novinkách ze světa Zabbix a&nbsp;dalších technologií.</p>
</div>
							</div>
			<div class="col right form-wrapper">
				<div class="newsletter-form">
	<form method="post" action="/wiki/kapitola/zabbix/zabbix-instalace/feed/" enctype="multipart/form-data">
		<input type="hidden" name="url" value="https://www.initmax.cz/wiki/kapitola/zabbix/zabbix-instalace/feed/">

		<div class="inputs">

			<label for="newsletter-form_contact_email" class="top">Vaše e-mailová adresa:</label>
			<div class="df">

				<div class="input">
					<input type="text" id="newsletter-form_contact_email" name="newsletter_email" placeholder="@" data-format="email" data-required="1">
									</div><!-- /.input -->

				<a href="#" class="btn btn--white sendBtn">Odeslat</a>

			</div>

			<div class="bottom nm">
				<label for="newsletter-form_gdpr" class="checkbox gdpr">
					<input type="checkbox" id="newsletter-form_gdpr" name="newsletter_gdpr">
					<span>Souhlasím se&nbsp;<a href="https://www.initmax.cz/ochrana-osobnich-udaju/" target="_blank">zpracováním osobních údajů</a>.</span>
				</label>
			</div>

		</div><!-- /.inputs -->
		<div class="sent hidden">
			<div class="iconOk"><h3>Děkujeme, že jste se přihlásili k&nbsp;odběru našeho newsletteru.</h3>
</div>
			<button class="sent__close" title="Zavřít" onclick="closeFormMessage(this,event)"><svg data-name="Group 3602" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 3272" d="M0,0H24V24H0Z" fill="none"/><line data-name="Line 98" y2="14" transform="translate(7.05 7.05) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 99" x2="14" transform="translate(7.05 16.95) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</button>
		</div><!-- /.sent -->
	</form>
</div>			</div>
		</div>
	</div>
</section></section>



<section id="social-links-block_6a5156a032db586fa5a8c6584ae45e2c" data-id="social-links-block_6a5156a032db586fa5a8c6584ae45e2c" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>

<p>The post <a href="https://www.initmax.cz/wiki/zabbix-7-4-navod-na-instalaci-v-5-minutach/">Zabbix 7.4 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Zabbix 7.2 &#8211; návod na&#160;instalaci v&#160;5 minutách</title>
		<link>https://www.initmax.cz/wiki/zabbix-7-2-navod-na-instalaci-v-5-minutach/</link>
		
		<dc:creator><![CDATA[Tomáš Heřmánek]]></dc:creator>
		<pubDate>Sat, 07 Dec 2024 01:15:08 +0000</pubDate>
				<guid isPermaLink="false">https://www.initmax.cz/?post_type=wiki&#038;p=17088</guid>

					<description><![CDATA[<p>V tomto návodu si ukážeme, jak během pěti minut nainstalovat a nakonfigurovat nejnovější Zabbix verze 7.2 s databází PostgreSQL 17 a TimescaleDB. Výběr ...</p>
<p>The post <a href="https://www.initmax.cz/wiki/zabbix-7-2-navod-na-instalaci-v-5-minutach/">Zabbix 7.2 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>V tomto návodu si ukážeme, jak během pěti minut nainstalovat a&nbsp;nakonfigurovat nejnovější Zabbix verze 7.2 s&nbsp;databází PostgreSQL 17 a&nbsp;TimescaleDB.</p>



<h2 class="wp-block-heading" id="vyber-operacniho-systemu">Výběr operačního systému</h2>



<p>Návod obsahuje postup pro RHEL platformy na&nbsp;verzi 9, kde stačí případně jen poupravit repozitáře. Návod pro Debian je připraven pro verzi 12, která je aktuálně poslední podporovanou verzí.</p>


<section id="os-switcher-block_4c6cbe17c747fb27eef484e685111433" data-id="os-switcher-block_4c6cbe17c747fb27eef484e685111433" class="gt-block os-switcher">
                    <a class="os-switcher__item is-active" onclick="osSwitch(this,'#rhel')">
                            <figure>
                     <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800px" height="800px" viewBox="0 -31 256 256" version="1.1" preserveAspectRatio="xMidYMid"><g><path d="M170.758031,111.610687 C187.582343,111.610687 211.924474,108.140925 211.924474,88.1292728 C211.974775,86.5848226 211.834752,85.0400539 211.507565,83.5298204 L201.48829,40.009856 C199.175115,30.434388 197.144363,26.0904607 180.333499,17.6850288 C167.288269,11.014478 138.871184,0 130.465752,0 C122.638614,0 120.365785,10.0865183 111.032394,10.0865183 C102.048668,10.0865183 95.3781173,2.55525131 86.9726853,2.55525131 C78.9034707,2.55525131 73.6450325,8.05576597 69.5835277,19.3661152 C69.5835277,19.3661152 58.2731785,51.2664105 56.8207199,55.8927602 C56.5898643,56.7423115 56.4900906,57.6221338 56.5248487,58.5018063 C56.5248487,70.9014995 105.343597,111.556893 170.758031,111.556893 M214.506623,96.2522822 C216.833247,107.26676 216.833247,108.423348 216.833247,109.875806 C216.833247,128.703974 195.665007,139.153607 167.839665,139.153607 C104.953585,139.193953 49.8677466,102.344539 49.8677466,77.9889597 C49.8641113,74.5987697 50.555245,71.2437963 51.898499,68.1310691 C29.2778005,69.2607592 0,73.2953665 0,99.1437508 C0,141.48023 100.313787,193.661152 179.741757,193.661152 C240.63743,193.661152 255.995835,166.118232 255.995835,144.371699 C255.995835,127.264964 241.202275,107.845054 214.53352,96.2522822" fill="#EE0000"></path><path d="M214.506623,96.2522822 C216.833247,107.26676 216.833247,108.423348 216.833247,109.875806 C216.833247,128.703974 195.665007,139.15364 167.839665,139.15364 C104.953585,139.193953 49.8677323,102.344539 49.8677323,77.9889597 C49.8641113,74.5987697 50.555245,71.2437963 51.898499,68.1310691 L56.8207199,55.946555 C56.5952566,56.7787916 56.4955298,57.6400686 56.5248487,58.5018063 C56.5248487,70.9014995 105.343597,111.556893 170.758031,111.556893 C187.582343,111.556893 211.924474,108.08713 211.924474,88.075478 C211.974775,86.5310279 211.834752,84.9862591 211.507565,83.4760257 L214.506623,96.2522822 Z" fill="#000000"></path></g></svg>                 </figure>
                        <span>Alma/CentOS/RHEL/Rocky 9</span>
        </a>
                    <a class="os-switcher__item" onclick="osSwitch(this,'#debian')">
                            <figure>
                     <svg xmlns="http://www.w3.org/2000/svg" width="30.412" height="37.855" viewBox="0 0 30.412 37.855"><g data-name="Group 4978" transform="translate(0)"><path data-name="Path 3295" d="M51.55,57.148c-.627.009.119.323.938.449.226-.177.431-.355.614-.529a4.68,4.68,0,0,1-1.552.08" transform="translate(-33.375 -37.148)" fill="#a80030"></path><path data-name="Path 3296" d="M60.9,51.791a3.984,3.984,0,0,0,.742-1.664,4.059,4.059,0,0,1-.522,1.154c-1.172.738-.11-.438,0-.886-1.261,1.587-.173.952-.219,1.395" transform="translate(-39.357 -32.63)" fill="#a80030"></path><path data-name="Path 3297" d="M64.59,44.219c.076-1.13-.222-.772-.323-.341.117.061.209.8.323.341" transform="translate(-41.805 -28.292)" fill="#a80030"></path><path data-name="Path 3298" d="M45.172,1.4c.335.06.723.106.669.186.366-.08.449-.154-.669-.186" transform="translate(-29.376 -0.911)" fill="#a80030"></path><path data-name="Path 3299" d="M46.647,1.932l-.237.049.22-.02.016-.029" transform="translate(-30.181 -1.258)" fill="#a80030"></path><path data-name="Path 3300" d="M27.224,16.859a5.583,5.583,0,0,1-.6,2.378l-.542.271c-.444.861.043.547-.275,1.232a14.973,14.973,0,0,1-2.553,2.047c-.329-.007.223-.389.3-.538-.927.637-.744.956-2.162,1.342l-.042-.092c-3.5,1.645-8.354-1.615-8.291-6.064-.037.282-.106.212-.184.326a5.6,5.6,0,0,1,3.144-5.526,5.3,5.3,0,0,1,5.9.767,5.257,5.257,0,0,0-4.3-2.063,4.856,4.856,0,0,0-4.172,2.489c-.951.6-1.061,2.308-1.475,2.62-.557,4.1,1.049,5.867,3.765,7.949.428.288.12.332.178.552a7.372,7.372,0,0,1-2.409-1.842,6.473,6.473,0,0,0,1.253,1.444c-.851-.288-1.988-2.062-2.32-2.135,1.467,2.627,5.952,4.607,8.3,3.624a9.8,9.8,0,0,1-3.688-.429c-.513-.264-1.21-.811-1.086-.913a9.158,9.158,0,0,0,9.289-1.316c.705-.549,1.476-1.484,1.7-1.5-.335.5.057.243-.2.688.7-1.134-.305-.461.727-1.958l.381.525c-.142-.941,1.169-2.084,1.036-3.572.3-.455.335.49.016,1.537.443-1.162.117-1.348.23-2.307a8.71,8.71,0,0,1,.367,1,4.423,4.423,0,0,1,.441-2.543c-.142-.063-.445.5-.514-.83.01-.576.16-.3.218-.444a2.546,2.546,0,0,1-.59-1.353c.131-.2.35.516.528.545a13.163,13.163,0,0,1-.32-1.7c-.52-1.087-.184.145-.606-.467-.554-1.727.459-.4.528-1.185A13.868,13.868,0,0,1,30.732,13.3a15.9,15.9,0,0,0-.769-2.765c.255.107-.41-1.958.331-.59A12.326,12.326,0,0,0,24.513,3.03c.293.268.662.6.529.657-1.189-.708-.98-.763-1.15-1.062-.969-.394-1.032.032-1.674,0A19.878,19.878,0,0,0,18.36,1.153l.076.357c-1.209-.4-1.409.153-2.716,0-.08-.062.419-.225.829-.284-1.169.154-1.115-.23-2.259.043a9.724,9.724,0,0,1,.881-.5c-.954.058-2.277.555-1.868.1C11.748,1.57,8.986,2.544,7.436,4l-.049-.326c-.71.853-3.1,2.547-3.288,3.651l-.19.044a20.47,20.47,0,0,0-.9,1.979c-.483.824-.709.317-.64.446A30.106,30.106,0,0,0,.536,14.669c.291.435.007,2.616.117,4.362-.478,8.623,6.052,17,13.189,18.929a14.369,14.369,0,0,0,3.925.4c-1.561-.446-1.763-.237-3.284-.767-1.1-.517-1.338-1.107-2.115-1.781l.308.543c-1.524-.539-.886-.667-2.126-1.06l.328-.429a2.824,2.824,0,0,1-1.531-1.273l-.54.021c-.649-.8-1-1.378-.97-1.826l-.175.311c-.2-.34-2.389-3-1.252-2.384a2.563,2.563,0,0,1-.8-.867l.231-.265a4.4,4.4,0,0,1-.972-1.906,1.236,1.236,0,0,0,.695.535c-1.381-3.427-1.459-.189-2.5-3.489l.221-.018a7.327,7.327,0,0,1-.409-.805l.1-.96c-.994-1.15-.278-4.889-.135-6.94.1-.834.83-1.722,1.386-3.114l-.339-.058C4.532,10.7,7.58,7.3,8.992,7.471c.684-.859-.136,0-.269-.22,1.5-1.554,1.974-1.1,2.988-1.378,1.093-.649-.938.253-.42-.247,1.89-.483,1.339-1.1,3.8-1.342.26.148-.6.229-.82.421,1.575-.77,4.983-.6,7.2.428,2.569,1.2,5.455,4.749,5.569,8.088l.13.035c-.066,1.327.2,2.862-.262,4.272l.317-.667" transform="translate(-0.32 -0.503)" fill="#a80030"></path><path data-name="Path 3301" d="M32.208,59.764l-.088.44a8.451,8.451,0,0,0,1.266,1.6c-.379-.739-.66-1.045-1.178-2.044" transform="translate(-20.88 -38.903)" fill="#a80030"></path><path data-name="Path 3302" d="M34.247,58.123a3.488,3.488,0,0,1-.492-.821,5.711,5.711,0,0,0,.685,1.39l-.193-.569" transform="translate(-21.944 -37.3)" fill="#a80030"></path><path data-name="Path 3303" d="M82.358,48.916l-.092.231a11.156,11.156,0,0,1-1.093,3.489,10.961,10.961,0,0,0,1.185-3.72" transform="translate(-52.81 -31.841)" fill="#a80030"></path><path data-name="Path 3304" d="M45.054.187A13.512,13.512,0,0,1,46.546,0c-.586.049-1.17.079-1.746.153l.254.035" transform="translate(-29.133)" fill="#a80030"></path><path data-name="Path 3305" d="M2.44,23.219c.1.9-.681,1.256.172.659.457-1.03-.179-.284-.172-.659" transform="translate(-1.409 -15.114)" fill="#a80030"></path><path data-name="Path 3306" d="M-.053,32.764a9.824,9.824,0,0,0,.307-1.315c-.543.694-.25.842-.307,1.315" transform="translate(0.082 -20.471)" fill="#a80030"></path></g></svg>                 </figure>
                        <span>Debian 12</span>
        </a>
    </section>



<section id="block-webinar-block_1fad10b045f0f885476b7c6a81663d7e" data-id="block-webinar-block_1fad10b045f0f885476b7c6a81663d7e" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/instalace-zabbixu-7-2-v-peti-minutach/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2024/12/03_thumbnail_web.png"
				 width="400"
		 height="250"
		 class=""
		 alt="Instalace Zabbixu 7.2 v&nbsp;pěti minutách"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#4caf50;">Nový</span><span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2024-12-19">19.&nbsp;12.&nbsp;2024</time>
							</div>
			<h3 class="webinar-promotion__title">Instalace Zabbixu 7.2 v&nbsp;pěti minutách</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>


<section id="social-links-block_e69d04f3891993c353798cff14419e78" data-id="social-links-block_e69d04f3891993c353798cff14419e78" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>




<div id="rhel" class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading">Než začneme</h2>



<p>Pro účely této <strong>ukázky</strong> si nejdříve přepneme SELinux do&nbsp;Permissive módu.</p>



<p>Pokud plánujete SELinux trvale deaktivovat, můžete tak učinit úpravou konfiguračního souboru.&nbsp;Nicméně, doporučujeme zvážit možnost naučit se s&nbsp;SELinuxem pracovat a&nbsp;využít jeho bezpečnostní výhody.&nbsp;Podrobné informace o&nbsp;správném nastavení a&nbsp;monitorování SELinuxu naleznete <a href="https://www.initmax.cz/wiki/selinux-integrace-se-zabbixem-a-dalsimi-nastroji/">v našem samostatném článku.​</a></p>


<section id="block-code-block_26fe88d14fec2234cc8a18b59f25c83a" data-id="block-code-block_26fe88d14fec2234cc8a18b59f25c83a" class="gt-block block-code">
    <pre><code>setenforce 0</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>V prvním kroku si naistalujeme repozitáře pro PostgreSQL a&nbsp;zakážeme výchozí, systémové PostgreSQL repozitáře.</p>


<section id="block-code-block_f5dec08571efcca325da9f1cbc4a6cb0" data-id="block-code-block_f5dec08571efcca325da9f1cbc4a6cb0" class="gt-block block-code">
    <pre><code>dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně pak nainstalujeme PostgreSQL, v&nbsp;tomto případě to bude aktuálně podporovaná verze 17.</p>


<section id="block-code-block_6de26a950d1cb38dbbcf9f9d79427e2f" data-id="block-code-block_6de26a950d1cb38dbbcf9f9d79427e2f" class="gt-block block-code">
    <pre><code>dnf install -y postgresql17-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Inicializujeme databázi a&nbsp;nastavíme její automatické spouštění.</p>


<section id="block-code-block_83a9f9c7e1d111f8513e912485e42870" data-id="block-code-block_83a9f9c7e1d111f8513e912485e42870" class="gt-block block-code">
    <pre><code>/usr/pgsql-17/bin/postgresql-17-setup initdb
systemctl enable postgresql-17 --now</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databáze je nyní nainstalovaná, a&nbsp;můžeme tedy přikročit k&nbsp;instalaci Zabbix serveru a&nbsp;všech jeho součástí.</p>



<p>Nejprve si z&nbsp;repozitáře EPEL vyloučíme jakékoliv instalační balíčky týkající se Zabbixu. Za předpokladu, že je nainstalován.</p>



<p>To provedeme tak, že na&nbsp;konec souboru <code>/etc/yum.repos.d/epel.repo</code> vložíme následující řádek:</p>


<section id="block-code-block_432f0117d50c66be4f44b32b2e0d6ae4" data-id="block-code-block_432f0117d50c66be4f44b32b2e0d6ae4" class="gt-block block-code">
    <pre><code>[epel]
...
excludepkgs=zabbix*</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Přidáme si repozitáře Zabbixu a&nbsp;vyčistíme instalační cache.</p>


<section id="block-code-block_5675a6ea2783935d72d1349c1c8d2a07" data-id="block-code-block_5675a6ea2783935d72d1349c1c8d2a07" class="gt-block block-code">
    <pre><code>rpm -Uvh https://repo.zabbix.com/zabbix/7.2/release/rocky/9/noarch/zabbix-release-latest-7.2.el9.noarch.rpm
dnf clean all</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nainstalujeme všechny potřebné součásti Zabbixu.</p>



<p>V tomto případě použijeme jako primárního monitorovacího agenta Zabbix Agent 2, který vám doporučujeme používat, jelikož přináší daleko více funkcionalit.</p>


<section id="block-code-block_3b2ae4d2991a545913893279fdf13999" data-id="block-code-block_3b2ae4d2991a545913893279fdf13999" class="gt-block block-code">
    <pre><code>dnf install zabbix-server-pgsql zabbix-web-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 zabbix-web-service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>Nejprve vytvoříme databázového uživatele pro Zabbix, budeme vyzváni k&nbsp;zadání jeho přístupového hesla.</p>


<section id="block-code-block_5ef87050dcbe91a09b2ac142872ae293" data-id="block-code-block_5ef87050dcbe91a09b2ac142872ae293" class="gt-block block-code">
    <pre><code>cd /tmp
sudo -u postgres createuser --pwprompt zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tuto chvíli jsme schopni naimportovat výchozí schéma a&nbsp;data. Opět budeme vyzváni k&nbsp;zadání hesla. <br>Zde použijeme heslo z&nbsp;předchozího kroku.</p>


<section id="block-code-block_188846ca1afab77af94505aec9c23bed" data-id="block-code-block_188846ca1afab77af94505aec9c23bed" class="gt-block block-code">
    <pre><code>sudo -u postgres createdb -O zabbix zabbix
zcat /usr/share/zabbix/sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení firewallu</h2>



<p>Nazávěr na&nbsp;firewallu povolíme porty, které jsou nezbytné pro běh Zabbix serveru.</p>


<section id="block-code-block_b287b9b6a4cb5baf54fa11e92b1a2622" data-id="block-code-block_b287b9b6a4cb5baf54fa11e92b1a2622" class="gt-block block-code">
    <pre><code>firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-port=10051/tcp
firewall-cmd --reload</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Nyní se pustíme do&nbsp;instalace TimescaleDB a&nbsp;začneme tím, že přidáme její oficiální repozitář.</p>


<section id="block-code-block_c94b867696d74f4621828513077cf383" data-id="block-code-block_c94b867696d74f4621828513077cf383" class="gt-block block-code">
    <pre><code>tee /etc/yum.repos.d/timescale_timescaledb.repo &lt;&lt;EOL
[timescale_timescaledb]
name=timescale_timescaledb
baseurl=https://packagecloud.io/timescale/timescaledb/el/$(rpm -E %{rhel})/\$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOL</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nainstalujme TimescaleDB.</p>


<section id="block-code-block_4df5d2f8011575288a20a77c94857aa4" data-id="block-code-block_4df5d2f8011575288a20a77c94857aa4" class="gt-block block-code">
    <pre><code>dnf install timescaledb-2-postgresql-17 timescaledb-2-loader-postgresql-17</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Spustíme utilitu <code>timescaledb-tune</code> a&nbsp;jako parametr jí předáme vyšší hodnotu maximálního množství připojení (<code>--max-conns</code>), které pro tyto testovací účely nastavíme na&nbsp;<code>125</code>.</p>



<p>Tato utilita slouží k&nbsp;přizpůsobení výchozího nastavení PostgreSQL vůčihledně výkonu a&nbsp;adekvátnímu nastavení parametrů PostgreSQL pro fungování s&nbsp;TimescaleDB.</p>



<p>Zároveň nám tato utilit pomocí instalačního průvodce pomůže vybrat aktuální a&nbsp;platný konfigurační soubor PostgreSQL a&nbsp;nastaví i&nbsp;automatické načítání knihoven TimescaleDB.</p>



<p>Prosím, odpovídejte &#8222;ano&#8220; (y) na&nbsp;všechny otázky. Pozor, automatický tuner předpokládá, že PostgreSQL běží na&nbsp;samostatném serveru, a&nbsp;proto může být potřeba případně upravit parametry.</p>


<section id="block-code-block_110245a0411174e0fe19b3c2d8445d43" data-id="block-code-block_110245a0411174e0fe19b3c2d8445d43" class="gt-block block-code">
    <pre><code>timescaledb-tune --pg-config /usr/pgsql-17/bin --max-conns=125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1530" height="584" src="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune.png" alt="" class="wp-image-17150" srcset="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune.png 1530w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-300x115.png 300w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-1024x391.png 1024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-768x293.png 768w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-608x232.png 608w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-1216x464.png 1216w" sizes="auto, (max-width: 1530px) 100vw, 1530px" /></figure>



<p>Následně restartujeme systémovou službu pro PostgreSQL:</p>


<section id="block-code-block_9062496a826a223a453a4a4c8e76e4c8" data-id="block-code-block_9062496a826a223a453a4a4c8e76e4c8" class="gt-block block-code">
    <pre><code>systemctl restart postgresql-17.service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá již jen vytvořit a&nbsp;aktivovat samotnou TimescaleDB:</p>



<p>Pozor, během vývoje došlo ke změně cesty z&nbsp;původní /usr/share/zabbix-sql-scripts/postgresql/timescaledb/schema.sql na&nbsp;novou /usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql.</p>


<section id="block-code-block_c99bb70c87e30421ce22bd3c1021ccd4" data-id="block-code-block_c99bb70c87e30421ce22bd3c1021ccd4" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix serveru</h2>



<p>Otevřeme konfigurační soubor Zabbix serveru v&nbsp;cestě:</p>


<section id="block-code-block_a3201247259c3cd7930790772b083724" data-id="block-code-block_a3201247259c3cd7930790772b083724" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tomto konfiguračním souboru upravíme následující parametry tak, jak vídíte na&nbsp;předloze níže:</p>


<section id="block-code-block_600af19b33b347d60e67f614dc9cf571" data-id="block-code-block_600af19b33b347d60e67f614dc9cf571" class="gt-block block-code">
    <pre><code>...
DBPassword=password
StartReportWriters=1
WebServiceURL=http://localhost:10053/report
...</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku doinstalujeme všechny jazykové balíčky pro Zabbix frontend:</p>


<section id="block-code-block_7ff7c6f6c4e84f489087255613d6c55c" data-id="block-code-block_7ff7c6f6c4e84f489087255613d6c55c" class="gt-block block-code">
    <pre><code>dnf install glibc-langpack-en glibc-langpack-cs glibc-langpack-sk glibc-langpack-fr glibc-langpack-de glibc-langpack-es glibc-langpack-it glibc-langpack-zh glibc-langpack-pt glibc-langpack-da glibc-langpack-nb glibc-langpack-pl glibc-langpack-tr glibc-langpack-he glibc-langpack-ja glibc-langpack-ko glibc-langpack-ru glibc-langpack-uk glibc-langpack-ca glibc-langpack-ka glibc-langpack-vi</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nakonec restartujeme všechny související služby a&nbsp;nastavíme je tak, aby se spouštěly automaticky po&nbsp;startu:</p>


<section id="block-code-block_322a519fb54ec7ee7f12b66a6689372b" data-id="block-code-block_322a519fb54ec7ee7f12b66a6689372b" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm
systemctl enable zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Pro ověření stavu, že nám Zabbix server nastartoval v&nbsp;pořádku můžeme kromě jiného zkontrolovat i&nbsp;jeho log soubor:</p>


<section id="block-code-block_e2beb37c0f09e4ec71ccff0956237002" data-id="block-code-block_e2beb37c0f09e4ec71ccff0956237002" class="gt-block block-code">
    <pre><code>less /var/log/zabbix/zabbix_server.log</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V případě, že uvidíte v&nbsp;log souboru zprávu o&nbsp;tom, že je verze TimescaleDB příliš nová, pak to není žádný velký problém. Zabbix nedokáže dostatečně rychle reagovat na&nbsp;nejnovější verze TimescaleDB tak, aby ji ve svém kódu nastavil jako podporovanou, ovšem kompatibilita je Zabbixem zaručena a&nbsp;námi ověřena.</p>



<p>V případě této chyby stačí otevřít konfigurační soubor Zabbix serveru v&nbsp;cestě <code>/etc/zabbix/zabbix_server.conf</code> a&nbsp;zde upravte následující konfigurační parametr:</p>


<section id="block-code-block_2494d96aefa4c80691ce0c8120f44271" data-id="block-code-block_2494d96aefa4c80691ce0c8120f44271" class="gt-block block-code">
    <pre><code>AllowUnsupportedDBVersions=1</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Soubor s&nbsp;tímto nastavením uložte a&nbsp;zrestartujte systémovou službu Zabbix serveru.</p>


<section id="block-code-block_62d17dffccdff2db9e9329733e65cf7f" data-id="block-code-block_62d17dffccdff2db9e9329733e65cf7f" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix frontendu</h2>



<p>V prohlížeči si otevřeme cílové URL, na&nbsp;kterém Zabbix běží. Například tedy <code>http://192.168.0.50/zabbix</code>, kde nás uvítá průvodce prvotní instalací.</p>



<p>Po zvolení implicitního jazyka se tlačítkem <code>Next step</code> posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1786" height="1132" src="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1.png" alt="" class="wp-image-17155" srcset="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1.png 1786w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-1024x649.png 1024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-768x487.png 768w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-1536x974.png 1536w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-608x385.png 608w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-1216x771.png 1216w" sizes="auto, (max-width: 1786px) 100vw, 1786px" /></figure>



<p>Pokud je kontrola v&nbsp;pořádku, pak se tedy můžeme kliknutím na&nbsp;<code>Next step</code> posunout na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png" alt="" class="wp-image-16593" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Zde vyplňujeme pouze políčko <strong>Password</strong> pro přístup do&nbsp;databáze, nic dalšího není třeba měnit.</p>



<p>Po vyplnění opět klikneme na&nbsp;<code>Next step</code>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png" alt="" class="wp-image-16591" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Na následující stránce se základním nastavením vyplníme název serveru, časové pásmo, a&nbsp;kliknutím na&nbsp;<code>Next step</code> pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1124" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png" alt="" class="wp-image-16589" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-300x188.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1024x641.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-768x481.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1536x961.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-608x381.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1216x761.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>V tomto souhrnu zkontrolumeme všechny zadané hodnoty a&nbsp;kliknutím na&nbsp;<code>Next step</code> dokončíme instalaci.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1792" height="1136" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png" alt="" class="wp-image-16587" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png 1792w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1024x649.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-768x487.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1536x974.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-608x385.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1216x771.png 1216w" sizes="auto, (max-width: 1792px) 100vw, 1792px" /></figure>



<p>Nyní již kliknutím na&nbsp;tlačítko <code>Finish</code> přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1130" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png" alt="" class="wp-image-16585" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-300x189.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1024x644.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-768x483.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1536x966.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-608x383.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1216x765.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Po úspěšném přihlášení pomocí dříve zadaných údajů můžeme začít používat nejnovější Zabbix verze 7.2 (<code>Admin/zabbix</code>).</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2440" height="1116" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7.png" alt="" class="wp-image-16583" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7.png 2440w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-300x137.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-1024x468.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-768x351.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-1536x703.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-2048x937.png 2048w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-608x278.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-1216x556.png 1216w" sizes="auto, (max-width: 2440px) 100vw, 2440px" /></figure>



<p>A takto vypada úvodní dashboard nového Zabbixu 7.2:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="3024" height="1564" src="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard.png" alt="" class="wp-image-17158" srcset="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard.png 3024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-300x155.png 300w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-1024x530.png 1024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-768x397.png 768w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-1536x794.png 1536w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-2048x1059.png 2048w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-608x314.png 608w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-1216x629.png 1216w" sizes="auto, (max-width: 3024px) 100vw, 3024px" /></figure>



<h2 class="wp-block-heading">Nastavení Zabbix reportingu</h2>



<p>Proto, aby byl plně funkční reporting se všemi jeho vylepšeními si nejprve musíme nainstalovat Google Chrome.</p>



<p>Následujícím příkazem stáhneme instalační balíček, a&nbsp;ten také nainstalujeme:</p>


<section id="block-code-block_90dcba780aab3ac7ec83b79f0963faf3" data-id="block-code-block_90dcba780aab3ac7ec83b79f0963faf3" class="gt-block block-code">
    <pre><code>wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf localinstall google-chrome-stable_current_x86_64.rpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku upravíme v&nbsp;Zabbix frontendu parametr &#8222;Frontend URL&#8220; na&nbsp;aktuálně platnou hodnotu, toto nastavení se nachází zde:</p>


<section id="block-code-block_4db7b6756e3a55e3735dfeaa898df0ef" data-id="block-code-block_4db7b6756e3a55e3735dfeaa898df0ef" class="gt-block block-code">
    <pre><code>Administration -&gt; General -&gt; Other</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Příklad této konfigurace pak můžete vidět na&nbsp;obrázku níže.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2798" height="1364" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9.png" alt="" class="wp-image-16598" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9.png 2798w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-300x146.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-1024x499.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-768x374.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-1536x749.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-2048x998.png 2048w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-608x296.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-1216x593.png 1216w" sizes="auto, (max-width: 2798px) 100vw, 2798px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>
</div></div>



<p></p>



<div id="debian" class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading">Instalace závislostí</h2>


<section id="block-code-block_a43f27534fbbd05dba267348f070f40f" data-id="block-code-block_a43f27534fbbd05dba267348f070f40f" class="gt-block block-code">
    <pre><code>apt install sudo gpg curl wget</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>V prvním kroku si nainstalujeme repozitáře pro PostgreSQL a&nbsp;zakážeme výchozí systémové repozitáře PostgreSQL. Na&nbsp;otázku &#8218;This script will enable the PostgreSQL APT repository on apt.postgresql.org on your system. The distribution codename used will be bookworm-pgdg.&#8216; stiskněte Enter pro pokračování a&nbsp;potvrzení instalace z&nbsp;oficiálního repozitáře.</p>


<section id="block-code-block_2565c78f4b50c17ca3555dbb55b7d4d4" data-id="block-code-block_2565c78f4b50c17ca3555dbb55b7d4d4" class="gt-block block-code">
    <pre><code>apt install -y postgresql-common
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně pak nainstalujeme PostgreSQL, v&nbsp;tomto případě to bude aktuálně podporovaná verze 17.</p>


<section id="block-code-block_50309929994c980fb08482bfda3b8afe" data-id="block-code-block_50309929994c980fb08482bfda3b8afe" class="gt-block block-code">
    <pre><code>apt -y install postgresql-17</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nastartování PostgreSQL a&nbsp;nastavení automatického spuštění při&nbsp;startu systému</p>


<section id="block-code-block_2f8c9e33a2306c8731d984181f26e56b" data-id="block-code-block_2f8c9e33a2306c8731d984181f26e56b" class="gt-block block-code">
    <pre><code>systemctl enable postgresql --now</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databáze je nyní nainstalovaná, a&nbsp;můžeme tedy přikročit k&nbsp;instalaci Zabbix serveru a&nbsp;všech jeho součástí.</p>



<p>Přidáme si repozitáře Zabbixu a&nbsp;vyčistíme instalační cache.</p>


<section id="block-code-block_99c59dfa5c8f742d1fc26c43b6cb1b2d" data-id="block-code-block_99c59dfa5c8f742d1fc26c43b6cb1b2d" class="gt-block block-code">
    <pre><code>wget https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.2+debian12_all.deb
dpkg -i zabbix-release_latest_7.2+debian12_all.deb
apt update</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nainstalujeme všechny potřebné součásti Zabbixu.</p>



<p>V tomto případě použijeme jako primárního monitorovacího agenta Zabbix Agent 2, který vám doporučujeme používat, jelikož přináší daleko více funkcionalit.</p>


<section id="block-code-block_351b10e25f376d1ecd0606a0b192f055" data-id="block-code-block_351b10e25f376d1ecd0606a0b192f055" class="gt-block block-code">
    <pre><code>apt install zabbix-server-pgsql zabbix-frontend-php php8.2-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 zabbix-web-service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>Nejprve vytvoříme databázového uživatele pro Zabbix. Během procesu budeme vyzváni k&nbsp;zadání jeho přístupového hesla. Dále vytvoříme prázdnou databázi a&nbsp;nastavíme jí příslušná oprávnění.</p>


<section id="block-code-block_68628499af0b92c199b6073ca767deda" data-id="block-code-block_68628499af0b92c199b6073ca767deda" class="gt-block block-code">
    <pre><code>sudo -u postgres createuser --pwprompt zabbix
sudo -u postgres createdb -O zabbix zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tuto chvíli jsme schopni naimportovat výchozí schéma a&nbsp;data. Opět budeme vyzváni k&nbsp;zadání hesla. <br>Zde použijeme heslo z&nbsp;předchozího kroku.</p>


<section id="block-code-block_9d87de702a7f0e7739fd2f910e78d609" data-id="block-code-block_9d87de702a7f0e7739fd2f910e78d609" class="gt-block block-code">
    <pre><code>zcat /usr/share/zabbix/sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Nyní se pustíme do&nbsp;instalace TimescaleDB a&nbsp;začneme tím, že přidáme její oficiální repozitář.</p>


<section id="block-code-block_8264c12440f2d446fc4f11534ca64759" data-id="block-code-block_8264c12440f2d446fc4f11534ca64759" class="gt-block block-code">
    <pre><code>echo &quot;deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main&quot; | sudo tee /etc/apt/sources.list.d/timescaledb.list
wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nainstalujme TimescaleDB.</p>


<section id="block-code-block_f9fb5b70cdb0549c53d686eaff7e959b" data-id="block-code-block_f9fb5b70cdb0549c53d686eaff7e959b" class="gt-block block-code">
    <pre><code>apt update
apt install timescaledb-2-postgresql-17 timescaledb-2-loader-postgresql-17</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Spustíme utilitu <code>timescaledb-tune</code> a&nbsp;jako parametr jí předáme vyšší hodnotu maximálního množství připojení (<code>--max-conns</code>), které pro tyto testovací účely nastavíme na&nbsp;<code>125</code>.</p>



<p>Tato utilita slouží k&nbsp;přizpůsobení výchozího nastavení PostgreSQL vůčihledně výkonu a&nbsp;adekvátnímu nastavení parametrů PostgreSQL pro fungování s&nbsp;TimescaleDB.</p>



<p>Zároveň nám tato utilit pomocí instalačního průvodce pomůže vybrat aktuální a&nbsp;platný konfigurační soubor PostgreSQL a&nbsp;nastaví i&nbsp;automatické načítání knihoven TimescaleDB.</p>



<p>Prosím, odpovídejte &#8222;ano&#8220; (y) na&nbsp;všechny otázky. Pozor, automatický tuner předpokládá, že PostgreSQL běží na&nbsp;samostatném serveru, a&nbsp;proto může být potřeba případně upravit parametry.</p>


<section id="block-code-block_9ea1dcc5bdafab7635ca51bb6a8f3d98" data-id="block-code-block_9ea1dcc5bdafab7635ca51bb6a8f3d98" class="gt-block block-code">
    <pre><code>timescaledb-tune --pg-config /usr/bin --max-conns=125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1158" height="582" src="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian.png" alt="" class="wp-image-17171" srcset="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian.png 1158w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian-300x151.png 300w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian-1024x515.png 1024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian-768x386.png 768w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72-tune-debian-608x306.png 608w" sizes="auto, (max-width: 1158px) 100vw, 1158px" /></figure>



<p>Následně restartujeme systémovou službu pro PostgreSQL:</p>


<section id="block-code-block_c1731892cf76d73f373228deb2deaa3a" data-id="block-code-block_c1731892cf76d73f373228deb2deaa3a" class="gt-block block-code">
    <pre><code>systemctl restart postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá již jen vytvořit a&nbsp;aktivovat samotnou TimescaleDB:</p>



<p>Pozor, během vývoje došlo ke změně cesty z&nbsp;původní /usr/share/zabbix-sql-scripts/postgresql/timescaledb/schema.sql na&nbsp;novou /usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql.</p>


<section id="block-code-block_c99bb70c87e30421ce22bd3c1021ccd4" data-id="block-code-block_c99bb70c87e30421ce22bd3c1021ccd4" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix/sql-scripts/postgresql/timescaledb/schema.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix serveru</h2>



<p>Otevřeme konfigurační soubor Zabbix serveru v&nbsp;cestě:</p>


<section id="block-code-block_a3201247259c3cd7930790772b083724" data-id="block-code-block_a3201247259c3cd7930790772b083724" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tomto konfiguračním souboru upravíme následující parametry tak, jak vídíte na&nbsp;předloze níže:</p>


<section id="block-code-block_600af19b33b347d60e67f614dc9cf571" data-id="block-code-block_600af19b33b347d60e67f614dc9cf571" class="gt-block block-code">
    <pre><code>...
DBPassword=password
StartReportWriters=1
WebServiceURL=http://localhost:10053/report
...</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku nastavíme jazykové balíčky pro Zabbix frontend. Můžete zvolit pouze ty, které potřebujete, nebo povolit všechny.</p>


<section id="block-code-block_167fe298acbe8628384da1e88d78b50c" data-id="block-code-block_167fe298acbe8628384da1e88d78b50c" class="gt-block block-code">
    <pre><code>sed -i &#039;/# en_US.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# en_GB.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# cs_CZ.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# sk_SK.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# fr_FR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# de_DE.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# es_ES.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# it_IT.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# zh_CN.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# pt_PT.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# pt_BR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# da_DK.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# nb_NO.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# pl_PL.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# tr_TR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# he_IL.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ja_JP.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ko_KR.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ru_RU.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# uk_UA.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ca_ES.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# ka_GE.UTF-8 UTF-8/s/^# //&#039; /etc/locale.gen
sed -i &#039;/# vi_VN UTF-8/s/^# //&#039; /etc/locale.gen
locale-gen</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nakonec restartujeme všechny související služby a&nbsp;nastavíme je tak, aby se spouštěly automaticky po&nbsp;startu:</p>


<section id="block-code-block_2dc85e8f1dbd02e1947ea961d4992865" data-id="block-code-block_2dc85e8f1dbd02e1947ea961d4992865" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server zabbix-web-service zabbix-agent2 apache2
systemctl enable zabbix-server zabbix-web-service zabbix-agent2 apache2</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Pro ověření stavu, že nám Zabbix server nastartoval v&nbsp;pořádku můžeme kromě jiného zkontrolovat i&nbsp;jeho log soubor:</p>


<section id="block-code-block_e2beb37c0f09e4ec71ccff0956237002" data-id="block-code-block_e2beb37c0f09e4ec71ccff0956237002" class="gt-block block-code">
    <pre><code>less /var/log/zabbix/zabbix_server.log</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V případě, že uvidíte v&nbsp;log souboru zprávu o&nbsp;tom, že je verze TimescaleDB příliš nová, pak to není žádný velký problém. Zabbix nedokáže dostatečně rychle reagovat na&nbsp;nejnovější verze TimescaleDB tak, aby ji ve svém kódu nastavil jako podporovanou, ovšem kompatibilita je Zabbixem zaručena a&nbsp;námi ověřena.</p>



<p>V případě této chyby stačí otevřít konfigurační soubor Zabbix serveru v&nbsp;cestě <code>/etc/zabbix/zabbix_server.conf</code> a&nbsp;zde upravte následující konfigurační parametr:</p>


<section id="block-code-block_2494d96aefa4c80691ce0c8120f44271" data-id="block-code-block_2494d96aefa4c80691ce0c8120f44271" class="gt-block block-code">
    <pre><code>AllowUnsupportedDBVersions=1</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Soubor s&nbsp;tímto nastavením uložte a&nbsp;zrestartujte systémovou službu Zabbix serveru.</p>


<section id="block-code-block_62d17dffccdff2db9e9329733e65cf7f" data-id="block-code-block_62d17dffccdff2db9e9329733e65cf7f" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix frontendu</h2>



<p>V prohlížeči si otevřeme cílové URL, na&nbsp;kterém Zabbix běží. Například tedy <code>http://192.168.0.50/zabbix</code>, kde nás uvítá průvodce prvotní instalací.</p>



<p>Po zvolení implicitního jazyka se tlačítkem <code>Next step</code> posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1786" height="1132" src="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1.png" alt="" class="wp-image-17155" srcset="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1.png 1786w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-1024x649.png 1024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-768x487.png 768w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-1536x974.png 1536w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-608x385.png 608w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72install1-1216x771.png 1216w" sizes="auto, (max-width: 1786px) 100vw, 1786px" /></figure>



<p>Pokud je kontrola v&nbsp;pořádku, pak se tedy můžeme kliknutím na&nbsp;<code>Next step</code> posunout na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png" alt="" class="wp-image-16593" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Zde vyplňujeme pouze políčko <strong>Password</strong> pro přístup do&nbsp;databáze, nic dalšího není třeba měnit.</p>



<p>Po vyplnění opět klikneme na&nbsp;<code>Next step</code>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png" alt="" class="wp-image-16591" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Na následující stránce se základním nastavením vyplníme název serveru, časové pásmo, a&nbsp;kliknutím na&nbsp;<code>Next step</code> pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1124" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png" alt="" class="wp-image-16589" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-300x188.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1024x641.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-768x481.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1536x961.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-608x381.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1216x761.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>V tomto souhrnu zkontrolumeme všechny zadané hodnoty a&nbsp;kliknutím na&nbsp;<code>Next step</code> dokončíme instalaci.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1792" height="1136" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png" alt="" class="wp-image-16587" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png 1792w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1024x649.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-768x487.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1536x974.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-608x385.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1216x771.png 1216w" sizes="auto, (max-width: 1792px) 100vw, 1792px" /></figure>



<p>Nyní již kliknutím na&nbsp;tlačítko <code>Finish</code> přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1130" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png" alt="" class="wp-image-16585" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-300x189.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1024x644.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-768x483.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1536x966.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-608x383.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1216x765.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Po úspěšném přihlášení pomocí dříve zadaných údajů můžeme začít používat nejnovější Zabbix verze 7.2 (<code>Admin/zabbix</code>).</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2440" height="1116" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7.png" alt="" class="wp-image-16583" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7.png 2440w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-300x137.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-1024x468.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-768x351.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-1536x703.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-2048x937.png 2048w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-608x278.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-1216x556.png 1216w" sizes="auto, (max-width: 2440px) 100vw, 2440px" /></figure>



<p>A takto vypada úvodní dashboard nového Zabbixu 7.2:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="3024" height="1564" src="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard.png" alt="" class="wp-image-17158" srcset="https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard.png 3024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-300x155.png 300w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-1024x530.png 1024w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-768x397.png 768w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-1536x794.png 1536w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-2048x1059.png 2048w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-608x314.png 608w, https://www.initmax.cz/wp-content/uploads/2024/12/zabbix72dashboard-1216x629.png 1216w" sizes="auto, (max-width: 3024px) 100vw, 3024px" /></figure>



<h2 class="wp-block-heading">Nastavení Zabbix reportingu</h2>



<p>Proto, aby byl plně funkční reporting se všemi jeho vylepšeními si nejprve musíme nainstalovat Google Chrome.</p>



<p>Následujícím příkazem stáhneme instalační balíček, a&nbsp;ten také nainstalujeme:</p>


<section id="block-code-block_8237a397f88b14110251a8612ccabdbc" data-id="block-code-block_8237a397f88b14110251a8612ccabdbc" class="gt-block block-code">
    <pre><code>curl -fSsL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg &gt;&gt; /dev/null
echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.list
apt update
apt install google-chrome-stable</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku upravíme v&nbsp;Zabbix frontendu parametr &#8222;Frontend URL&#8220; na&nbsp;aktuálně platnou hodnotu, toto nastavení se nachází zde:</p>


<section id="block-code-block_4db7b6756e3a55e3735dfeaa898df0ef" data-id="block-code-block_4db7b6756e3a55e3735dfeaa898df0ef" class="gt-block block-code">
    <pre><code>Administration -&gt; General -&gt; Other</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Příklad této konfigurace pak můžete vidět na&nbsp;obrázku níže.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2798" height="1364" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9.png" alt="" class="wp-image-16598" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9.png 2798w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-300x146.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-1024x499.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-768x374.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-1536x749.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-2048x998.png 2048w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-608x296.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-1216x593.png 1216w" sizes="auto, (max-width: 2798px) 100vw, 2798px" /></figure>
</div></div>



<h2 class="wp-block-heading">Dokončovací práce</h2>



<ul class="wp-block-list">
<li>Zkontrolujte, že správně běží Zabbix server, databázový server a&nbsp;mají správnou verzi</li>



<li>Zkontrolujte také, zda při&nbsp;startu serveru nebo proxy v&nbsp;systému neuvidíte následující chybu: ‚…the user limit of 1024 file descriptors is insufficient. The maximum number of concurrent checks per worker has been reduced…‘ <a href="https://www.initmax.cz/wiki/zabbix-7-0-a-navyseni-systemovych-limitu/">Návod na&nbsp;odstranění naleznete na&nbsp;naší wiki</a>.</li>
</ul>



<h2 class="wp-block-heading">Podpora pro Item Browser</h2>



<p>Veškeré potřebné kroky naleznete v&nbsp;<a href="https://www.initmax.cz/wiki/instalace-a-zakladni-pouziti-pro-item-browser/">samostatném návodu na&nbsp;naší wiki<strong>.</strong></a></p>


<section id="block-webinar-block_113437590e223edb53b906dbd78af22a" data-id="block-webinar-block_113437590e223edb53b906dbd78af22a" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/7-0-workshop-zabbix-7-0-monitorovani-pomoci-browser-item-pomoci-aplikace-selenium/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2024/05/ilustrace_webinare_zabbix_7.0_13_thumbnail_web-copy-2.png"
				 width="400"
		 height="250"
		 class=""
		 alt="7.0 Workshop: Zabbix 7.0 &#8211; Monitorování pomocí Browser Item pomocí aplikace Selenium"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#4caf50;">Nový</span><span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2024-06-21">21.&nbsp;6.&nbsp;2024</time>
							</div>
			<h3 class="webinar-promotion__title">7.0 Workshop: Zabbix 7.0 &#8211; Monitorování pomocí Browser Item pomocí aplikace Selenium</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>



<h2 class="wp-block-heading">Vlastní rebranding</h2>



<p>Veškeré potřebné kroky naleznete v&nbsp;<a href="https://www.initmax.cz/wiki/rebranding-zabbixu/">samostatném návodu na&nbsp;naší wiki<strong>.</strong></a></p>


<section id="block-newsletter-block_361638f88b05c1182de0c7cd9eed4bfa" data-id="block-newsletter-block_361638f88b05c1182de0c7cd9eed4bfa" class="gt-block block-newsletter">
    <section id="newsletter" class="newsletter">
	<div class="gradient basic">
		<div class="newsletter__inner width width--general">
			<div class="col left">
									<h2 class="newsletter__title">Buďte v&nbsp;obraze s&nbsp;naším newsletterem</h2>
													<div class="newsletter__content"><p>Díky initMAX newsletteru Vám neunikne žádná z&nbsp;pozvánek na&nbsp;akce a&nbsp;webináře, žádný z&nbsp;tipů, jak dostat ze svého IT MAXimum, ani ověřené informace o&nbsp;novinkách ze světa Zabbix a&nbsp;dalších technologií.</p>
</div>
							</div>
			<div class="col right form-wrapper">
				<div class="newsletter-form">
	<form method="post" action="/wiki/kapitola/zabbix/zabbix-instalace/feed/" enctype="multipart/form-data">
		<input type="hidden" name="url" value="https://www.initmax.cz/wiki/kapitola/zabbix/zabbix-instalace/feed/">

		<div class="inputs">

			<label for="newsletter-form_contact_email" class="top">Vaše e-mailová adresa:</label>
			<div class="df">

				<div class="input">
					<input type="text" id="newsletter-form_contact_email" name="newsletter_email" placeholder="@" data-format="email" data-required="1">
									</div><!-- /.input -->

				<a href="#" class="btn btn--white sendBtn">Odeslat</a>

			</div>

			<div class="bottom nm">
				<label for="newsletter-form_gdpr" class="checkbox gdpr">
					<input type="checkbox" id="newsletter-form_gdpr" name="newsletter_gdpr">
					<span>Souhlasím se&nbsp;<a href="https://www.initmax.cz/ochrana-osobnich-udaju/" target="_blank">zpracováním osobních údajů</a>.</span>
				</label>
			</div>

		</div><!-- /.inputs -->
		<div class="sent hidden">
			<div class="iconOk"><h3>Děkujeme, že jste se přihlásili k&nbsp;odběru našeho newsletteru.</h3>
</div>
			<button class="sent__close" title="Zavřít" onclick="closeFormMessage(this,event)"><svg data-name="Group 3602" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 3272" d="M0,0H24V24H0Z" fill="none"/><line data-name="Line 98" y2="14" transform="translate(7.05 7.05) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 99" x2="14" transform="translate(7.05 16.95) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</button>
		</div><!-- /.sent -->
	</form>
</div>			</div>
		</div>
	</div>
</section></section>



<section id="social-links-block_e69d04f3891993c353798cff14419e78" data-id="social-links-block_e69d04f3891993c353798cff14419e78" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>

<p>The post <a href="https://www.initmax.cz/wiki/zabbix-7-2-navod-na-instalaci-v-5-minutach/">Zabbix 7.2 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Zabbix 7.0 &#8211; návod na&#160;instalaci v&#160;5 minutách</title>
		<link>https://www.initmax.cz/wiki/zabbix-7-0-instalace-v-5-minutach/</link>
		
		<dc:creator><![CDATA[Tomáš Heřmánek]]></dc:creator>
		<pubDate>Thu, 26 Oct 2023 19:07:00 +0000</pubDate>
				<guid isPermaLink="false">https://www.initmax.cz/?post_type=wiki&#038;p=13309</guid>

					<description><![CDATA[<p>V tomto návodu si ukážeme, jak během pěti minut nainstalovat a nakonfigurovat nejnovější Zabbix verze 7.0 s databází PostgreSQL 16 na Rocky Linux ...</p>
<p>The post <a href="https://www.initmax.cz/wiki/zabbix-7-0-instalace-v-5-minutach/">Zabbix 7.0 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>V tomto návodu si ukážeme, jak během pěti minut nainstalovat a&nbsp;nakonfigurovat nejnovější Zabbix verze 7.0 s&nbsp;databází PostgreSQL 16 na&nbsp;Rocky Linux 9!</p>


<section id="block-webinar-block_b6129c92c355e5621a8f34f5ac06a5d1" data-id="block-webinar-block_b6129c92c355e5621a8f34f5ac06a5d1" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/instalace-zabbixu-v-peti-minutach-7-0/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2023/09/ilustrace_webinare_zabbix_7.0_03_thumbnail_web-08.png"
				 width="400"
		 height="250"
		 class=""
		 alt="Instalace Zabbixu v&nbsp;pěti minutách"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2023-10-12">12.&nbsp;10.&nbsp;2023</time>
							</div>
			<h3 class="webinar-promotion__title">Instalace Zabbixu v&nbsp;pěti minutách</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>


<section id="social-links-block_17d9a75d671bb48941f30db03cf32387" data-id="social-links-block_17d9a75d671bb48941f30db03cf32387" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>




<h2 class="wp-block-heading">Než začneme</h2>



<p>Pro účely této <strong>ukázky</strong> si nejdříve přepneme SELinux do&nbsp;Permissive módu.</p>



<p>Pokud plánujete SELinux trvale deaktivovat, můžete tak učinit úpravou konfiguračního souboru. Nicméně, doporučujeme zvážit možnost naučit se s&nbsp;SELinuxem pracovat a&nbsp;využít jeho bezpečnostní výhody. Podrobné informace o&nbsp;správném nastavení a&nbsp;monitorování SELinuxu naleznete <a href="https://www.initmax.cz/wiki/selinux-integrace-se-zabbixem-a-dalsimi-nastroji/">v našem samostatném článku.​</a></p>


<section id="block-code-block_b48d31084fe6c0d9965f7b74bd108e24" data-id="block-code-block_b48d31084fe6c0d9965f7b74bd108e24" class="gt-block block-code">
    <pre><code>setenforce 0</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>V prvním kroku si naistalujeme repozitáře pro PostgreSQL a&nbsp;zakážeme výchozí, systémové PostgreSQL repozitáře.</p>


<section id="block-code-block_b5158faff8d21a61a45969da89e2aaf4" data-id="block-code-block_b5158faff8d21a61a45969da89e2aaf4" class="gt-block block-code">
    <pre><code>dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně pak nainstalujeme PostgreSQL, v&nbsp;tomto případě to bude aktuálně podporovaná verze 16.</p>


<section id="block-code-block_20cf6a35cb3df0404f26940b52141b47" data-id="block-code-block_20cf6a35cb3df0404f26940b52141b47" class="gt-block block-code">
    <pre><code>dnf install -y postgresql16-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Inicializujeme databázi a&nbsp;nastavíme její automatické spouštění.</p>


<section id="block-code-block_92618bb769cbb99806ad987994c5db39" data-id="block-code-block_92618bb769cbb99806ad987994c5db39" class="gt-block block-code">
    <pre><code>/usr/pgsql-16/bin/postgresql-16-setup initdb
systemctl enable postgresql-16 --now</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databáze je nyní nainstalovaná, a&nbsp;můžeme tedy přikročit k&nbsp;instalaci Zabbix serveru a&nbsp;všech jeho součástí.</p>



<p>Nejprve si z&nbsp;repozitáře EPEL vyloučíme jakékoliv instalační balíčky týkající se Zabbixu. Za předpokladu, že je nainstalován.</p>



<p>To provedeme tak, že na&nbsp;konec souboru <code>/etc/yum.repos.d/epel.repo</code> vložíme následující řádek:</p>


<section id="block-code-block_0e06e3e70cafe1c709706270e7fe0625" data-id="block-code-block_0e06e3e70cafe1c709706270e7fe0625" class="gt-block block-code">
    <pre><code>[epel]
...
excludepkgs=zabbix*</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Přidáme si repozitáře Zabbixu a&nbsp;vyčistíme instalační cache.</p>


<section id="block-code-block_f667086c0fac5159a0ba9fa994dae363" data-id="block-code-block_f667086c0fac5159a0ba9fa994dae363" class="gt-block block-code">
    <pre><code>rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rocky/9/x86_64/zabbix-release-latest.el9.noarch.rpm
dnf clean all</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nainstalujeme všechny potřebné součásti Zabbixu.</p>



<p>V tomto případě použijeme jako primárního monitorovacího agenta Zabbix Agent 2, který vám doporučujeme používat, jelikož přináší daleko více funkcionalit.</p>


<section id="block-code-block_22540587e67f451d897b631a1da8b33e" data-id="block-code-block_22540587e67f451d897b631a1da8b33e" class="gt-block block-code">
    <pre><code>dnf install zabbix-server-pgsql zabbix-web-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 zabbix-web-service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>Nejprve vytvoříme databázového uživatele pro Zabbix, budeme vyzváni k&nbsp;zadání jeho přístupového hesla.</p>


<section id="block-code-block_0cdd2073bde77da88b05c348f0c1c532" data-id="block-code-block_0cdd2073bde77da88b05c348f0c1c532" class="gt-block block-code">
    <pre><code>cd /tmp
sudo -u postgres createuser --pwprompt zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tuto chvíli jsme schopni naimportovat výchozí schéma a&nbsp;data. Opět budeme vyzváni k&nbsp;zadání hesla. <br>Zde použijeme heslo z&nbsp;předchozího kroku.</p>


<section id="block-code-block_3f7b1eee17eee8c4be45b887f62c8436" data-id="block-code-block_3f7b1eee17eee8c4be45b887f62c8436" class="gt-block block-code">
    <pre><code>sudo -u postgres createdb -O zabbix zabbix
zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení firewallu</h2>



<p>Nazávěr na&nbsp;firewallu povolíme porty, které jsou nezbytné pro běh Zabbix serveru.</p>


<section id="block-code-block_fd0107bfa8ab812e90a197656f079999" data-id="block-code-block_fd0107bfa8ab812e90a197656f079999" class="gt-block block-code">
    <pre><code>firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-port=10051/tcp
firewall-cmd --reload</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Nyní se pustíme do&nbsp;instalace TimescaleDB a&nbsp;začneme tím, že přidáme její oficiální repozitář.</p>


<section id="block-code-block_8a3ee5a6b7ce8df9aced70b16cde2e5a" data-id="block-code-block_8a3ee5a6b7ce8df9aced70b16cde2e5a" class="gt-block block-code">
    <pre><code>tee /etc/yum.repos.d/timescale_timescaledb.repo &lt;&lt;EOL
[timescale_timescaledb]
name=timescale_timescaledb
baseurl=https://packagecloud.io/timescale/timescaledb/el/$(rpm -E %{rhel})/\$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOL</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nainstalujme TimescaleDB.</p>


<section id="block-code-block_8b991152a2c58a1baea5c830b1b32d3c" data-id="block-code-block_8b991152a2c58a1baea5c830b1b32d3c" class="gt-block block-code">
    <pre><code>dnf install timescaledb-2-postgresql-16 timescaledb-2-loader-postgresql-16</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Spustíme utilitu <code>timescaledb-tune</code> a&nbsp;jako parametr jí předáme vyšší hodnotu maximálního množství připojení (<code>--max-conns</code>), které pro tyto testovací účely nastavíme na&nbsp;<code>125</code>.</p>



<p>Tato utilita slouží k&nbsp;přizpůsobení výchozího nastavení PostgreSQL vůčihledně výkonu a&nbsp;adekvátnímu nastavení parametrů PostgreSQL pro fungování s&nbsp;TimescaleDB.</p>



<p>Zároveň nám tato utilit pomocí instalačního průvodce pomůže vybrat aktuální a&nbsp;platný konfigurační soubor PostgreSQL a&nbsp;nastaví i&nbsp;automatické načítání knihoven TimescaleDB.</p>



<p>Prosím, odpovídejte &#8222;ano&#8220; (y) na&nbsp;všechny otázky. Pozor, automatický tuner předpokládá, že PostgreSQL běží na&nbsp;samostatném serveru, a&nbsp;proto může být potřeba případně upravit parametry.</p>


<section id="block-code-block_98f4a1f8d161f787e78b8d29f3c4f22c" data-id="block-code-block_98f4a1f8d161f787e78b8d29f3c4f22c" class="gt-block block-code">
    <pre><code>timescaledb-tune --pg-config /usr/pgsql-16/bin --max-conns=125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1254" height="528" src="https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb.png" alt="" class="wp-image-13933" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb.png 1254w, https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb-300x126.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb-1024x431.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb-768x323.png 768w" sizes="auto, (max-width: 1254px) 100vw, 1254px" /></figure>



<p>Následně restartujeme systémovou službu pro PostgreSQL:</p>


<section id="block-code-block_1ff126a375a520d435fbc4119a801835" data-id="block-code-block_1ff126a375a520d435fbc4119a801835" class="gt-block block-code">
    <pre><code>systemctl restart postgresql-16.service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá již jen vytvořit a&nbsp;aktivovat samotnou TimescaleDB:</p>



<p>Pozor, během vývoje došlo ke změně cesty z&nbsp;původní /usr/share/zabbix-sql-scripts/postgresql/timescaledb.sql na&nbsp;novou /usr/share/zabbix-sql-scripts/postgresql/timescaledb/schema.sql.</p>


<section id="block-code-block_95d01a482660dc4a72a730d6d0d37395" data-id="block-code-block_95d01a482660dc4a72a730d6d0d37395" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix-sql-scripts/postgresql/timescaledb/schema.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix serveru</h2>



<p>Otevřeme konfigurační soubor Zabbix serveru v&nbsp;cestě:</p>


<section id="block-code-block_4ef78878ba2f8651c52cfb565da2019d" data-id="block-code-block_4ef78878ba2f8651c52cfb565da2019d" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tomto konfiguračním souboru upravíme následující parametry tak, jak vídíte na&nbsp;předloze níže:</p>


<section id="block-code-block_0d658c2759baee841550eb6430b8bf0e" data-id="block-code-block_0d658c2759baee841550eb6430b8bf0e" class="gt-block block-code">
    <pre><code>...
DBPassword=password
StartReportWriters=1
WebServiceURL=http://localhost:10053/report
...</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku doinstalujeme jazykové balíčky pro češtinu a&nbsp;slovenštinu:</p>


<section id="block-code-block_3d6cb2593536ee7cc55e0b5bf253c811" data-id="block-code-block_3d6cb2593536ee7cc55e0b5bf253c811" class="gt-block block-code">
    <pre><code>dnf install glibc-langpack-cs.x86_64 glibc-langpack-sk.x86_64</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nakonec restartujeme všechny související služby a&nbsp;nastavíme je tak, aby se spouštěly automaticky po&nbsp;startu:</p>


<section id="block-code-block_d932fb2f4059e22fbf072c2942ef9126" data-id="block-code-block_d932fb2f4059e22fbf072c2942ef9126" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm
systemctl enable zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Pro ověření stavu, že nám Zabbix server nastartoval v&nbsp;pořádku můžeme kromě jiného zkontrolovat i&nbsp;jeho log soubor:</p>


<section id="block-code-block_56dc293b246a994e737ecbf87281bba7" data-id="block-code-block_56dc293b246a994e737ecbf87281bba7" class="gt-block block-code">
    <pre><code>less /var/log/zabbix/zabbix_server.log</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V případě, že uvidíte v&nbsp;log souboru zprávu o&nbsp;tom, že je verze TimescaleDB příliš nová, pak to není žádný velký problém. Zabbix nedokáže dostatečně rychle reagovat na&nbsp;nejnovější verze TimescaleDB tak, aby ji ve svém kódu nastavil jako podporovanou, ovšem kompatibilita je Zabbixem zaručena a&nbsp;námi ověřena.</p>



<p>V případě této chyby stačí otevřít konfigurační soubor Zabbix serveru v&nbsp;cestě <code>/etc/zabbix/zabbix_server.conf</code> a&nbsp;zde upravte následující konfigurační parametr:</p>


<section id="block-code-block_793c00b2a19eb5deadeee07bab7302a7" data-id="block-code-block_793c00b2a19eb5deadeee07bab7302a7" class="gt-block block-code">
    <pre><code>AllowUnsupportedDBVersions=1</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Soubor s&nbsp;tímto nastavením uložte a&nbsp;zrestartujte systémovou službu Zabbix serveru.</p>


<section id="block-code-block_5af40f9573f04eed49fa5cde90488e5c" data-id="block-code-block_5af40f9573f04eed49fa5cde90488e5c" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení Zabbix frontendu</h2>



<p>V prohlížeči si otevřeme cílové URL, na&nbsp;kterém Zabbix běží. Například tedy <code>http://192.168.0.50/zabbix</code>, kde nás uvítá průvodce prvotní instalací.</p>



<p>Po zvolení implicitního jazyka se tlačítkem <code>Next step</code> posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1798" height="1126" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-1.png" alt="" class="wp-image-16595" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-1.png 1798w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-1-300x188.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-1-1024x641.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-1-768x481.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-1-1536x962.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-1-608x381.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-1-1216x762.png 1216w" sizes="auto, (max-width: 1798px) 100vw, 1798px" /></figure>



<p>Pokud je kontrola v&nbsp;pořádku, pak se tedy můžeme kliknutím na&nbsp;<code>Next step</code> posunout na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png" alt="" class="wp-image-16593" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-2-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Zde vyplňujeme pouze políčko <strong>Password</strong> pro přístup do&nbsp;databáze, nic dalšího není třeba měnit.</p>



<p>Po vyplnění opět klikneme na&nbsp;<code>Next step</code>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1134" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png" alt="" class="wp-image-16591" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3.png 1794w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1024x647.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-768x485.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1536x971.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-608x384.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-3-1216x769.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Na následující stránce se základním nastavením vyplníme název serveru, časové pásmo, a&nbsp;kliknutím na&nbsp;<code>Next step</code> pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1124" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png" alt="" class="wp-image-16589" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-300x188.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1024x641.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-768x481.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1536x961.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-608x381.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-4-1216x761.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>V tomto souhrnu zkontrolumeme všechny zadané hodnoty a&nbsp;kliknutím na&nbsp;<code>Next step</code> dokončíme instalaci.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1792" height="1136" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png" alt="" class="wp-image-16587" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5.png 1792w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1024x649.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-768x487.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1536x974.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-608x385.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-5-1216x771.png 1216w" sizes="auto, (max-width: 1792px) 100vw, 1792px" /></figure>



<p>Nyní již kliknutím na&nbsp;tlačítko <code>Finish</code> přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1796" height="1130" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png" alt="" class="wp-image-16585" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6.png 1796w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-300x189.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1024x644.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-768x483.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1536x966.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-608x383.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-6-1216x765.png 1216w" sizes="auto, (max-width: 1796px) 100vw, 1796px" /></figure>



<p>Po úspěšném přihlášení pomocí dříve zadaných údajů můžeme začít používat nejnovější Zabbix verze 7.0 (<code>Admin/zabbix</code>).</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2440" height="1116" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7.png" alt="" class="wp-image-16583" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7.png 2440w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-300x137.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-1024x468.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-768x351.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-1536x703.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-2048x937.png 2048w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-608x278.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-7-1216x556.png 1216w" sizes="auto, (max-width: 2440px) 100vw, 2440px" /></figure>



<p>A takto vypada úvodní dashboard nového Zabbixu 7.0:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="4094" height="1720" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-8.png" alt="" class="wp-image-16581" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-8.png 4094w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-8-300x126.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-8-1024x430.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-8-768x323.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-8-1536x645.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-8-2048x860.png 2048w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-8-608x255.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-8-1216x511.png 1216w" sizes="auto, (max-width: 4094px) 100vw, 4094px" /></figure>



<h2 class="wp-block-heading">Nastavení Zabbix reportingu</h2>



<p>Proto, aby byl plně funkční reporting se všemi jeho vylepšeními si nejprve musíme nainstalovat Google Chrome.</p>



<p>Následujícím příkazem stáhneme instalační balíček, a&nbsp;ten také nainstalujeme:</p>


<section id="block-code-block_64be025ff063912eafe97a0a4c8b66f3" data-id="block-code-block_64be025ff063912eafe97a0a4c8b66f3" class="gt-block block-code">
    <pre><code>wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf localinstall google-chrome-stable_current_x86_64.rpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V dalším kroku upravíme v&nbsp;Zabbix frontendu parametr &#8222;Frontend URL&#8220; na&nbsp;aktuálně platnou hodnotu, toto nastavení se nachází zde:</p>


<section id="block-code-block_a83189b3e1999fda911b340917a18e30" data-id="block-code-block_a83189b3e1999fda911b340917a18e30" class="gt-block block-code">
    <pre><code>Administration -&gt; General -&gt; Other</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Příklad této konfigurace pak můžete vidět na&nbsp;obrázku níže.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2798" height="1364" src="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9.png" alt="" class="wp-image-16598" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9.png 2798w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-300x146.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-1024x499.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-768x374.png 768w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-1536x749.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-2048x998.png 2048w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-608x296.png 608w, https://www.initmax.cz/wp-content/uploads/2023/10/zabbix70-9-1216x593.png 1216w" sizes="auto, (max-width: 2798px) 100vw, 2798px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Dokončovací práce</h2>



<ul class="wp-block-list">
<li>Zkontrolujte, že správně běží Zabbix server, databázový server a&nbsp;mají správnou verzi</li>



<li>Zkontrolujte také, zda při&nbsp;startu serveru nebo proxy v&nbsp;systému neuvidíte následující chybu: ‚…the user limit of 1024 file descriptors is insufficient. The maximum number of concurrent checks per worker has been reduced…‘ <a href="https://www.initmax.cz/wiki/zabbix-7-0-a-navyseni-systemovych-limitu/">Návod na&nbsp;odstranění naleznete na&nbsp;naší wiki</a>.</li>
</ul>



<h2 class="wp-block-heading">Podpora pro nový Item Browser</h2>



<p>Veškeré potřebné kroky naleznete v&nbsp;<a href="https://www.initmax.cz/wiki/instalace-a-zakladni-pouziti-pro-item-browser/">samostatném návodu na&nbsp;naší wiki<strong>.</strong></a></p>


<section id="block-webinar-block_639b258fc0bfd30882f4f8d79065a41b" data-id="block-webinar-block_639b258fc0bfd30882f4f8d79065a41b" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/7-0-workshop-zabbix-7-0-monitorovani-pomoci-browser-item-pomoci-aplikace-selenium/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2024/05/ilustrace_webinare_zabbix_7.0_13_thumbnail_web-copy-2.png"
				 width="400"
		 height="250"
		 class=""
		 alt="7.0 Workshop: Zabbix 7.0 &#8211; Monitorování pomocí Browser Item pomocí aplikace Selenium"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#4caf50;">Nový</span><span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2024-06-21">21.&nbsp;6.&nbsp;2024</time>
							</div>
			<h3 class="webinar-promotion__title">7.0 Workshop: Zabbix 7.0 &#8211; Monitorování pomocí Browser Item pomocí aplikace Selenium</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>



<h2 class="wp-block-heading">Vlastní rebranding</h2>



<p>Veškeré potřebné kroky naleznete v&nbsp;<a href="https://www.initmax.cz/wiki/rebranding-zabbixu/">samostatném návodu na&nbsp;naší wiki<strong>.</strong></a></p>


<section id="block-newsletter-block_ac303ed0256b5fe769296e5c3dbedded" data-id="block-newsletter-block_ac303ed0256b5fe769296e5c3dbedded" class="gt-block block-newsletter">
    <section id="newsletter" class="newsletter">
	<div class="gradient basic">
		<div class="newsletter__inner width width--general">
			<div class="col left">
									<h2 class="newsletter__title">Buďte v&nbsp;obraze s&nbsp;naším newsletterem</h2>
													<div class="newsletter__content"><p>Díky initMAX newsletteru Vám neunikne žádná z&nbsp;pozvánek na&nbsp;akce a&nbsp;webináře, žádný z&nbsp;tipů, jak dostat ze svého IT MAXimum, ani ověřené informace o&nbsp;novinkách ze světa Zabbix a&nbsp;dalších technologií.</p>
</div>
							</div>
			<div class="col right form-wrapper">
				<div class="newsletter-form">
	<form method="post" action="/wiki/kapitola/zabbix/zabbix-instalace/feed/" enctype="multipart/form-data">
		<input type="hidden" name="url" value="https://www.initmax.cz/wiki/kapitola/zabbix/zabbix-instalace/feed/">

		<div class="inputs">

			<label for="newsletter-form_contact_email" class="top">Vaše e-mailová adresa:</label>
			<div class="df">

				<div class="input">
					<input type="text" id="newsletter-form_contact_email" name="newsletter_email" placeholder="@" data-format="email" data-required="1">
									</div><!-- /.input -->

				<a href="#" class="btn btn--white sendBtn">Odeslat</a>

			</div>

			<div class="bottom nm">
				<label for="newsletter-form_gdpr" class="checkbox gdpr">
					<input type="checkbox" id="newsletter-form_gdpr" name="newsletter_gdpr">
					<span>Souhlasím se&nbsp;<a href="https://www.initmax.cz/ochrana-osobnich-udaju/" target="_blank">zpracováním osobních údajů</a>.</span>
				</label>
			</div>

		</div><!-- /.inputs -->
		<div class="sent hidden">
			<div class="iconOk"><h3>Děkujeme, že jste se přihlásili k&nbsp;odběru našeho newsletteru.</h3>
</div>
			<button class="sent__close" title="Zavřít" onclick="closeFormMessage(this,event)"><svg data-name="Group 3602" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 3272" d="M0,0H24V24H0Z" fill="none"/><line data-name="Line 98" y2="14" transform="translate(7.05 7.05) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 99" x2="14" transform="translate(7.05 16.95) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</button>
		</div><!-- /.sent -->
	</form>
</div>			</div>
		</div>
	</div>
</section></section>



<section id="social-links-block_17d9a75d671bb48941f30db03cf32387" data-id="social-links-block_17d9a75d671bb48941f30db03cf32387" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>

<p>The post <a href="https://www.initmax.cz/wiki/zabbix-7-0-instalace-v-5-minutach/">Zabbix 7.0 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Zabbix 6.4 &#8211; návod na&#160;instalaci v&#160;5 minutách</title>
		<link>https://www.initmax.cz/wiki/zabbix-6-4-navod-na-instalaci-v-5-minutach/</link>
		
		<dc:creator><![CDATA[Karolína Vrtalová]]></dc:creator>
		<pubDate>Fri, 21 Jul 2023 11:53:08 +0000</pubDate>
				<guid isPermaLink="false">https://www.initmax.cz/?post_type=wiki&#038;p=12465</guid>

					<description><![CDATA[<p>Tentokrát si ukážeme, jak nainstalovat a nakonfigurovat Zabbix 6.4 s databází PostgreSQL 15 a jejím doplňkem TimescaleDB v linux distribuci Debian 11. Front-end nám ...</p>
<p>The post <a href="https://www.initmax.cz/wiki/zabbix-6-4-navod-na-instalaci-v-5-minutach/">Zabbix 6.4 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Tentokrát si ukážeme, jak nainstalovat a&nbsp;nakonfigurovat Zabbix 6.4 s&nbsp;databází PostgreSQL 15 a&nbsp;jejím doplňkem TimescaleDB v&nbsp;linux distribuci Debian 11. </p>



<p>Front-end nám poběží na&nbsp;nginx za pomocí php-fpm verze 7.4, a&nbsp;to vše během pěti minut!</p>


<section id="block-webinar-block_4a63ddb12045cc5faba189d2fcc6294a" data-id="block-webinar-block_4a63ddb12045cc5faba189d2fcc6294a" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/instalace-zabbixu-v-5-minutach-6-4/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2022/12/ilustrace_webinare_6.4_01_thumbnail_web.png"
				 width="400"
		 height="250"
		 class=""
		 alt="Instalace Zabbixu 6.4 v&nbsp;5 minutách"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2023-02-02">2.&nbsp;2.&nbsp;2023</time>
							</div>
			<h3 class="webinar-promotion__title">Instalace Zabbixu 6.4 v&nbsp;5 minutách</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>


<section id="social-links-block_329521a8c3a47a60d8a6a9d9619efa7b" data-id="social-links-block_329521a8c3a47a60d8a6a9d9619efa7b" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>




<h2 class="wp-block-heading">Než začneme</h2>



<p>Nejprve nainstalujeme GNU PG, to provedeme následujícím příkazem.</p>


<section id="block-code-block_8253339f093b83ba4177a3eb4f7a0ab2" data-id="block-code-block_8253339f093b83ba4177a3eb4f7a0ab2" class="gt-block block-code">
    <pre><code>apt install gnupg2</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>Pro instalaci databázového serveru si nejprve vytvoříme konfigurační soubor oficiálních repozitářů PostgreSQL:</p>


<section id="block-code-block_c3da2da3599732f9393b5e6b11979fc9" data-id="block-code-block_c3da2da3599732f9393b5e6b11979fc9" class="gt-block block-code">
    <pre><code>sh -c &#039;echo &quot;deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main&quot; &gt; /etc/apt/sources.list.d/pgdg.list&#039;</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Pak stáhneme ověřovací klíč a&nbsp;zaktualizujeme cache všech existujících repozitářů:</p>


<section id="block-code-block_070e013824d573e6bdf4dff365f92426" data-id="block-code-block_070e013824d573e6bdf4dff365f92426" class="gt-block block-code">
    <pre><code>wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
apt update</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně nainstalujeme balíčky databázového serveru PostgreSQL, v&nbsp;tomto případě ve verzi 15:</p>


<section id="block-code-block_cc55aa37eaa6988daf4573264eb84c24" data-id="block-code-block_cc55aa37eaa6988daf4573264eb84c24" class="gt-block block-code">
    <pre><code>apt-get -y install postgresql-15</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Začneme tím, že nainstalujeme veškeré balíčky potřebné pro následnou instalaci:</p>


<section id="block-code-block_8df591298bfffb42dc0d3582750fd2b3" data-id="block-code-block_8df591298bfffb42dc0d3582750fd2b3" class="gt-block block-code">
    <pre><code>apt install gnupg postgresql-common apt-transport-https lsb-release wget</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A následujícím příkazem vytvoříme konfigurační soubor oficiálních repozitářů TimescaleDB.</p>


<section id="block-code-block_93fdd1f6a97b581f08e981ec8b738fd9" data-id="block-code-block_93fdd1f6a97b581f08e981ec8b738fd9" class="gt-block block-code">
    <pre><code>echo &quot;deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main&quot; | sudo tee /etc/apt/sources.list.d/timescaledb.list</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>I pro tento repozitář stáhneme platný ověřovací klíč a&nbsp;zaktualizujeme APT cache:</p>


<section id="block-code-block_36f1f4f6bbcdd06df074a8d801819790" data-id="block-code-block_36f1f4f6bbcdd06df074a8d801819790" class="gt-block block-code">
    <pre><code>wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo apt-key add -
apt update</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Po těchto úkonech už můžeme přistoupit k&nbsp;samotné instalaci TimescaleDB pro naši konkrétní verzi PostgreSQL.</p>


<section id="block-code-block_6548738f86a0f23213b87a1fe362bfe1" data-id="block-code-block_6548738f86a0f23213b87a1fe362bfe1" class="gt-block block-code">
    <pre><code>apt install timescaledb-2-postgresql-15</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Po úspěšné instalaci všech závislých balíčků spustíme optimalizační program <code>timescaledb-tune</code>, který nám pomůže nastavit parametry PostgreSQL pro TimescaleDB vůčihledně aktuálně používanému hardware.</p>


<section id="block-code-block_8c7e5dd18c108119fa9f93199fee252a" data-id="block-code-block_8c7e5dd18c108119fa9f93199fee252a" class="gt-block block-code">
    <pre><code>timescaledb-tune --quiet --yes</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Výše zmíněný příkaz na&nbsp;optimalizaci PostgreSQL pro TimescaleDB bohužel implicitně omezuje počet příchozích spojení do&nbsp;databáze na&nbsp;25. </p>



<p>Toto je ovšem pro potřeby Zabbixu zcela nevhodné a&nbsp;tak tuto hodnotu pro účely této ukázky upravíme na&nbsp;125. </p>



<p>Toto je možné upravit i&nbsp;pomocí zadání parametru <code>--max-conns</code> s&nbsp;výslednou hodnotou, tedy například <code>--max-conns=125</code>. </p>



<p><strong>Omezení na&nbsp;počet databázových spojení je však nutné nastavit vždy tak, aby odpovídalo vaší konkrétní infrastruktuře, i&nbsp;vašim požadavkům na&nbsp;monitoring, který bude Zabbix zprostředkovávat.</strong></p>


<section id="block-code-block_49902af93d1a51fb01f0f46bf9741348" data-id="block-code-block_49902af93d1a51fb01f0f46bf9741348" class="gt-block block-code">
    <pre><code>nano /etc/postgresql/15/main/postgresql.conf

max_connections = 125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Po těchto krocích zrestartujeme službu databázového serveru PostgreSQL:</p>


<section id="block-code-block_4bbfb11b02bff66498a8a14270913844" data-id="block-code-block_4bbfb11b02bff66498a8a14270913844" class="gt-block block-code">
    <pre><code>systemctl restart postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databázi máme nainstalovanou, pojďme tedy na&nbsp;instalaci Zabbix serveru a&nbsp;jeho součástí.<br>Stáhneme si instalační balíček s&nbsp;repozitáři Zabbixu, ručně ho nainstalujeme a&nbsp;zaktualizujeme APT cache:</p>


<section id="block-code-block_40a7f86f5a7c9ddab91b9252fd7b0153" data-id="block-code-block_40a7f86f5a7c9ddab91b9252fd7b0153" class="gt-block block-code">
    <pre><code>wget https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian11_all.deb
dpkg -i zabbix-release_6.4-1+debian11_all.deb
apt update</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nyní můžeme přistoupit k&nbsp;instalaci samotného Zabbix serveru a&nbsp;všech závislých komponent:</p>


<section id="block-code-block_41afec51e4854cb22299e469bc3d83b1" data-id="block-code-block_41afec51e4854cb22299e469bc3d83b1" class="gt-block block-code">
    <pre><code>apt install zabbix-server-pgsql zabbix-frontend-php php7.4-pgsql zabbix-nginx-conf zabbix-sql-scripts zabbix-agent2</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>V tomto kroku vytvoříme na&nbsp;úrovni databázového serveru uživatele pro Zabbix. </p>



<p>Budeme vyzváni k&nbsp;zadání hesla.</p>


<section id="block-code-block_c763328c42014f28a12986c2e8129247" data-id="block-code-block_c763328c42014f28a12986c2e8129247" class="gt-block block-code">
    <pre><code>cd /tmp
sudo -u postgres createuser --pwprompt zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Potom vytvoříme samotnou databázi pro Zabbix. Budeme vyzváni k&nbsp;zadání hesla, které jsme vytvořili v&nbsp;předchozím kroku.</p>


<section id="block-code-block_6e2920abc80d4353f365d20d77488ca1" data-id="block-code-block_6e2920abc80d4353f365d20d77488ca1" class="gt-block block-code">
    <pre><code>sudo -u postgres createdb -O zabbix zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Do této nově vytvořené databáze následně naimportujeme schéma a&nbsp;výchozí data. Tento SQL skript je pro každou konkrétní databází dodaný samotným Zabbixem v&nbsp;balíčku <code>zabbix-sql-scripts</code>.</p>



<p><strong>Pozor!</strong> Ve starších verzích Zabbix je tato cesta jiná, a&nbsp;to <code>/usr/share/doc/zabbix-sql-scripts/</code> !</p>


<section id="block-code-block_7a2ecd7d9229c23d1c305ebc758a83ae" data-id="block-code-block_7a2ecd7d9229c23d1c305ebc758a83ae" class="gt-block block-code">
    <pre><code>zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá již jen aktivovat TimescaleDB a&nbsp;nahrát dodaný skript, který nám vytvoří databázové schéma.</p>



<p><strong>Pozor!</strong> Ve starších verzích Zabbix je tato cesta jiná, a&nbsp;to <code>/usr/share/doc/zabbix-sql-scripts/</code> !</p>


<section id="block-code-block_42ecd8c0a102df9f34db8c588b00636b" data-id="block-code-block_42ecd8c0a102df9f34db8c588b00636b" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix-sql-scripts/postgresql/timescaledb.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Konfigurace Zabbix serveru</h2>



<p>Pro potřeby funkčnosti front-endu Zabbix v&nbsp;konfiguračním souboru Zabbix serveru nastavíme heslo do&nbsp;databáze, které jsme vytvořili v&nbsp;předcházejích krocích.</p>



<p>Otevřeme tedy konfigurační soubor Zabbix serveru v&nbsp;cestě:</p>


<section id="block-code-block_081f3bd4111c13b944da2a08e5de06e1" data-id="block-code-block_081f3bd4111c13b944da2a08e5de06e1" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A zde upravíme následující direktivu.</p>


<section id="block-code-block_2c3926f898f707285e5f360cd6c60d9e" data-id="block-code-block_2c3926f898f707285e5f360cd6c60d9e" class="gt-block block-code">
    <pre><code>DBPassword=&lt;heslo_do_databáze&gt;</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Konfigurace nginx</h2>



<p>Proxy server nginx spolu s&nbsp;php-fpm budeme pro potřeby této ukázky využívat jako aplikační server pro chod samotného Zabbix front-endu.</p>



<p>Pro tyto potřeby je součástí Zabbix instalace i&nbsp;dodaný přednastavený konfigurační soubor pro <code>nginx</code> na&nbsp;následující cestě:</p>


<section id="block-code-block_d478d0c9ba15f2e2bf62925bc2ca3d64" data-id="block-code-block_d478d0c9ba15f2e2bf62925bc2ca3d64" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/nginx.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>V tomto souboru nastavíme hostname serveru, a&nbsp;také TCP port, na&nbsp;kterém bude nginx naslouchat pro příchozí spojení.</p>



<p>Toto nastavíme <strong>kupříkladu </strong>následovně:</p>


<section id="block-code-block_bffaf165d54484cbd29ed0236eaf33b2" data-id="block-code-block_bffaf165d54484cbd29ed0236eaf33b2" class="gt-block block-code">
    <pre><code>listen 80;
server_name initmax.cz;</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Soubor uložíme, zavřeme a&nbsp;následně smažeme implicitní konfigurační soubor <code>nginx </code>tak, aby nám nastavení nekolidovala.</p>


<section id="block-code-block_34f836def3686f4f84db82f51019fb20" data-id="block-code-block_34f836def3686f4f84db82f51019fb20" class="gt-block block-code">
    <pre><code>rm /etc/nginx/sites-enabled/default</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nyní stačí pouze zrestartovat jak samotný Zabbix server a&nbsp;Zabbix agent, tak i&nbsp;nginx a&nbsp;php-fpm, které využíváme pro chod Zabbix front-endu.</p>


<section id="block-code-block_00b75685fd902de297c5edce79b43a19" data-id="block-code-block_00b75685fd902de297c5edce79b43a19" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server zabbix-agent2 nginx php7.4-fpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nesmíme také zapomenout na&nbsp;automatické spouštění těchto služeb po&nbsp;startu:</p>


<section id="block-code-block_0bf8b1c5c6f2c8283d6b9ba391d472b7" data-id="block-code-block_0bf8b1c5c6f2c8283d6b9ba391d472b7" class="gt-block block-code">
    <pre><code>systemctl enable zabbix-server zabbix-agent2 nginx php7.4-fpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Konfigurace Zabbix front-endu</h2>



<p>V okně prohlížeče si otevřeme url na&nbsp;které nám Zabbix běží. <strong>Například</strong> <code>http://172.23.0.175</code> a&nbsp;přivítá nás instalační průvodce.</p>



<p>Kliknutím na&nbsp;tlačítko <code>Next step</code> se posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full is-style-default"><img loading="lazy" decoding="async" width="873" height="544" src="https://www.initmax.cz/wp-content/uploads/2023/07/zabbix_6.4_intro.png" alt="První krok instalace Zabbix 6.4 a nastavení jazyka" class="wp-image-12466" srcset="https://www.initmax.cz/wp-content/uploads/2023/07/zabbix_6.4_intro.png 873w, https://www.initmax.cz/wp-content/uploads/2023/07/zabbix_6.4_intro-300x187.png 300w, https://www.initmax.cz/wp-content/uploads/2023/07/zabbix_6.4_intro-768x479.png 768w" sizes="auto, (max-width: 873px) 100vw, 873px" /></figure>



<p>Vše je v&nbsp;pořádku, můžeme tedy kliknout na&nbsp;<code>Next step</code> a&nbsp;posunout se na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="868" height="547" src="https://www.initmax.cz/wp-content/uploads/2023/07/zabbix_6.4_prereq.png" alt="Druhý krok instalace Zabbix 6.4 a kontrola minimálních požadavků" class="wp-image-12468" srcset="https://www.initmax.cz/wp-content/uploads/2023/07/zabbix_6.4_prereq.png 868w, https://www.initmax.cz/wp-content/uploads/2023/07/zabbix_6.4_prereq-300x189.png 300w, https://www.initmax.cz/wp-content/uploads/2023/07/zabbix_6.4_prereq-768x484.png 768w" sizes="auto, (max-width: 868px) 100vw, 868px" /></figure>



<p>Na této stránce vyplníme pouze políčko <strong>Password</strong>, nic dalšího není třeba měnit, a&nbsp;klikneme na&nbsp;<code>Next step</code>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="568" src="https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection-1024x568.png" alt="Třetím krokem průvodce instalace Zabbix 6.4 je nastavení připojení do databáze." class="wp-image-11815" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection-1024x568.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection-300x166.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection-768x426.png 768w, https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection.png 1198w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Zde vyplníme základní nastavení, tedy název serveru a&nbsp;časové pásmo, a&nbsp;kliknutím na&nbsp;<code>Next step</code> pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="569" src="https://www.initmax.cz/wp-content/uploads/2023/03/settings-1024x569.png" alt="Čtvrtým krokem průvodce instalace je nastavení serveru a výběr časové zóny." class="wp-image-11817" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/settings-1024x569.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/settings-300x167.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/settings-768x427.png 768w, https://www.initmax.cz/wp-content/uploads/2023/03/settings.png 1198w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Zkontrolujeme zadané hodnoty a&nbsp;kliknutím na&nbsp;<code>Next step</code> dokončíme instalaci.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="565" src="https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary-1024x565.png" alt="Pátý krok instalace Zabbix 6.4 a kontrola hodnot před instalací" class="wp-image-11819" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary-1024x565.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary-300x166.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary-768x424.png 768w, https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary.png 1199w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Kliknutím na&nbsp;<code>Finish</code> již přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="566" src="https://www.initmax.cz/wp-content/uploads/2023/03/install-1024x566.png" alt="Po úspěšné instalaci můžeme přejít k přihlášení kliknutím na tlačítko &quot;Finish&quot;." class="wp-image-11821" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/install-1024x566.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/install-300x166.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/install-768x425.png 768w, https://www.initmax.cz/wp-content/uploads/2023/03/install.png 1199w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Přihlásíme se a&nbsp;můžeme Zabbix 6.4 začít používat. </p>



<p>Výchozí údaje pro přihlášení jsou: <code>Admin/zabbix</code></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="554" src="https://www.initmax.cz/wp-content/uploads/2023/03/login-1024x554.png" alt="Pro přihlášení v dialogovém okně uvedeme přihlašovací jméno a heslo." class="wp-image-11823" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/login-1024x554.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/login-300x162.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/login-768x415.png 768w, https://www.initmax.cz/wp-content/uploads/2023/03/login.png 1215w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Po přihlášení na&nbsp;Vás čeká nový Zabbix 6.4. </p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="460" src="https://www.initmax.cz/wp-content/uploads/2023/07/install-in-5-min-6-4-1-1024x460.png" alt="Po přihlášení se zobrazí nová verze Zabbix 6.4" class="wp-image-12483" srcset="https://www.initmax.cz/wp-content/uploads/2023/07/install-in-5-min-6-4-1-1024x460.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/07/install-in-5-min-6-4-1-300x135.png 300w, https://www.initmax.cz/wp-content/uploads/2023/07/install-in-5-min-6-4-1-768x345.png 768w, https://www.initmax.cz/wp-content/uploads/2023/07/install-in-5-min-6-4-1-1536x691.png 1536w, https://www.initmax.cz/wp-content/uploads/2023/07/install-in-5-min-6-4-1-2048x921.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>


<section id="block-newsletter-block_b06322fde2053a3749ed5d0a1981158a" data-id="block-newsletter-block_b06322fde2053a3749ed5d0a1981158a" class="gt-block block-newsletter">
    <section id="newsletter" class="newsletter">
	<div class="gradient basic">
		<div class="newsletter__inner width width--general">
			<div class="col left">
									<h2 class="newsletter__title">Buďte v&nbsp;obraze s&nbsp;naším newsletterem</h2>
													<div class="newsletter__content"><p>Díky initMAX newsletteru Vám neunikne žádná z&nbsp;pozvánek na&nbsp;akce a&nbsp;webináře, žádný z&nbsp;tipů, jak dostat ze svého IT MAXimum, ani ověřené informace o&nbsp;novinkách ze světa Zabbix a&nbsp;dalších technologií.</p>
</div>
							</div>
			<div class="col right form-wrapper">
				<div class="newsletter-form">
	<form method="post" action="/wiki/kapitola/zabbix/zabbix-instalace/feed/" enctype="multipart/form-data">
		<input type="hidden" name="url" value="https://www.initmax.cz/wiki/kapitola/zabbix/zabbix-instalace/feed/">

		<div class="inputs">

			<label for="newsletter-form_contact_email" class="top">Vaše e-mailová adresa:</label>
			<div class="df">

				<div class="input">
					<input type="text" id="newsletter-form_contact_email" name="newsletter_email" placeholder="@" data-format="email" data-required="1">
									</div><!-- /.input -->

				<a href="#" class="btn btn--white sendBtn">Odeslat</a>

			</div>

			<div class="bottom nm">
				<label for="newsletter-form_gdpr" class="checkbox gdpr">
					<input type="checkbox" id="newsletter-form_gdpr" name="newsletter_gdpr">
					<span>Souhlasím se&nbsp;<a href="https://www.initmax.cz/ochrana-osobnich-udaju/" target="_blank">zpracováním osobních údajů</a>.</span>
				</label>
			</div>

		</div><!-- /.inputs -->
		<div class="sent hidden">
			<div class="iconOk"><h3>Děkujeme, že jste se přihlásili k&nbsp;odběru našeho newsletteru.</h3>
</div>
			<button class="sent__close" title="Zavřít" onclick="closeFormMessage(this,event)"><svg data-name="Group 3602" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 3272" d="M0,0H24V24H0Z" fill="none"/><line data-name="Line 98" y2="14" transform="translate(7.05 7.05) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 99" x2="14" transform="translate(7.05 16.95) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</button>
		</div><!-- /.sent -->
	</form>
</div>			</div>
		</div>
	</div>
</section></section>



<section id="social-links-block_329521a8c3a47a60d8a6a9d9619efa7b" data-id="social-links-block_329521a8c3a47a60d8a6a9d9619efa7b" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>

<p>The post <a href="https://www.initmax.cz/wiki/zabbix-6-4-navod-na-instalaci-v-5-minutach/">Zabbix 6.4 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Zabbix 6.2 &#8211; návod na&#160;instalaci v&#160;5 minutách (nepodporováno)</title>
		<link>https://www.initmax.cz/wiki/zabbix-6-2-navod-na-instalaci-v-5-minutach/</link>
		
		<dc:creator><![CDATA[Tomáš Heřmánek]]></dc:creator>
		<pubDate>Fri, 07 Jul 2023 06:43:00 +0000</pubDate>
				<guid isPermaLink="false">https://www.initmax.cz/?post_type=wiki&#038;p=11110</guid>

					<description><![CDATA[<p>V tomto článku si ukážeme, jak nainstalovat a nakonfigurovat Zabbix 6.2 s databází PostgreSQL 15 na Rocky Linux 9 během pěti minut. Než ...</p>
<p>The post <a href="https://www.initmax.cz/wiki/zabbix-6-2-navod-na-instalaci-v-5-minutach/">Zabbix 6.2 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách (nepodporováno)</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>V tomto článku si ukážeme, jak nainstalovat a&nbsp;nakonfigurovat Zabbix 6.2 s&nbsp;databází PostgreSQL 15 na&nbsp;Rocky Linux 9 během pěti minut.</p>


<section id="block-webinar-block_bc77ec0a01b00d353640841ba063dbaf" data-id="block-webinar-block_bc77ec0a01b00d353640841ba063dbaf" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/instalace-zabbixu-v-5-minutach/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2022/06/ilustrace_webinare_6.2_01_thumbnail_web-1.png"
				 width="400"
		 height="250"
		 class=""
		 alt="Instalace Zabbixu v&nbsp;5 minutách"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2022-06-17">17.&nbsp;6.&nbsp;2022</time>
							</div>
			<h3 class="webinar-promotion__title">Instalace Zabbixu v&nbsp;5 minutách</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>


<section id="social-links-block_9f16e9ed2227945db22b7252bf0a4464" data-id="social-links-block_9f16e9ed2227945db22b7252bf0a4464" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>




<h2 class="wp-block-heading">Než začneme</h2>



<p>Pro účely této <strong>ukázky</strong> si nejdříve přepneme SELinux do&nbsp;Permissive módu.</p>



<p>Pokud plánujete SELinux trvale deaktivovat, můžete tak učinit úpravou konfiguračního souboru. Nicméně, doporučujeme zvážit možnost naučit se s&nbsp;SELinuxem pracovat a&nbsp;využít jeho bezpečnostní výhody. Podrobné informace o&nbsp;správném nastavení a&nbsp;monitorování SELinuxu naleznete <a href="https://www.initmax.cz/wiki/selinux-integrace-se-zabbixem-a-dalsimi-nastroji/">v našem samostatném článku.​</a></p>


<section id="block-code-block_a3469dc60fa3db02dca4f5517d462558" data-id="block-code-block_a3469dc60fa3db02dca4f5517d462558" class="gt-block block-code">
    <pre><code>setenforce 0</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>Nejprve si naistalujeme repozitáře pro PostgreSQL a&nbsp;disablujeme výchozí systémové PostgeSQL repozitáře.</p>


<section id="block-code-block_3043500f3c3f392f65d69ea94e4f2b09" data-id="block-code-block_3043500f3c3f392f65d69ea94e4f2b09" class="gt-block block-code">
    <pre><code>dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nyní se můžeme pustit do&nbsp;instalace PostgreSQL, v&nbsp;tomto případě to bude PostgreSQL 15</p>


<section id="block-code-block_52fae9f4dc3b20353c96a8031a9a904a" data-id="block-code-block_52fae9f4dc3b20353c96a8031a9a904a" class="gt-block block-code">
    <pre><code>dnf install -y postgresql15-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Teď už zbývá jen iniciovat databázi a&nbsp;nastavit automatické spouštění.</p>


<section id="block-code-block_60102f00ed2a86209effb77e9d4a06c4" data-id="block-code-block_60102f00ed2a86209effb77e9d4a06c4" class="gt-block block-code">
    <pre><code>/usr/pgsql-15/bin/postgresql-15-setup initdb
systemctl enable postgresql-15 --now</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databázi máme nainstalovanou, pojďme tedy na&nbsp;instalaci Zabbix serveru a&nbsp;jeho součástí.<br>Nejprve si z&nbsp;repozitáře EPEL vyloučíme jakékoliv instalační balíčky týkající se Zabbixu. Za předpokladu, že je nainstalován.</p>



<p>To provedeme tak, že na&nbsp;konec souboru <code>/etc/yum.repos.d/epel.repo</code> vložíme následující řádek:</p>


<section id="block-code-block_349fdf85392a677ec8d3535ea72949ac" data-id="block-code-block_349fdf85392a677ec8d3535ea72949ac" class="gt-block block-code">
    <pre><code>[epel]
...
excludepkgs=zabbix*</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Přidáme si repozitáře Zabbixu a&nbsp;vyčistíme instalační cache.</p>


<section id="block-code-block_1db2fdc23953b435b639a741346b05e5" data-id="block-code-block_1db2fdc23953b435b639a741346b05e5" class="gt-block block-code">
    <pre><code>rpm -Uvh https://repo.zabbix.com/zabbix/6.2/rhel/9/x86_64/zabbix-release-6.2-3.el9.noarch.rpm
dnf clean all</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A naistalujeme všechny potřebné součásti Zabbixu.</p>


<section id="block-code-block_91844a28132685cad7ef320e82cd73e4" data-id="block-code-block_91844a28132685cad7ef320e82cd73e4" class="gt-block block-code">
    <pre><code>dnf install zabbix-server-pgsql zabbix-web-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent2 zabbix-web-service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nakonec ještě povolíme potřebné porty na&nbsp;firewallu.</p>


<section id="block-code-block_5a7ed345a5718c7abc5d27abc1ef1c2e" data-id="block-code-block_5a7ed345a5718c7abc5d27abc1ef1c2e" class="gt-block block-code">
    <pre><code>firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-port=10051/tcp
firewall-cmd --reload</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>V dalším kroku vytvoříme pro Zabbix uživatele v&nbsp;databázi a&nbsp;budeme vyzváni k&nbsp;zadání hesla.</p>


<section id="block-code-block_546f779fb18abe5b818ee4f49bc3ff3f" data-id="block-code-block_546f779fb18abe5b818ee4f49bc3ff3f" class="gt-block block-code">
    <pre><code>cd /tmp
sudo -u postgres createuser --pwprompt zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Založíme databázi a&nbsp;importujeme výchozí schéma a&nbsp;data. Opět budeme vyzváni k&nbsp;zadání hesla. <br>Zde použijeme heslo z&nbsp;předchozího kroku.</p>



<p><strong>Pozor!</strong> Ve starších verzích Zabbix je tato cesta jiná, a&nbsp;to <code>/usr/share/<strong>doc</strong>/zabbix-sql-scripts/</code> !</p>


<section id="block-code-block_f3d26a3d57a501ae7fe060fe422aebb6" data-id="block-code-block_f3d26a3d57a501ae7fe060fe422aebb6" class="gt-block block-code">
    <pre><code>sudo -u postgres createdb -O zabbix zabbix
zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Nyní se pustíme do&nbsp;instalace TimescaleDB. <br>Přidáme repozitář.</p>


<section id="block-code-block_f7997eac510d347cd45368a90a87b046" data-id="block-code-block_f7997eac510d347cd45368a90a87b046" class="gt-block block-code">
    <pre><code>tee /etc/yum.repos.d/timescale_timescaledb.repo &lt;&lt;EOL
[timescale_timescaledb]
name=timescale_timescaledb
baseurl=https://packagecloud.io/timescale/timescaledb/el/$(rpm -E %{rhel})/\$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOL</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nainstalujme TimescaleDB.</p>


<section id="block-code-block_003246c3e7dfbcbcc1f84f4e30799f86" data-id="block-code-block_003246c3e7dfbcbcc1f84f4e30799f86" class="gt-block block-code">
    <pre><code>dnf install timescaledb-2-postgresql-15-2.10.3 timescaledb-2-loader-postgresql-15-2.10.3 -y</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Spustíme utilitu <code>timescaledb-tune</code> a&nbsp;jako parametr jí předáme vyšší hodnotu maximálního množství připojení (<code>--max-conns</code>), které pro tyto testovací účely nastavíme na&nbsp;<code>125</code>.</p>



<p>Tato utilita slouží k&nbsp;přizpůsobení výchozího nastavení PostgreSQL vůčihledně výkonu a&nbsp;adekvátnímu nastavení parametrů PostgreSQL pro fungování s&nbsp;TimescaleDB.</p>



<p>Zároveň nám tato utilit pomocí instalačního průvodce pomůže vybrat aktuální a&nbsp;platný konfigurační soubor PostgreSQL a&nbsp;nastaví i&nbsp;automatické načítání knihoven TimescaleDB.</p>



<p>Prosím, odpovídejte &#8222;ano&#8220; (y) na&nbsp;všechny otázky. Pozor, automatický tuner předpokládá, že PostgreSQL běží na&nbsp;samostatném serveru, a&nbsp;proto může být potřeba případně upravit parametry.</p>


<section id="block-code-block_3cf91872ae7d8989fbef5fe532b658ca" data-id="block-code-block_3cf91872ae7d8989fbef5fe532b658ca" class="gt-block block-code">
    <pre><code>timescaledb-tune --pg-config /usr/pgsql-15/bin --max-conns=125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1392" height="592" src="https://www.initmax.cz/wp-content/uploads/2023/07/zabbix-62-pgtune.png" alt="" class="wp-image-16570" srcset="https://www.initmax.cz/wp-content/uploads/2023/07/zabbix-62-pgtune.png 1392w, https://www.initmax.cz/wp-content/uploads/2023/07/zabbix-62-pgtune-300x128.png 300w, https://www.initmax.cz/wp-content/uploads/2023/07/zabbix-62-pgtune-1024x435.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/07/zabbix-62-pgtune-768x327.png 768w, https://www.initmax.cz/wp-content/uploads/2023/07/zabbix-62-pgtune-608x259.png 608w, https://www.initmax.cz/wp-content/uploads/2023/07/zabbix-62-pgtune-1216x517.png 1216w" sizes="auto, (max-width: 1392px) 100vw, 1392px" /></figure>



<p>Následně restartujeme systémovou službu pro PostgreSQL:</p>


<section id="block-code-block_0c2c61ce158cb202738e8a586aff927a" data-id="block-code-block_0c2c61ce158cb202738e8a586aff927a" class="gt-block block-code">
    <pre><code>systemctl restart postgresql-15.service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá jen aktivovat TimescaleDB.</p>



<p><strong>Pozor!</strong> Ve starších verzích Zabbix je tato cesta jiná, a&nbsp;to <code>/usr/share/<strong>doc</strong>/zabbix-sql-scripts/</code> !</p>


<section id="block-code-block_93edcc2589c649a3703089ded534239b" data-id="block-code-block_93edcc2589c649a3703089ded534239b" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix-sql-scripts/postgresql/timescaledb.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Konfigurace Zabbix serveru</h2>



<p>Otevřeme konfigurační soubor Zabbix serveru</p>


<section id="block-code-block_52ff3befc69dd06f67f41846aba95501" data-id="block-code-block_52ff3befc69dd06f67f41846aba95501" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Upravíme jednotlivé parametry podle následující předlohy.</p>


<section id="block-code-block_c8b5d8b5530a7ddd4c9f32d0310272b6" data-id="block-code-block_c8b5d8b5530a7ddd4c9f32d0310272b6" class="gt-block block-code">
    <pre><code>DBPassword=&lt;heslo do databáze&gt;
StartReportWriters=1
WebServiceURL=http://localhost:10053/report
HANodeName=initMAX</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nakonec doinstalujeme jazykové balíčky pro češtinu a&nbsp;slovenštinu, restartujeme všechny související služby a&nbsp;nastavíme aby se spouštěly automaticky.</p>


<section id="block-code-block_a2f60f986829057b8834cb27f469b5f7" data-id="block-code-block_a2f60f986829057b8834cb27f469b5f7" class="gt-block block-code">
    <pre><code>dnf install glibc-langpack-cs.x86_64 glibc-langpack-sk.x86_64
systemctl restart zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm
systemctl enable zabbix-server zabbix-web-service zabbix-agent2 httpd php-fpm
less /var/log/zabbix/zabbix_server.log</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Konfigurace Zabbix frontendu</h2>



<p>V okně prohlížeče si otevřeme url na&nbsp;které nám Zabbix běží. Například http://192.168.0.50/zabbix a&nbsp;přivítá nás instalace.</p>



<p>Kliknutím na&nbsp;tlačítko Next step se posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full is-style-default"><img loading="lazy" decoding="async" width="1199" height="667" src="https://www.initmax.cz/wp-content/uploads/2023/03/welcome.png" alt="Před zahájením instalace Zabbix 6.2 zvolíme náš preferovaný jazyk." class="wp-image-11811" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/welcome.png 1199w, https://www.initmax.cz/wp-content/uploads/2023/03/welcome-300x167.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/welcome-1024x570.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/welcome-768x427.png 768w" sizes="auto, (max-width: 1199px) 100vw, 1199px" /></figure>



<p>Vše je v&nbsp;pořádku, můžeme tedy kliknout na&nbsp;Next step a&nbsp;posunout se na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1200" height="668" src="https://www.initmax.cz/wp-content/uploads/2023/03/check-of-pre-requisites.png" alt="Druhým krokem průvodce instalace je kontrola minimálních požadavků." class="wp-image-11813" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/check-of-pre-requisites.png 1200w, https://www.initmax.cz/wp-content/uploads/2023/03/check-of-pre-requisites-300x167.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/check-of-pre-requisites-1024x570.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/check-of-pre-requisites-768x428.png 768w" sizes="auto, (max-width: 1200px) 100vw, 1200px" /></figure>



<p>Na této stránce vyplníme pouze políčko <strong>Password</strong>, nic dalšího není třeba měnit, a&nbsp;klikneme na&nbsp;Next step.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1198" height="664" src="https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection.png" alt="Třetím krokem průvodce instalace je nastavení připojení do databáze." class="wp-image-11815" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection.png 1198w, https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection-300x166.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection-1024x568.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/configure-db-connection-768x426.png 768w" sizes="auto, (max-width: 1198px) 100vw, 1198px" /></figure>



<p>Zde vyplníme základní nastavení, tedy název serveru a&nbsp;časové pásmo, a&nbsp;kliknutím na&nbsp;Next step pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1198" height="666" src="https://www.initmax.cz/wp-content/uploads/2023/03/settings.png" alt="Čtvrtým krokem průvodce instalace je nastavení serveru a výběr časové zóny." class="wp-image-11817" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/settings.png 1198w, https://www.initmax.cz/wp-content/uploads/2023/03/settings-300x167.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/settings-1024x569.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/settings-768x427.png 768w" sizes="auto, (max-width: 1198px) 100vw, 1198px" /></figure>



<p>Zkontrolujeme zadané hodnoty a&nbsp;kliknutím na&nbsp;Next step dokončíme instalaci.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1199" height="662" src="https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary.png" alt="Pátý krok instalace Zabbix 6.2 a kontrola hodnot před instalací" class="wp-image-11819" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary.png 1199w, https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary-300x166.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary-1024x565.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/pre-installation-summary-768x424.png 768w" sizes="auto, (max-width: 1199px) 100vw, 1199px" /></figure>



<p>Kliknutím na&nbsp;Finish již přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1199" height="663" src="https://www.initmax.cz/wp-content/uploads/2023/03/install.png" alt="Po úspěšné instalaci můžeme přejít k přihlášení kliknutím na tlačítko &quot;Finish&quot;." class="wp-image-11821" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/install.png 1199w, https://www.initmax.cz/wp-content/uploads/2023/03/install-300x166.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/install-1024x566.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/install-768x425.png 768w" sizes="auto, (max-width: 1199px) 100vw, 1199px" /></figure>



<p>Přihlásíme se a&nbsp;můžeme Zabbix 6.2 začít používat. (Admin/zabbix)</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1215" height="657" src="https://www.initmax.cz/wp-content/uploads/2023/03/login.png" alt="Pro přihlášení v dialogovém okně uvedeme přihlašovací jméno a heslo." class="wp-image-11823" srcset="https://www.initmax.cz/wp-content/uploads/2023/03/login.png 1215w, https://www.initmax.cz/wp-content/uploads/2023/03/login-300x162.png 300w, https://www.initmax.cz/wp-content/uploads/2023/03/login-1024x554.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/03/login-768x415.png 768w" sizes="auto, (max-width: 1215px) 100vw, 1215px" /></figure>



<p>Po přihlášení na&nbsp;Vás čeká nový Zabbix 6.2. </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1894" height="957" src="https://www.initmax.cz/wp-content/uploads/2022/12/frontend-gui.png" alt="Po přihlášení se dostanete do administrace Zabbix 6.2" class="wp-image-11125" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/frontend-gui.png 1894w, https://www.initmax.cz/wp-content/uploads/2022/12/frontend-gui-300x152.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/frontend-gui-1024x517.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/frontend-gui-768x388.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/frontend-gui-1536x776.png 1536w" sizes="auto, (max-width: 1894px) 100vw, 1894px" /></figure>



<h2 class="wp-block-heading">Konfigurace Zabbix reportingu</h2>



<p>Pro potřeby funkcí reportingu je nejprvé nutné nainstalovat Google Chrome.</p>



<p>Nejprve stáhneme instalační balíček, který následně také nainstalujeme:</p>


<section id="block-code-block_7829a56d7f1eb6ac6d74aec53d768960" data-id="block-code-block_7829a56d7f1eb6ac6d74aec53d768960" class="gt-block block-code">
    <pre><code>wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf localinstall google-chrome-stable_current_x86_64.rpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně je nutné upravit v&nbsp;konfiguraci Zabbix frontendu parametr &#8222;Frontend URL&#8220; na&nbsp;aktuálně platnou hodnotu, toto nastavení se nachází v&nbsp;následující cestě v&nbsp;menu:</p>


<section id="block-code-block_144d3ad5318886a53db251117470d13f" data-id="block-code-block_144d3ad5318886a53db251117470d13f" class="gt-block block-code">
    <pre><code>Administration -&gt; General -&gt; Other</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Příklad nastavení můžete vidět na&nbsp;obrázku níže.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1606" height="692" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9.png" alt="" class="wp-image-16546" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9.png 1606w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-300x129.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-1024x441.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-768x331.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-1536x662.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-608x262.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-1216x524.png 1216w" sizes="auto, (max-width: 1606px) 100vw, 1606px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>


<section id="block-newsletter-block_514f7071a29a4e3481ea2f931d82f40d" data-id="block-newsletter-block_514f7071a29a4e3481ea2f931d82f40d" class="gt-block block-newsletter">
    <section id="newsletter" class="newsletter">
	<div class="gradient basic">
		<div class="newsletter__inner width width--general">
			<div class="col left">
									<h2 class="newsletter__title">Buďte v&nbsp;obraze s&nbsp;naším newsletterem</h2>
													<div class="newsletter__content"><p>Díky initMAX newsletteru Vám neunikne žádná z&nbsp;pozvánek na&nbsp;akce a&nbsp;webináře, žádný z&nbsp;tipů, jak dostat ze svého IT MAXimum, ani ověřené informace o&nbsp;novinkách ze světa Zabbix a&nbsp;dalších technologií.</p>
</div>
							</div>
			<div class="col right form-wrapper">
				<div class="newsletter-form">
	<form method="post" action="/wiki/kapitola/zabbix/zabbix-instalace/feed/" enctype="multipart/form-data">
		<input type="hidden" name="url" value="https://www.initmax.cz/wiki/kapitola/zabbix/zabbix-instalace/feed/">

		<div class="inputs">

			<label for="newsletter-form_contact_email" class="top">Vaše e-mailová adresa:</label>
			<div class="df">

				<div class="input">
					<input type="text" id="newsletter-form_contact_email" name="newsletter_email" placeholder="@" data-format="email" data-required="1">
									</div><!-- /.input -->

				<a href="#" class="btn btn--white sendBtn">Odeslat</a>

			</div>

			<div class="bottom nm">
				<label for="newsletter-form_gdpr" class="checkbox gdpr">
					<input type="checkbox" id="newsletter-form_gdpr" name="newsletter_gdpr">
					<span>Souhlasím se&nbsp;<a href="https://www.initmax.cz/ochrana-osobnich-udaju/" target="_blank">zpracováním osobních údajů</a>.</span>
				</label>
			</div>

		</div><!-- /.inputs -->
		<div class="sent hidden">
			<div class="iconOk"><h3>Děkujeme, že jste se přihlásili k&nbsp;odběru našeho newsletteru.</h3>
</div>
			<button class="sent__close" title="Zavřít" onclick="closeFormMessage(this,event)"><svg data-name="Group 3602" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 3272" d="M0,0H24V24H0Z" fill="none"/><line data-name="Line 98" y2="14" transform="translate(7.05 7.05) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 99" x2="14" transform="translate(7.05 16.95) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</button>
		</div><!-- /.sent -->
	</form>
</div>			</div>
		</div>
	</div>
</section></section>



<section id="social-links-block_9f16e9ed2227945db22b7252bf0a4464" data-id="social-links-block_9f16e9ed2227945db22b7252bf0a4464" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>

<p>The post <a href="https://www.initmax.cz/wiki/zabbix-6-2-navod-na-instalaci-v-5-minutach/">Zabbix 6.2 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách (nepodporováno)</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Zabbix 6.0 &#8211; návod na&#160;instalaci v&#160;5 minutách</title>
		<link>https://www.initmax.cz/wiki/zabbix-6-0-navod-na-instalaci-v-5-minutach/</link>
		
		<dc:creator><![CDATA[Tomáš Heřmánek]]></dc:creator>
		<pubDate>Mon, 19 Dec 2022 10:31:00 +0000</pubDate>
				<guid isPermaLink="false">https://www.initmax.cz/?post_type=wiki&#038;p=12191</guid>

					<description><![CDATA[<p>V tomto článku si ukážeme, jak nainstalovat a nakonfigurovat Zabbix 6.0 s databází PostgreSQL 16 na Rocky Linux 9, a to během pěti minut. ...</p>
<p>The post <a href="https://www.initmax.cz/wiki/zabbix-6-0-navod-na-instalaci-v-5-minutach/">Zabbix 6.0 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>V tomto článku si ukážeme, jak nainstalovat a&nbsp;nakonfigurovat Zabbix 6.0 s&nbsp;databází PostgreSQL 16 na&nbsp;Rocky Linux 9, a&nbsp;to během pěti minut.</p>


<section id="block-webinar-block_432f8a03af35c12aefd21126788e56a2" data-id="block-webinar-block_432f8a03af35c12aefd21126788e56a2" class="gt-block block-webinar">
    <div class="connected-webinars__grid">
        <a href="https://www.initmax.cz/webinar/instalace-zabbixu-v-5-minutach-6-0/" class="grid-item">
	<article class="webinar-promotion">
		<div class="webinar-promotion__thumbnail-wrap">
			<figure class="webinar-promotion__thumbnail">
					<img decoding="async" src="https://www.initmax.cz/wp-content/uploads/2022/03/03_thumbnail_web.png"
				 width="400"
		 height="250"
		 class=""
		 alt="Instalace Zabbixu v&nbsp;5 minutách 6.0"
		 loading="lazy"	>
									<div class="webinar-promotion__tags">
						<span class="tag tag--small" style="color:#ffffff;background-color:#d40000;">Zabbix</span>					</div>
							</figure>
		</div>
		<div class="webinar-promotion__text">
			<div>
									<time datetime="2022-03-22">22.&nbsp;3.&nbsp;2022</time>
							</div>
			<h3 class="webinar-promotion__title">Instalace Zabbixu v&nbsp;5 minutách 6.0</h3>
			<div class="icon-link">
				<figure class="icon-wrap icon-wrap--primary"><svg data-name="Group 3411" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 455" d="M0,0H24V24H0Z" fill="none"/><path data-name="Path 456" d="M15,10l4.553-2.276A1,1,0,0,1,21,8.618v6.764a1,1,0,0,1-1.447.894L15,14V10Z" transform="translate(0 0)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><rect data-name="Rectangle 1286" width="12" height="12" rx="2" transform="translate(3.112 6)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</figure>
				<span>Zhlédnout záznam</span>
			</div>
		</div>
	</article>
</a>    </div>
</section>


<section id="social-links-block_adc545d3a9fd39aa2fb3dc3246e65934" data-id="social-links-block_adc545d3a9fd39aa2fb3dc3246e65934" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>




<h2 class="wp-block-heading">Než začneme</h2>



<p>Pro účely této <strong>ukázky</strong> si nejdříve přepneme SELinux do&nbsp;Permissive módu.</p>



<p>Pokud plánujete SELinux trvale deaktivovat, můžete tak učinit úpravou konfiguračního souboru. Nicméně, doporučujeme zvážit možnost naučit se s&nbsp;SELinuxem pracovat a&nbsp;využít jeho bezpečnostní výhody. Podrobné informace o&nbsp;správném nastavení a&nbsp;monitorování SELinuxu naleznete <a href="https://www.initmax.cz/wiki/selinux-integrace-se-zabbixem-a-dalsimi-nastroji/">v našem samostatném článku.​</a></p>


<section id="block-code-block_14fe42fe950f19f08acafccc744faed9" data-id="block-code-block_14fe42fe950f19f08acafccc744faed9" class="gt-block block-code">
    <pre><code>setenforce 0</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace PostgreSQL</h2>



<p>Nejprve si naistalujeme repozitáře pro PostgreSQL a&nbsp;zakážeme výchozí, systémové PostgreSQL repozitáře.</p>


<section id="block-code-block_19819f8a14dd3837d208801a600c99ad" data-id="block-code-block_19819f8a14dd3837d208801a600c99ad" class="gt-block block-code">
    <pre><code>dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A nyní se můžeme pustit do&nbsp;instalace PostgreSQL, v&nbsp;tomto případě to bude PostgreSQL 16</p>


<section id="block-code-block_ab88f2a4a807c0f8c6b749bb33cea5be" data-id="block-code-block_ab88f2a4a807c0f8c6b749bb33cea5be" class="gt-block block-code">
    <pre><code>dnf install -y postgresql16-server</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Teď už zbývá jen inicializovat databázi a&nbsp;nastavit automatické spouštění.</p>


<section id="block-code-block_5667336c7a8b73293652254c2300f96d" data-id="block-code-block_5667336c7a8b73293652254c2300f96d" class="gt-block block-code">
    <pre><code>/usr/pgsql-16/bin/postgresql-16-setup initdb
systemctl enable postgresql-16 --now</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace Zabbix serveru a&nbsp;jeho součástí</h2>



<p>Databázi máme nainstalovanou, pojďme tedy na&nbsp;instalaci Zabbix serveru a&nbsp;jeho součástí.</p>



<p>Nejprve si z&nbsp;repozitáře EPEL vyloučíme jakékoliv instalační balíčky týkající se Zabbixu. Za předpokladu, že je nainstalován.To provedeme tak, že na&nbsp;konec souboru&nbsp;/etc/yum.repos.d/epel.repo&nbsp;vložíme následující řádek:</p>


<section id="block-code-block_8371bf864829c233efe8e63c24c6c7ce" data-id="block-code-block_8371bf864829c233efe8e63c24c6c7ce" class="gt-block block-code">
    <pre><code>[epel]
...
excludepkgs=zabbix*</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Přidáme si repozitáře Zabbixu a&nbsp;vyčistíme instalační cache.</p>


<section id="block-code-block_0b78b9d1f618b7566b9e2ddb1a1f76cf" data-id="block-code-block_0b78b9d1f618b7566b9e2ddb1a1f76cf" class="gt-block block-code">
    <pre><code>rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/zabbix-release-latest.el9.noarch.rpm 
dnf clean all</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>A naistalujeme všechny potřebné součásti Zabbixu.</p>


<section id="block-code-block_3311bf02059428154c4fc18a7e57e238" data-id="block-code-block_3311bf02059428154c4fc18a7e57e238" class="gt-block block-code">
    <pre><code>dnf install zabbix-server-pgsql zabbix-web-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent zabbix-web-service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Inicializace databáze</h2>



<p>V dalším kroku vytvoříme pro Zabbix uživatele v&nbsp;databázi a&nbsp;budeme vyzváni k&nbsp;zadání hesla.</p>


<section id="block-code-block_5479088a0c30a750787ad2b80f166c3e" data-id="block-code-block_5479088a0c30a750787ad2b80f166c3e" class="gt-block block-code">
    <pre><code>cd /tmp
sudo -u postgres createuser --pwprompt zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Založíme databázi a&nbsp;importujeme výchozí schéma a&nbsp;data. Opět budeme vyzváni k&nbsp;zadání hesla. <br>Zde použijeme heslo z&nbsp;předchozího kroku.</p>



<p><strong>Pozor!</strong> V&nbsp;starších verzích Zabbix je tato cesta jiná, a&nbsp;to <code>/usr/share/doc/zabbix-sql-scripts/postgresql/</code> !</p>


<section id="block-code-block_db367e91aaeebdffb64d9d29c305bb7e" data-id="block-code-block_db367e91aaeebdffb64d9d29c305bb7e" class="gt-block block-code">
    <pre><code>sudo -u postgres createdb -O zabbix zabbix
zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Nastavení firewallu</h2>



<p>Nakonec ještě povolíme porty potřebné pro běh Zabbix serveru na&nbsp;firewallu.</p>


<section id="block-code-block_eca661420bb2b7f276d0d61967f92de2" data-id="block-code-block_eca661420bb2b7f276d0d61967f92de2" class="gt-block block-code">
    <pre><code>firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-port=10051/tcp
firewall-cmd --reload</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Instalace TimescaleDB</h2>



<p>Nyní se pustíme do&nbsp;instalace TimescaleDB. <br>Přidáme repozitář.</p>


<section id="block-code-block_6bc3ad6e31d00fc753018c79d5d7a84c" data-id="block-code-block_6bc3ad6e31d00fc753018c79d5d7a84c" class="gt-block block-code">
    <pre><code>tee /etc/yum.repos.d/timescale_timescaledb.repo &lt;&lt;EOL
[timescale_timescaledb]
name=timescale_timescaledb
baseurl=https://packagecloud.io/timescale/timescaledb/el/$(rpm -E %{rhel})/\$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOL</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nainstalujme TimescaleDB.</p>


<section id="block-code-block_78bd0dca2430161149699c7cf27578bc" data-id="block-code-block_78bd0dca2430161149699c7cf27578bc" class="gt-block block-code">
    <pre><code>dnf -y install timescaledb-2-postgresql-16-2.16.1 timescaledb-2-loader-postgresql-16-2.16.1</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Spustíme utilitu <code>timescaledb-tune</code> a&nbsp;jako parametr jí předáme vyšší hodnotu maximálního množství připojení (<code>--max-conns</code>), které pro tyto testovací účely nastavíme na&nbsp;<code>125</code>.</p>



<p>Tato utilita slouží k&nbsp;přizpůsobení výchozího nastavení PostgreSQL vůčihledně výkonu a&nbsp;adekvátnímu nastavení parametrů PostgreSQL pro fungování s&nbsp;TimescaleDB.</p>



<p>Zároveň nám tato utilit pomocí instalačního průvodce pomůže vybrat aktuální a&nbsp;platný konfigurační soubor PostgreSQL a&nbsp;nastaví i&nbsp;automatické načítání knihoven TimescaleDB.</p>



<p>Prosím, odpovídejte &#8222;ano&#8220; (y) na&nbsp;všechny otázky. Pozor, automatický tuner předpokládá, že PostgreSQL běží na&nbsp;samostatném serveru, a&nbsp;proto může být potřeba případně upravit parametry.</p>


<section id="block-code-block_d0e7a29eca93cb11c9c838ff6c03e4b9" data-id="block-code-block_d0e7a29eca93cb11c9c838ff6c03e4b9" class="gt-block block-code">
    <pre><code>timescaledb-tune --pg-config /usr/pgsql-16/bin --max-conns=125</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1254" height="528" src="https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb.png" alt="" class="wp-image-13933" srcset="https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb.png 1254w, https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb-300x126.png 300w, https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb-1024x431.png 1024w, https://www.initmax.cz/wp-content/uploads/2023/10/postgresql16-timescaledb-768x323.png 768w" sizes="auto, (max-width: 1254px) 100vw, 1254px" /></figure>



<p>Následně restartujeme systémovou službu pro PostgreSQL:</p>


<section id="block-code-block_c9dc4a21e484488162042e7ada994c50" data-id="block-code-block_c9dc4a21e484488162042e7ada994c50" class="gt-block block-code">
    <pre><code>systemctl restart postgresql-16.service</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Zbývá již jen vytvořit a&nbsp;aktivovat TimescaleDB:</p>



<p><strong>Pozor!</strong> V&nbsp;starších verzích Zabbix je tato cesta jiná, a&nbsp;to <code>/usr/share/doc/zabbix-sql-scripts/</code> !</p>


<section id="block-code-block_7652f8e153f75164df95f2ce8ad2e94a" data-id="block-code-block_7652f8e153f75164df95f2ce8ad2e94a" class="gt-block block-code">
    <pre><code>echo &quot;CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;&quot; | sudo -u postgres psql zabbix
cat /usr/share/zabbix-sql-scripts/postgresql/timescaledb.sql | sudo -u zabbix psql zabbix</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Konfigurace Zabbix serveru</h2>



<p>Otevřeme konfigurační soubor Zabbix serveru.</p>


<section id="block-code-block_42620d461b3996f25130b3e941ed52ee" data-id="block-code-block_42620d461b3996f25130b3e941ed52ee" class="gt-block block-code">
    <pre><code>nano /etc/zabbix/zabbix_server.conf</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Upravíme jednotlivé parametry podle následující předlohy.</p>


<section id="block-code-block_e9fedb4edb856d74f602631b32d4dd7a" data-id="block-code-block_e9fedb4edb856d74f602631b32d4dd7a" class="gt-block block-code">
    <pre><code>DBPassword=&lt;heslo_do_databaze&gt;
StartReportWriters=1
WebServiceURL=http://localhost:10053/report
HANodeName=initMAX</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Nakonec doinstalujeme jazykové balíčky pro češtinu a&nbsp;slovenštinu:</p>


<section id="block-code-block_a5c1cc0cdca5e6aac4c149394e17da24" data-id="block-code-block_a5c1cc0cdca5e6aac4c149394e17da24" class="gt-block block-code">
    <pre><code>dnf install glibc-langpack-cs.x86_64 glibc-langpack-sk.x86_64</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Na závěr restartujeme všechny související služby a&nbsp;nastavíme je tak, aby se spouštěly automaticky:</p>


<section id="block-code-block_0047ed969e0a010255f8652a626996af" data-id="block-code-block_0047ed969e0a010255f8652a626996af" class="gt-block block-code">
    <pre><code>systemctl restart zabbix-server zabbix-web-service zabbix-agent httpd php-fpm
systemctl enable zabbix-server zabbix-web-service zabbix-agent httpd php-fpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Pro ověření stavu, že nám Zabbix server nastartoval v&nbsp;pořádku můžeme kromě jiného zkontrolovat i&nbsp;jeho log soubor:</p>


<section id="block-code-block_99e9fe76fc32924d1ed6e2e21ba1b034" data-id="block-code-block_99e9fe76fc32924d1ed6e2e21ba1b034" class="gt-block block-code">
    <pre><code>less /var/log/zabbix/zabbix_server.log</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<h2 class="wp-block-heading">Konfigurace Zabbix frontendu</h2>



<p>V okně prohlížeče si otevřeme url na&nbsp;které nám Zabbix běží. Například <code>http://192.168.0.50/zabbix</code> a&nbsp;přivítá nás instalace.</p>



<p>Kliknutím na&nbsp;tlačítko <code>Next step</code> se posuneme na&nbsp;stránku s&nbsp;kontrolou minimálních požadavků.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1130" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-1.png" alt="" class="wp-image-16521" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-1.png 1794w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-1-300x189.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-1-1024x645.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-1-768x484.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-1-1536x967.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-1-608x383.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-1-1216x766.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Vše je v&nbsp;pořádku, můžeme tedy kliknout na&nbsp;<code>Next step</code> a&nbsp;posunout se na&nbsp;další stránku s&nbsp;nastavením připojení do&nbsp;databáze.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1790" height="1140" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-2.png" alt="" class="wp-image-16525" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-2.png 1790w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-2-300x191.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-2-1024x652.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-2-768x489.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-2-1536x978.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-2-608x387.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-2-1216x774.png 1216w" sizes="auto, (max-width: 1790px) 100vw, 1790px" /></figure>



<p>Na této stránce vyplníme pouze políčko <strong>Password</strong>, nic dalšího není třeba měnit, a&nbsp;klikneme na&nbsp;<code>Next step</code>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1802" height="1140" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-3.png" alt="" class="wp-image-16529" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-3.png 1802w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-3-300x190.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-3-1024x648.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-3-768x486.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-3-1536x972.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-3-608x385.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-3-1216x769.png 1216w" sizes="auto, (max-width: 1802px) 100vw, 1802px" /></figure>



<p>Zde vyplníme základní nastavení, tedy název serveru a&nbsp;časové pásmo, a&nbsp;kliknutím na&nbsp;<code>Next step</code> pokračujeme k&nbsp;souhrnu konfigurace.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1130" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-4.png" alt="" class="wp-image-16534" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-4.png 1794w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-4-300x189.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-4-1024x645.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-4-768x484.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-4-1536x967.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-4-608x383.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-4-1216x766.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Zkontrolujeme zadané hodnoty a&nbsp;kliknutím na&nbsp;<code>Next step</code> dokončíme instalaci.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1140" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-5.png" alt="" class="wp-image-16532" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-5.png 1794w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-5-300x191.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-5-1024x651.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-5-768x488.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-5-1536x976.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-5-608x386.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-5-1216x773.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Kliknutím na&nbsp;<code>Finish</code> již přejdeme na&nbsp;přihlašovací obrazovku.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1794" height="1144" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-6.png" alt="" class="wp-image-16536" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-6.png 1794w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-6-300x191.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-6-1024x653.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-6-768x490.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-6-1536x979.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-6-608x388.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-6-1216x775.png 1216w" sizes="auto, (max-width: 1794px) 100vw, 1794px" /></figure>



<p>Přihlásíme se a&nbsp;můžeme Zabbix 6.0 začít používat. (<code>Admin/zabbix</code>)</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2438" height="1158" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-7.png" alt="" class="wp-image-16543" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-7.png 2438w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-7-300x142.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-7-1024x486.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-7-768x365.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-7-1536x730.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-7-2048x973.png 2048w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-7-608x289.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-7-1216x578.png 1216w" sizes="auto, (max-width: 2438px) 100vw, 2438px" /></figure>



<p>Po přihlášení na&nbsp;Vás čeká nový Zabbix 6.0. </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2814" height="1494" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-8.png" alt="" class="wp-image-16541" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-8.png 2814w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-8-300x159.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-8-1024x544.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-8-768x408.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-8-1536x815.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-8-2048x1087.png 2048w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-8-608x323.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-8-1216x646.png 1216w" sizes="auto, (max-width: 2814px) 100vw, 2814px" /></figure>



<h2 class="wp-block-heading">Konfigurace Zabbix reportingu</h2>



<p>Pro potřeby funkcí reportingu je nejprve nutné nainstalovat Google Chrome.</p>



<p>Nejprve stáhneme instalační balíček, který následně také nainstalujeme:</p>


<section id="block-code-block_4d42e81dc06fbd823f0f1c20678dceb6" data-id="block-code-block_4d42e81dc06fbd823f0f1c20678dceb6" class="gt-block block-code">
    <pre><code>wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
dnf localinstall google-chrome-stable_current_x86_64.rpm</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Následně je nutné upravit v&nbsp;konfiguraci Zabbix frontendu parametr &#8222;Frontend URL&#8220; na&nbsp;aktuálně platnou hodnotu, toto nastavení se nachází v&nbsp;následující cestě v&nbsp;menu:</p>


<section id="block-code-block_564b8b981eb8b48a9b623290e032a5aa" data-id="block-code-block_564b8b981eb8b48a9b623290e032a5aa" class="gt-block block-code">
    <pre><code>Administration -&gt; General -&gt; Other</code></pre>
    <a onclick="copyCode(this)" class="block-code__copy" title="Kopírovat"><svg data-name="Group 3002" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect data-name="Rectangle 2035" width="12" height="12" rx="2" transform="translate(8 8)" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 607" d="M16,8V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6v8a2,2,0,0,0,2,2H8" fill="none" stroke="#1f65f4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</a>
</section>




<p>Příklad nastavení můžete vidět na&nbsp;obrázku níže.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1606" height="692" src="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9.png" alt="" class="wp-image-16546" srcset="https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9.png 1606w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-300x129.png 300w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-1024x441.png 1024w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-768x331.png 768w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-1536x662.png 1536w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-608x262.png 608w, https://www.initmax.cz/wp-content/uploads/2022/12/zabbix-install-9-1216x524.png 1216w" sizes="auto, (max-width: 1606px) 100vw, 1606px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>


<section id="block-newsletter-block_81f3022fcaa604c1e0949cba9bc305d5" data-id="block-newsletter-block_81f3022fcaa604c1e0949cba9bc305d5" class="gt-block block-newsletter">
    <section id="newsletter" class="newsletter">
	<div class="gradient basic">
		<div class="newsletter__inner width width--general">
			<div class="col left">
									<h2 class="newsletter__title">Buďte v&nbsp;obraze s&nbsp;naším newsletterem</h2>
													<div class="newsletter__content"><p>Díky initMAX newsletteru Vám neunikne žádná z&nbsp;pozvánek na&nbsp;akce a&nbsp;webináře, žádný z&nbsp;tipů, jak dostat ze svého IT MAXimum, ani ověřené informace o&nbsp;novinkách ze světa Zabbix a&nbsp;dalších technologií.</p>
</div>
							</div>
			<div class="col right form-wrapper">
				<div class="newsletter-form">
	<form method="post" action="/wiki/kapitola/zabbix/zabbix-instalace/feed/" enctype="multipart/form-data">
		<input type="hidden" name="url" value="https://www.initmax.cz/wiki/kapitola/zabbix/zabbix-instalace/feed/">

		<div class="inputs">

			<label for="newsletter-form_contact_email" class="top">Vaše e-mailová adresa:</label>
			<div class="df">

				<div class="input">
					<input type="text" id="newsletter-form_contact_email" name="newsletter_email" placeholder="@" data-format="email" data-required="1">
									</div><!-- /.input -->

				<a href="#" class="btn btn--white sendBtn">Odeslat</a>

			</div>

			<div class="bottom nm">
				<label for="newsletter-form_gdpr" class="checkbox gdpr">
					<input type="checkbox" id="newsletter-form_gdpr" name="newsletter_gdpr">
					<span>Souhlasím se&nbsp;<a href="https://www.initmax.cz/ochrana-osobnich-udaju/" target="_blank">zpracováním osobních údajů</a>.</span>
				</label>
			</div>

		</div><!-- /.inputs -->
		<div class="sent hidden">
			<div class="iconOk"><h3>Děkujeme, že jste se přihlásili k&nbsp;odběru našeho newsletteru.</h3>
</div>
			<button class="sent__close" title="Zavřít" onclick="closeFormMessage(this,event)"><svg data-name="Group 3602" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path data-name="Path 3272" d="M0,0H24V24H0Z" fill="none"/><line data-name="Line 98" y2="14" transform="translate(7.05 7.05) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 99" x2="14" transform="translate(7.05 16.95) rotate(-45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>
</button>
		</div><!-- /.sent -->
	</form>
</div>			</div>
		</div>
	</div>
</section></section>



<section id="social-links-block_adc545d3a9fd39aa2fb3dc3246e65934" data-id="social-links-block_adc545d3a9fd39aa2fb3dc3246e65934" class="gt-block social-links">
			<div class="social-links__content"><p><strong>Dejte nám Like, sdílejte nás nebo nás sledujte 😍</strong><br />
Ať vám nic neunikne:</p>
</div>
		<div class="socials df df--fw-w df--ai-c df--jc-c">
					<a href="https://twitter.com/initmax" title="Odkaz na Twitter" class="social-link social-link--colored twitter-x" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-x" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" /></svg>


</a>
							<a href="https://www.linkedin.com/company/initmax/" title="Odkaz na Linkedin" class="social-link social-link--colored linkedin" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3318" transform="translate(-4214 7797)"><g data-name="Group 2185" transform="translate(4214 -7797)"><path data-name="Path 524" d="M0,0H24V24H0Z" fill="none"/><rect data-name="Rectangle 1825" width="16" height="16" rx="2" transform="translate(4 4)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 64" y2="5" transform="translate(8 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 65" y2="0.01" transform="translate(8 8)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 66" y1="5" transform="translate(12 11)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path data-name="Path 525" d="M16,16V13a2,2,0,0,0-4,0" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
									<a href="https://www.youtube.com/@initmax1" title="Odkaz na Youtube" class="social-link social-link--colored youtube" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-youtube" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5m0 4a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v6a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4z" /><path d="M10 9l5 3l-5 3z" /></svg>


</a>
										<a href="https://github.com/initmax" title="Odkaz na GitHub" class="social-link social-link--colored github" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /></svg>


</a>
								<a href="https://www.facebook.com/initmax" title="Odkaz na Facebook" class="social-link social-link--colored facebook" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3193" transform="translate(-4286 7797)"><g data-name="Group 3189"><path data-name="Path 515" d="M0,0H24V24H0Z" transform="translate(4286 -7797)" fill="none"/><path data-name="Path 516" d="M7,10v4h3v7h4V14h3l1-4H14V8a1,1,0,0,1,1-1h3V3H15a5,5,0,0,0-5,5v2H7" transform="translate(4286 -7797)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
							<a href="https://www.instagram.com/initmax/" title="Odkaz na Instagram" class="social-link social-link--colored instagram" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g data-name="Group 3194" transform="translate(-4358 7797)"><g data-name="Group 3190"><path data-name="Path 517" d="M0,0H24V24H0Z" transform="translate(4358 -7797)" fill="none"/><rect data-name="Rectangle 1783" width="16" height="16" rx="4" transform="translate(4362 -7793)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><circle data-name="Ellipse 51" cx="3" cy="3" r="3" transform="translate(4367 -7788)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><line data-name="Line 63" y2="0.001" transform="translate(4374.5 -7789.5)" fill="none" stroke="var(--icon-color,#1F65F4)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>
</a>
			</div>
</section>

<p>The post <a href="https://www.initmax.cz/wiki/zabbix-6-0-navod-na-instalaci-v-5-minutach/">Zabbix 6.0 &#8211; návod na&nbsp;instalaci v&nbsp;5 minutách</a> appeared first on <a href="https://www.initmax.cz">initMAX s.r.o.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
