Ad Widget

Collapse

Centos 4.4 installation help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leiw
    Junior Member
    • Dec 2006
    • 15

    #16
    Anyone can help ?

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #17
      Perhaps you have DOS-style end of lines in the file?
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • leiw
        Junior Member
        • Dec 2006
        • 15

        #18
        This is default setting .

        Comment

        • pdwalker
          Senior Member
          • Dec 2005
          • 166

          #19
          Did you set up the zabbix database under mysql? If so, can you log into it using the username and password you have in the zabbix_server.conf file?

          Comment

          • leiw
            Junior Member
            • Dec 2006
            • 15

            #20
            Hi,

            I've edited zabbix_server.conf for mysql config, the website is blank when

            I open it:

            # This is config file for ZABBIX server process
            # To get more information about ZABBIX,
            # go http://www.zabbix.com

            ############ GENERAL PARAMETERS #################

            # This defines which server this is.
            # Default value 1
            # This parameter must be between 1 and 255
            Server=1

            # This defines unique NodeID in distributed setup,
            # Default value 0 (standalone server)
            # This parameter must be between 0 and 999
            #NodeID=0

            # Number of pre-forked instances of pollers
            # Default value is 6
            # This parameter must be between 5 and 255
            StartPollers=6

            # Number of pre-forked instances of trappers
            # Default value is 5
            # This parameter must be between 2 and 255
            StartTrappers=5

            # Listen port for trapping. Default port number is 10051. This parameter
            # must be between 1024 and 32767

            ListenPort=10051

            # How often ZABBIX will perform housekeeping procedure
            # (in hours)
            # Default value is 1 hour
            # Housekeeping is removing unnecessary information from
            # tables history, alert, and alarms
            # This parameter must be between 1 and 24

            HousekeepingFrequency=1

            # How often ZABBIX will try to send unsent alerts
            # (in seconds)
            # Default value is 30 seconds
            SenderFrequency=30

            Comment

            • pdwalker
              Senior Member
              • Dec 2005
              • 166

              #21
              Can you log in to mysql using the mysql client using the zabbix username and password to connect to the zabbix database you should have created?

              If, then put that information into

              1/ the zabbix_server.conf

              2/ the include/db.inc.php

              - Paul

              Comment

              • leiw
                Junior Member
                • Dec 2006
                • 15

                #22
                I don't use mysql client to connect database, the following infomation hope

                can help me.

                Thanks


                ###the include/db.inc.php###

                ?>
                <?php
                function DBconnect(&$error)
                {
                $result = true;

                global $DB, $DB_TYPE="MYSQL", $DB_SERVER="localhost", $DB_DATABASE="zabbix", $DB_USER="root", $DB_PASSWORD=1234";



                ###the zabbix_server.conf###

                mysql> show tables;
                +--------------------+
                | Tables_in_zabbix |
                +--------------------+
                | acknowledges |
                | actions |
                | alerts |
                | applications |
                | auditlog |
                | autoreg |
                | conditions |
                | config |
                | 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_templates |
                | housekeeper |
                | images |
                | items |
                | items_applications |
                | mappings |
                | media |
                | media_type |
                | node_cksum |
                | node_configlog |
                | nodes |
                | profiles |
                | rights |
                | screens |
                | screens_items |
                | service_alarms |
                | services |
                | services_links |
                | services_times |
                | sessions |
                | sysmaps |
                | sysmaps_elements |
                | sysmaps_links |
                | trends |
                | trigger_depends |
                | triggers |
                | users |
                | users_groups |
                | usrgrp |
                | valuemaps |
                +--------------------+
                55 rows in set (0.00 sec)

                mysql>

                Comment

                • pdwalker
                  Senior Member
                  • Dec 2005
                  • 166

                  #23
                  If you can connect to the mysql zabbix database with the username, password and hostname, then make sure that both your zabbix_server.conf and your db.inc.php have those details properly entered in. Once you have done so, it should work assuming everything else is set up properly.

                  - Paul

                  Comment

                  • leiw
                    Junior Member
                    • Dec 2006
                    • 15

                    #24
                    I should edit which line in db.inc.php ? there have many line so I very perplex.

                    Thanks

                    Comment

                    • pdwalker
                      Senior Member
                      • Dec 2005
                      • 166

                      #25
                      Look for the line:
                      Code:
                      // DATABASE CONFIGURATION
                      Do not modify anything after this line:
                      Code:
                      // END OF DATABASE CONFIGURATION
                      - Paul

                      Comment

                      • leiw
                        Junior Member
                        • Dec 2006
                        • 15

                        #26
                        Do not have those two line in db.inc.php ... my zabbix is 1.3 version

                        Comment

                        • pdwalker
                          Senior Member
                          • Dec 2005
                          • 166

                          #27
                          Given your current state of knowledge, I'd strongly recommend you switch to 1.1.4 instead.

                          1.3 is a beta, or testing version. It'd be wiser to stick with a more stable and well known version unless you are doing it to learn something.

                          - Paul

                          Comment

                          • leiw
                            Junior Member
                            • Dec 2006
                            • 15

                            #28
                            Ok, I using 1.1.4 instead and now can goto login screen, I just want monitor

                            one server network traffic that is installed zabbix, what step I need to do ?

                            please give me some simply example.


                            Thanks
                            Last edited by leiw; 23-12-2006, 04:51.

                            Comment

                            • pdwalker
                              Senior Member
                              • Dec 2005
                              • 166

                              #29
                              you need to read the zabbix documentation and follow the instructions from there.

                              http://www.zabbix.com/manual/v1.1/

                              Comment

                              Working...