<?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>Case &#187; zabbix</title>
	<atom:link href="http://case.net.ru/tag/zabbix/feed/" rel="self" type="application/rss+xml" />
	<link>http://case.net.ru</link>
	<description>Just another technical weblog</description>
	<lastBuildDate>Sun, 29 Jan 2012 08:48:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Map</title>
		<link>http://case.net.ru/2009/07/15/map/</link>
		<comments>http://case.net.ru/2009/07/15/map/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 10:45:30 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=657</guid>
		<description><![CDATA[Небольшая иллюстрация для истории: мониторинг домашней сети.]]></description>
			<content:encoded><![CDATA[<p>Небольшая иллюстрация для истории: мониторинг домашней сети.</p>
<p><img src="http://case.net.ru/wp-content/uploads/2009/07/map.png" alt="map" title="map" width="550" height="700" class="alignnone size-full wp-image-658" /></p>
]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/07/15/map/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Устанавливаем систему мониторинга Zabbix</title>
		<link>http://case.net.ru/2009/04/13/zabbix/</link>
		<comments>http://case.net.ru/2009/04/13/zabbix/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 12:54:43 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=418</guid>
		<description><![CDATA[Имеется: 1 2 $ uname -rps FreeBSD 6.4-STABLE amd64 Устанавливаем: 1 2 3 4 5 6 7 8 9 10 11 12 $ cd /usr/ports/net-mgmt/zabbix $ make showconfig ===&#62; The following configuration options are available for zabbix-1.6.2_1,1: MYSQL=on &#34;Use MySQL backend&#34; PGSQL=off &#34;Use PostgreSQL backend&#34; SQLITE=off &#34;Use SQLite backend&#34; LDAP=off &#34;Support for checking LDAP servers&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>Имеется:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-rps</span>
FreeBSD <span style="color: #000000;">6.4</span>-STABLE amd64</pre></td></tr></table></div>

<p>Устанавливаем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>net-mgmt<span style="color: #000000; font-weight: bold;">/</span>zabbix
$ <span style="color: #c20cb9; font-weight: bold;">make</span> showconfig
===<span style="color: #000000; font-weight: bold;">&gt;</span> The following configuration options are available <span style="color: #000000; font-weight: bold;">for</span> zabbix-1.6.2_1,<span style="color: #000000;">1</span>:
     <span style="color: #007800;">MYSQL</span>=on <span style="color: #ff0000;">&quot;Use MySQL backend&quot;</span>
     <span style="color: #007800;">PGSQL</span>=off <span style="color: #ff0000;">&quot;Use PostgreSQL backend&quot;</span>
     <span style="color: #007800;">SQLITE</span>=off <span style="color: #ff0000;">&quot;Use SQLite backend&quot;</span>
     <span style="color: #007800;">LDAP</span>=off <span style="color: #ff0000;">&quot;Support for checking LDAP servers&quot;</span>
     <span style="color: #007800;">IPV6</span>=off <span style="color: #ff0000;">&quot;Support for IPv6&quot;</span>
     <span style="color: #007800;">FPING</span>=off <span style="color: #ff0000;">&quot;Use fping for pinging hosts&quot;</span>
     <span style="color: #007800;">JABBER</span>=on <span style="color: #ff0000;">&quot;Use jabber media type&quot;</span>
===<span style="color: #000000; font-weight: bold;">&gt;</span> Use <span style="color: #ff0000;">'make config'</span> to modify these settings
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></td></tr></table></div>

<p>В mysql создаем базу и добавляем пользователя:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> zabbix;
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">ALL</span> <span style="color: #993333; font-weight: bold;">ON</span> zabbix<span style="color: #66cc66;">.*</span> <span style="color: #993333; font-weight: bold;">TO</span> zabbix@localhost <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'zabbix'</span>;</pre></td></tr></table></div>

<p>Наполняем базу:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zabbix<span style="color: #000000; font-weight: bold;">/</span>create<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">cat</span> schema<span style="color: #000000; font-weight: bold;">/</span>mysql.sql data<span style="color: #000000; font-weight: bold;">/</span>data.sql data<span style="color: #000000; font-weight: bold;">/</span>images_mysql.sql <span style="color: #000000; font-weight: bold;">|</span> mysql <span style="color: #660033;">-u</span> zabbix <span style="color: #660033;">-p</span> zabbix</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<h2>Zabbix Server</h2>
<h1>&nbsp;</h1>
<p>Копируем файл конфигурации:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>zabbix
$ <span style="color: #c20cb9; font-weight: bold;">cp</span> zabbix_server.conf.sample zabbix_server.conf</pre></td></tr></table></div>

<p>Настраиваем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">ListenIP</span>=127.0.0.1
<span style="color: #007800;">DBHost</span>=localhost
<span style="color: #007800;">DBName</span>=zabbix
<span style="color: #007800;">DBUser</span>=zabbix
<span style="color: #007800;">DBPassword</span>=zabbix</pre></td></tr></table></div>

<p>Добавляем в rc.conf</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">zabbix_server_enable</span>=<span style="color: #ff0000;">&quot;YES&quot;</span></pre></td></tr></table></div>

<p>Запускаем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>zabbix_server start</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<h2>Zabbix Agent</h2>
<h1>&nbsp;</h1>
<p>Устанавливаем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>net-mgmt<span style="color: #000000; font-weight: bold;">/</span>zabbix-agent<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></td></tr></table></div>

<p>Копируем файл конфигурации:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>zabbix
$ <span style="color: #c20cb9; font-weight: bold;">cp</span> zabbix_agentd.conf.sample zabbix_agentd.conf</pre></td></tr></table></div>

<p>Настраиваем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">Server</span>=127.0.0.1
<span style="color: #007800;">Hostname</span>=ZABBIX Server
<span style="color: #007800;">ListenPort</span>=<span style="color: #000000;">10050</span>
<span style="color: #007800;">ListenIP</span>=127.0.0.1
<span style="color: #007800;">StartAgents</span>=<span style="color: #000000;">5</span>
<span style="color: #007800;">DebugLevel</span>=<span style="color: #000000;">3</span>
<span style="color: #007800;">PidFile</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zabbix_agentd.pid
<span style="color: #007800;">LogFile</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zabbix_agentd.log
<span style="color: #007800;">Timeout</span>=<span style="color: #000000;">3</span></pre></td></tr></table></div>

<p>Добавляем в rc.conf</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">zabbix_agentd_enable</span>=<span style="color: #ff0000;">&quot;YES&quot;</span></pre></td></tr></table></div>

<p>Запускаем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>zabbix_agentd start</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<h2>Веб-интерфейс</h2>
<h1>&nbsp;</h1>
<p>Делаем симлинк на веб-интерфейс:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>data
$ <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zabbix<span style="color: #000000; font-weight: bold;">/</span>php zabbix</pre></td></tr></table></div>

<p>Заходим по адресу http://localhost/zabbix/ и продолжаем установку.</p>
<p>Во время установки через веб возникли следующие моменты:<br />
- Необходимо установить значение переменной date.timezone в php.ini:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">date.timezone = <span style="color: #ff0000;">&quot;Europe/Moscow&quot;</span></pre></td></tr></table></div>

<p>- отчмодить каталог, куда инсталятор сохранит конфиг:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chown</span> www:www <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zabbix<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span></pre></td></tr></table></div>

<p>- при появлении ошибки &#8220;ERROR: Invalid URL&#8221; закомментировать строку 436 в файле php/include/validate.inc.php:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">			<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$flags</span><span style="color: #339933;">&amp;</span>P_ACT<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sid'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
					<span style="color: #666666; font-style: italic;">//return ZBX_VALID_ERROR;</span></pre></td></tr></table></div>

<p>- сразу после установки и нажатия Finish, установка началась с начала &#8211; необходимо удалить куки браузера.<br />
- для выхода используйте имя пользователя Admin, пароль zabbix.</p>
<h1>&nbsp;</h1>
<h2>Первоначальная настройка</h2>
<h1>&nbsp;</h1>
<p>- сменить шаблон для localhost&#8217;а на Template_FreeBSD (или просто отцепить шаблон)<br />
- активировать мониторинг localhost&#8217;а<br />
- создать нужные &#8220;Элементы данных&#8221; (items)<br />
- создать на них триггеры<br />
- настройки отправку сообщений по триггерам</p>
]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/04/13/zabbix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
