Ad Widget

Collapse

First Time Zabbix install not going to plan

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kristiaan_d
    Junior Member
    • May 2009
    • 15

    #1

    First Time Zabbix install not going to plan

    Hi Guy,
    wondering if someone can help me, i was pointed in this direction as i was trying to use Nagios but its a pig to configure and get working if your a newbie to linux like myself.

    anyway, heres the setup, i have a Brand new clean installation of Ubuntu 9.04 server, there is NOTHING installed on it except the real basic core and OpenSSH.

    I have apt-get'ted the following

    mysql-server
    Apache2
    Build-essential
    libmysqlclient15-dev

    not sure what else i should install ( i know the manual lists it but i have no clue where to get it from or how to configure it)...

    I downloaded the latest version of Zabbix from sourceforge using Wget 1.6.4 i believe, followed the manual right up-to the point where it asks me to-do

    ./Zabbix_Server to start the system.

    a couple of things i have noticed is that the default location that was mentioned for the zabbix_server script is incorrect for me as in the doc it mentioned

    Code:
    shell> cd bin
    shell> ./zabbix_server
    this just returns the following error.
    -bash: ./zabbix_server: No Such File or Directory.

    i eventually tracked it down to /usr/local/sbin/zabbix_server

    running the command ./zabbix_server just returns a prompt there is no warnings or errors or indication that it ran ok.

    went to check /var/log/zabbix_server.log and found that to be missing as well.

    bit of investigation again and it turned out to be storing the file in /tmp/zabbix_server.log

    this is what is contained in the log

    starting zabbix_server zabbix 1.6.4
    enabled features
    SNMP monitoring : no
    WEB Monitoring : no
    jabber : no
    ODBC : no
    IPV6 : no

    [z3001] connection to database 'zabbix' failed: [1045] Access denied for user root@localhost (using password : NO)

    whats going on with my installation as i cannot find half the files that are mentioned in the manul or on the board. the only conf files i can find are in the folder i untared and in a folder i created

    any help would be great as i am really eager to get away from Nagios.

    thanks
    Kris
  • rue
    Member
    Zabbix Certified Specialist
    • May 2006
    • 43

    #2
    Hi kristiaan,

    welcome to the forum. Actually you didn't do to bad in configuring/installing zabbix for the first time, especially, if you are not really acquainted to linux/unix.

    About your error:

    Code:
    [z3001] connection to database 'zabbix' failed: [1045] Access denied for user root@localhost (using password : NO)
    Well, you started the server correctly, but it needs access to a database in order to do something useful. Did you modify zabbix_server.conf to match your db-setup? Did you already create the zabbix database? (s.a. zabbix manual)

    cheers

    RĂ¼

    Comment

    • kristiaan_d
      Junior Member
      • May 2009
      • 15

      #3
      Hi Rue,
      thanks for the reply, the database is setup and running as per the config instructions, heres the show databases command.

      Code:
      mysql> show databases
          -> ;
      +--------------------+
      | Database           |
      +--------------------+
      | information_schema |
      | mysql              |
      | zabbix             |
      +--------------------+
      3 rows in set (0.00 sec)
      Code:
      +-----------------------+
      | Tables_in_zabbix      |
      +-----------------------+
      | acknowledges          |
      | actions               |
      | alerts                |
      | applications          |
      | auditlog              |
      | conditions            |
      | config                |
      | dchecks               |
      | dhosts                |
      | drules                |
      | dservices             |
      | escalations           |
      | events                |
      | functions             |
      | graphs                |
      | graphs_items          |
      | groups                |
      | help_items            |
      | history               |
      | history_log           |
      | history_str           |
      | history_str_sync      |
      | history_sync          |
      | history_text          |
      | history_uint          |
      | history_uint_sync     |
      | hosts                 |
      | hosts_groups          |
      | hosts_profiles        |
      | hosts_profiles_ext    |
      | hosts_templates       |
      | housekeeper           |
      | httpstep              |
      | httpstepitem          |
      | httptest              |
      | httptestitem          |
      | ids                   |
      | images                |
      | items                 |
      | items_applications    |
      | mappings              |
      | media                 |
      | media_type            |
      | node_cksum            |
      | nodes                 |
      | opconditions          |
      | operations            |
      | profiles              |
      | proxy_dhistory        |
      | proxy_history         |
      | rights                |
      | screens               |
      | screens_items         |
      | scripts               |
      | service_alarms        |
      | services              |
      | services_links        |
      | services_times        |
      | sessions              |
      | slides                |
      | slideshows            |
      | sysmaps               |
      | sysmaps_elements      |
      | sysmaps_link_triggers |
      | sysmaps_links         |
      | trends                |
      | trends_uint           |
      | trigger_depends       |
      | triggers              |
      | users                 |
      | users_groups          |
      | usrgrp                |
      | valuemaps             |
      +-----------------------+
      73 rows in set (0.00 sec)
      the only zabbix_server.conf file i can find is in the folder that i untar'ed from the downloaded tar file.

      i removed the # from infront of the password option in this file, and entered the password for the mysql root user, it now seems to start ok i am getting a lot more positive info in the log file..

      Code:
      30872:20090520:083827 **** Enabled features ****
       30872:20090520:083827 SNMP monitoring:        NO
       30872:20090520:083827 WEB monitoring:         NO
       30872:20090520:083827 Jabber notifications:   NO
       30872:20090520:083827 ODBC:                   NO
       30872:20090520:083827 IPv6 support:           NO
       30872:20090520:083827 **************************
       30873:20090520:083827 server #1 started [Poller. SNMP: NO]
       30874:20090520:083827 server #2 started [Poller. SNMP: NO]
       30876:20090520:083827 server #3 started [Poller. SNMP: NO]
       30878:20090520:083827 server #4 started [Poller. SNMP: NO]
       30879:20090520:083827 server #5 started [Poller. SNMP: NO]
       30881:20090520:083827 server #6 started [Trapper]
       30883:20090520:083827 server #7 started [Trapper]
       30885:20090520:083827 server #8 started [Trapper]
       30887:20090520:083827 server #9 started [Trapper]
       30889:20090520:083827 server #10 started [Trapper]
       30891:20090520:083827 server #11 started [ICMP pinger]
       30893:20090520:083827 server #12 started [Alerter]
       30895:20090520:083827 server #13 started [Housekeeper]
       30895:20090520:083827 Executing housekeeper
       30897:20090520:083827 server #14 started [Timer]
       30899:20090520:083827 server #15 started [Poller for unreachable hosts. SNMP: NO]
       30901:20090520:083827 server #16 started [Node watcher. Node ID:0]
       30903:20090520:083827 server #17 started [Discoverer. SNMP: NO]
       30904:20090520:083827 server #18 started [Escalator]
       30872:20090520:083827 server #0 started [Watchdog]
       30872:20090520:083827 In main_watchdog_loop()
       30895:20090520:083834 Deleted 0 records from history and trends
       30895:20090520:093934 Executing housekeeper
       30895:20090520:093941 Deleted 0 records from history and trends
       30895:20090520:104041 Executing housekeeper
       30895:20090520:104049 Deleted 0 records from history and trends
      however when i goto the IP address of the server in a browser http://10.0.0.192/

      all i get is the apache IT WORKS page.

      Comment

      • swaterhouse
        Senior Member
        • Apr 2006
        • 268

        #4
        If you followed the manual you probably should go to http://10.0.0.192/zabbix

        hmmm scratch that - I dont see that step in the manual!!!!!!

        You need to copy the frontend files to your web server folder (you may have to change this to match you location)

        from the source directory (i.e. zabbix-1.6.4)

        mkdir /var/www/html/zabbix
        cp -Rf frontends/php/* /var/www/html/zabbix

        then point your browser to http://10.0.0.192/zabbix

        Comment

        • kristiaan_d
          Junior Member
          • May 2009
          • 15

          #5
          Hi swaterhouse,
          done and and it brought up the interface for Zabbix, however its showing quite a few FAIL's next to things and i am not really sure how to resolve these.

          PHP version: 5.2.6-3ubuntu4.1 Ok
          PHP Memory limit: 16M Ok
          PHP post max size: 8M Ok
          PHP max execution time: 30 sec Fail
          PHP Databases support: No Fail
          PHP BC math support yes Ok
          GD Version: No Fail
          Image formats: No Fail
          PHP Timezone: n/a Fail


          Anyone have some good suggestions or hints on what needs to be done.

          Something that would have really helped is a quickstart guide for zabbix that talks you through a complete installation including any dependancies on a fresh install, because as mentioned i am fairly clueless with linux at the moment but would really want to use this system

          thanks
          kris

          Comment

          • kristiaan_d
            Junior Member
            • May 2009
            • 15

            #6
            Never mind, i fixed that bit all are now green OK's

            Comment

            • kristiaan_d
              Junior Member
              • May 2009
              • 15

              #7
              Hi Again, something that i have noticed which is concerning me abit. the manual keeps refering to this location for the config files.

              /etc/zabbix/

              i have checked this folder on my server and it does not exist. i take it when the manual refers to something like this directory its taken as read its from the root of the drive??

              i want to get some windows hosts setup and running but i cannot find the agent config files so i have no idea how they should be configured...

              Also if someone could pass the message on-to someone who can sort this problem but it appears as though the manual listed here.

              http://www.zabbix.com/documentation.php does not seem to match the software interms of the installation/ setup or config. it refers to folders and files that do not seem to exist...

              Comment

              • sbarnett
                Member
                • Mar 2009
                • 35

                #8
                Hi kristiaan_d,

                I used these instrcutions for my install and it worked like a charm. A little less confusing. I also am a newbie and believe me this forum is a life saver for other configs. Hope this helps.


                http://www.zabbix.com/wiki/doku.php?...:ubuntuinstall

                Comment

                • kristiaan_d
                  Junior Member
                  • May 2009
                  • 15

                  #9
                  Originally posted by sbarnett
                  Hi kristiaan_d,

                  I used these instrcutions for my install and it worked like a charm. A little less confusing. I also am a newbie and believe me this forum is a life saver for other configs. Hope this helps.


                  http://www.zabbix.com/wiki/doku.php?...:ubuntuinstall
                  Hi mate,
                  firstly thanks for the reply, secondly OMG this is exactly what i wanted and pretty much everything i have had to-do via the manual or google or read on here to-do.

                  Saving a copy of this little fella as its gonna come in handy tomorrow when i re-install zabbix and get it right first time

                  thanks for the help with this really REALLY appreciate it.

                  Comment

                  • freakscene
                    Junior Member
                    • May 2009
                    • 1

                    #10
                    thanks for all the information in this thread.

                    using apt-get in installed everything just fine on Ubuntu, and the package even set up the my-sql database during the install. rather sweet.

                    what was missing from the doc's was creating the /home/zabbix, subdirectories, and few other goodies to get to the URL.

                    also, even after getting everything installed and running, i was unable to log in. i remember my old zabbix install the default was admin with no password, and having tried that and the few accounts i created during install, nothing worked. that was pretty frustrating.

                    about the only piece of information missing from this thread is for new installs having problems is to try using user/pass:

                    admin
                    zabbix

                    - fs

                    Comment

                    Working...