Monitoring Server using Zabbix in Ubuntu


Zabbix is open sources application for monitoring our server, before installing zabbix, there are some packages that must be installed first :



• apache2
• libapache2-mod-php5
• php5
• php5-gd
• php5-mysql
• php5-cli
• php5-snmp
• mysql-server

after you have insalled that packages, now just install zabbix using command :

$ sudo su
$ apt-get install zabbix-agent zabbix-fronted-php zabbix-mysql

Creating a database connection

$ mysql –u (username) -p
password:
$ mysql> create database zabbix;
$ mysql> quit;

Copy zabbix configuration to mysql

$ cd /usr/share/zabbix-server
$ cat schema.sql
| mysql –u (username) -p zabbix
$ cat data.sql
| mysql –u (username) -p zabbix

Configure /etc/services

$ zabbix_agent 10050/tcp
$ zabbix_trap 10051/tcp


Configure /etc/inetd.conf

$ zabbix_agent stream tcp nowait.3600 zabbix \ /opt/zabbix/bin/zabbix_agent

Run zabbix-server by type :

$ /etc/init.d/zabbix-server start

Check /var/log/zabbix-server

$ /var/log/zabbix-server/zabbix-server.log

Configuration with php
change the configuration from /etc/zabbix/dbconfig.php by type :

$ gedit /etc/zabbix/dbconfig.php
 
$DB_TYPE=’MYSQL’; ? type of database
$DB_SERVER=’localhost’; ? database server name
$DB_DATABASE=’zabbix’; ? database name
$DB_USER=’root’; ?  database username
$DB_PASSWORD=’syafur’; ? database password
?>

Copy to folder /etc/zabbix ke /var/www by command :

$ cp –R /etc/zabbix /var/www

check and make sure mysql-server, apache2 and  zabbix-server is running and check zabbix url in your browser by type http://localhost/zabbix in your browser address bar.

Configuring zabbix on web interface

We must login and change the permision to read & write, then go to the link configuration

Create a new group
Configuration -> Hosts -> (Choose) Host Groups -> Create Group
Then enter the name of the group that will be monitored for example: router
Then create a template

Configuration -> Hosts -> (Choose) Templates -> Create Template
Then enter the template name for example: add to the group kondisi.router router
Make items to be observed

Configuration -> Items -> (Choose) Router (Template) -> New Item
Then give the name of the item for example observed Memory_usage

Finish, and you will see the results
Happy Testing......!!!

13 comments:

  1. Hello, I enjoy reading all of your article post. I wanted
    to write a little comment to support you.
    My website > healthy weight loss Miami

    ReplyDelete
  2. Amazing! This blog looks exactly like my old one!
    It's on a totally different subject but it has pretty much the same layout and design. Superb choice of colors!

    Also visit my web page: gw2 gold

    ReplyDelete
  3. Hello there, There's no doubt that your website may be having internet browser compatibility issues. When I take a look at your blog in Safari, it looks fine but when opening in IE, it's got some overlapping issues.
    I merely wanted to give you a quick heads up! Other
    than that, wonderful blog!

    Here is my web site - HCG diet

    ReplyDelete
  4. Awesome article.

    my homepage: www.xxxmoviegalls.com

    ReplyDelete
  5. Hi there everyone, it's my first visit at this site, and article is truly fruitful designed for me, keep up posting such posts.

    my web-site: free cfnm fever

    ReplyDelete
  6. What you posted made a bunch of sense. However, what about
    this? suppose you added a little information? I mean, I
    don't want to tell you how to run your blog, however what if you added something to possibly get folk's attention?

    I mean "Monitoring Server using Zabbix in Ubuntu" is kinda plain.
    You could glance at Yahoo's front page and watch how they write article titles to get people to click. You might add a video or a picture or two to get readers interested about what you've written.

    In my opinion, it could bring your posts a little bit more interesting.


    Have a look at my homepage ... Free Teen Porno

    ReplyDelete
  7. Heya this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I'm starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

    Look into my weblog get long xxx sex movie (videoishere.com)

    ReplyDelete
  8. The sneakers come in different colors and are rather
    elegant. The sneakers are great for running and
    for any action each and every day. This makes these sneakers the best support for the busy and exceptional lifestyle.


    Feel free to surf to my web page ... nike free 3.0 v4 danmark

    ReplyDelete
  9. I have been browsing online more than 4 hours today, yet I never found any interesting
    article like yours. It is pretty worth enough for me. In my view, if all website owners and
    bloggers made good content as you did, the nnet will be a lot mor useful thann ever before.


    Feel free to visit my site world at arms hack tool

    ReplyDelete
  10. It is not my first time to go to see this site, i am browsing this web page dailly and take fastidious data from here daily.


    my weblog; livejasmine

    ReplyDelete
  11. Hello Everybody,
    My name is Mrs Sharon Sim. I live in singapore and i am a happy woman today? and i told my self that any lender that rescue my family from our poor situation, i will refer any person that is looking for loan to him, he gave me happiness to me and my family, i was in need of a loan of S$250,000.00 to start my life all over as i am a single mother with 3 kids I met this honest and GOD fearing man loan lender that help me with a loan of S$250,000.00 SG. Dollar, he is a GOD fearing man, if you are in need of loan and you will pay back the loan please contact him tell him that is Mrs Sharon, that refer you to him. contact Dr Purva Pius,via email:(urgentloan22@gmail.com) +918376918351 Thank you.

    ReplyDelete

Please Comment...!!