<?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>Ubuntu Linux, ubuntu desktop, Linux operating system, ubuntu guide &#187; network monitoring tool zabbix</title>
	<atom:link href="http://ubuntulinux.co.in/blog/tag/network-monitoring-tool-zabbix/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubuntulinux.co.in/blog</link>
	<description>How to fix the Technical issue in Ubuntu linux</description>
	<lastBuildDate>Thu, 17 May 2012 13:12:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nework Monitoring System Zabbix Installation on ubuntu</title>
		<link>http://ubuntulinux.co.in/blog/ubuntu/nework-monitoring-system-zabbix-installation-on-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nework-monitoring-system-zabbix-installation-on-ubuntu</link>
		<comments>http://ubuntulinux.co.in/blog/ubuntu/nework-monitoring-system-zabbix-installation-on-ubuntu/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 13:47:54 +0000</pubDate>
		<dc:creator>sahab</dc:creator>
				<category><![CDATA[NMS]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 7.10]]></category>
		<category><![CDATA[zabbix]]></category>
		<category><![CDATA[network monitoring tool zabbix]]></category>
		<category><![CDATA[Nework Monitoring System Zabbix Installation on ubuntu]]></category>

		<guid isPermaLink="false">http://ubuntulinux.co.in/blog/?p=273</guid>
		<description><![CDATA[Zabbix is a solution for monitoring applications, networks, and servers. With Zabbix, you can monitor multiple servers at a time, using a Zabbix server that comes with a web interface (that is used to configure Zabbix and holds the graphs of your systems) and Zabbix agents that are installed on the systems to be monitored. The Zabbix agents deliver the desired data to the Zabbix server.]]></description>
			<content:encoded><![CDATA[<div><span style="font-family: Times New Roman; font-size: small;"><a href="http://www.zabbix.org/" target="_blank">Zabbix</a> is a solution for monitoring applications, networks, and servers. With Zabbix, you can monitor multiple servers at a time, using a Zabbix server that comes with a web interface (that is used to configure Zabbix and holds the graphs of your systems) and Zabbix agents that are installed on the systems to be monitored. The Zabbix agents deliver the desired data to the Zabbix server.</span></div>
<div><span style="font-family: Times New Roman; font-size: small;"><br />
</span></div>
<div><span style="font-family: Times New Roman; font-size: small;"><img src="../../images/ubuntu%207.10/zabbix.png" alt="" width="394" height="145" /> </span></div>
<p><span style="font-family: Times New Roman; font-size: small;"><br />
</span></p>
<div><span style="font-family: Times New Roman; font-size: small;">I have use the system  ubuntulinux.co.in with the IP address 10.0.2.2 as the Zabbix server, and  I have installed a Zabbix agent on the same system (so that it can  monitor itself) as well as on a second Ubuntu 7.10 system with the  hostname nms.ubuntulinux.co.in and the IP address 10.0.2.3 </span></div>
<div><span style="font-family: Times New Roman; font-size: small;"> </span></div>
<div><span style="font-size: small;"><strong><span style="font-family: Times New Roman;">Install The  Zabbix Server And Zabbix Agent On server</span></strong></span></div>
<p><span style="font-family: Times New Roman; font-size: small;"><br />
The Zabbix server can store its information in a MySQL or PostgreSQL  database. We use MySQL here, so we have to install the MySQL server and  client first:</span></p>
<p><strong>apt-get install mysql-server mysql-client</strong></p>
<div><span style="font-family: Times New Roman; font-size: small;">Create a password for the  MySQL user root (replace yourrootsqlpassword with the password you want  to use)</span></div>
<div><span style="font-size: small;"> </span></div>
<p><span style="font-family: Times New Roman; font-size: small;"><strong>mysqladmin -u root  password yourrootsqlpassword<br />
</strong><br />
Then check with</span></p>
<p><strong>netstat -tap | grep mysql</strong></p>
<p>on which addresses MySQL is listening. If the output looks like  this:</p>
<p><strong>tcp 0 0 localhost.localdo:mysql *:* LISTEN 2713/mysqld</strong></p>
<p>which means MySQL is listening on localhost.localdomain only, then  you&#8217;re safe with the password you set before. But if the output looks  like this:</p>
<p><strong>tcp 0 0 *:mysql *:* LISTEN 2713/mysqld</strong></p>
<p>you should set a MySQL? password for your hostname, too, because  otherwise anybody can access your database and modify data:</p>
<p><strong>mysqladmin -h ubuntulinux.co.in -u root password  yourrootsqlpassword</strong></p>
<p>Afterwards, we can install the Zabbix server, Zabbix agent, and the  Zabbix web interface with a single command:</p>
<p><strong>apt-get install zabbix-server-mysql zabbix-frontend-php  zabbix-agent</strong></p>
<p>You will be asked a few questions:</p>
<p>Configure database for zabbix-server-mysql with dbconfig-common?  &lt;&#8211; Yes<br />
Password of your database&#8217;s administrative user: &lt;&#8211;  yourrootsqlpassword (password of the MySQL? root user)<br />
MySQL? application password for zabbix-server-mysql: &lt;&#8211;  zabbixsqlpassword (password of the MySQL? user zabbix)<br />
Password confirmation: &lt;&#8211; zabbixsqlpassword</p>
<div><span style="font-family: Times New Roman; font-size: small;">This should create a MySQL?  database called zabbix as well as the MySQL</span></div>
<div><span style="font-family: Times New Roman; font-size: small;"> user zabbix (with the  password you provided).</span><span style="font-size: small;"><br />
</span></div>
<p><span style="font-family: Times New Roman; font-size: small;">Next we must edit the Zabbix  agent configuration in /etc/zabbix/zabbix_agentd.conf. Replace  Server=localhost with Server=10.0.2.2<br />
and specify the hostname of the current system in the Hostname line</span></p>
<p><strong>vim /etc/zabbix/zabbix_agentd.conf</strong><br />
Server=10.0.2.2<br />
Hostname=ubuntulinux.co.in</p>
<p>Then we restart the Zabbix agent:</p>
<p><strong>/etc/init.d/zabbix-agent restart</strong></p>
<p>Finally, we must specify the password of our zabbix MySQL user in  the Zabbix web interface configuration:</p>
<p><strong>vim /etc/zabbix/dbconfig.php</strong></p>
<p>$DB_TYPE=&#8217;MYSQL&#8217;;<br />
$DB_SERVER=&#8217;localhost&#8217;;<br />
$DB_DATABASE=&#8217;zabbix&#8217;;<br />
$DB_USER=&#8217;zabbix&#8217;;<br />
$DB_PASSWORD=&#8217;zabbixsqlpassword&#8217;;</p>
<p>That&#8217;s it. you can now open http://ubuntulinux.co.in/zabbix&gt; or  http://10.0.2.2/zabbix&gt; in a browser. Log in with the username Admin<br />
and no password:</p>
<p>If you have problems with Zabbix, please check the Zabbix logs:</p>
<p>* /var/log/zabbix-agent/zabbix_agentd.log<br />
* /var/log/zabbix-server/zabbix_server.log</p>
<p>The Zabbix configuration files for the server, agent, and web  interface are as follows:</p>
<p>* /etc/zabbix/apache.conf<br />
* /etc/zabbix/dbconfig.php<br />
* /etc/zabbix/zabbix_agentd.conf<br />
* /etc/zabbix/zabbix_server.conf</p>
<div><span style="font-family: Times New Roman; font-size: small;">Note: I got the error in  zabbix.pid file creation, then I have manualy created the zabbix.pid  file under the user home folder. Then edit the zabbix server and agent  configuration file.</span></div>
<p><span style="font-family: Times New Roman; font-size: small;"><strong>/etc/zabbix/zabbix_server.conf  and /etc/zabbix/zabbix_server.conf</strong></span></p>
<p>*  PidFile?=/home/ubuntulinux/zabbix/zabbix-server/zabbix_server.pid<br />
*  PidFile?=/home/ubuntulinux/zabbix/zabbix-agent/zabbix_agent.pid</p>
<div><span style="font-family: Times New Roman; font-size: small;"><strong>Install The Zabbix  Agent On nms.ubuntulinux.co.in</strong></span></div>
<div><span style="font-size: small;"> </span></div>
<p><span style="font-family: Times New Roman; font-size: small;">Let&#8217;s assume we have a second  server (nms.ubuntulinux.co.in,10.0.2.3) that we want to monitor. Of  course, we don&#8217;t have to install the Zabbix server or a MySQL database  on nms.ubuntulinux.co.in , because this is already installed on  ubuntulinux.co.in. All we have to do is install the Zabbix agent:</span></p>
<p><strong>apt-get install zabbix-agent</strong></p>
<p>Then we must edit the Zabbix agent configuration file  /etc/zabbix/zabbix_agentd.conf and put the IP address of our Zabbix  server in the Server line and specify the hostname of the current system  in the Hostname line:</p>
<p><strong>vim /etc/zabbix/zabbix_agentd.conf</strong><br />
Server=10.0.2.2<br />
Hostname=ubuntulinux.co.in</p>
<p>Afterwards, we restart the Zabbix agent:<br />
<strong><br />
/etc/init.d/zabbix-agent restart</strong></p>
<p>That&#8217;s it. You can now use the Zabbix web interface on the Zabbix  server to monitor nms.ubuntulinux.co.in.</p>
<p>If you have problems, you should check out the Zabbix agent log file  /var/log/zabbix-agent/zabbix_agentd.log.</p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntulinux.co.in/blog/ubuntu/nework-monitoring-system-zabbix-installation-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

