Ad Widget

Collapse

Centos 4.4 installation help

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

    #1

    Centos 4.4 installation help

    I typed ./configure --prefix=/usr --with-mysql --with-net-snmp \
    --enable-server --enable-agent for compiling, during compiling has
    error:

    configure: error: Invalid NET-SNMP directory - unable to find net-snmp-includes.h

    I have installed net-snmp

    rpm -qa | grep snmp
    net-snmp-libs-5.1.2-11.EL4.7
    net-snmp-5.1.2-11.EL4.7

    How can fix this problem ?


    Thanks !!
  • SharkCZ
    Member
    • Apr 2006
    • 39

    #2
    You must install net-snmp-devel package which contains the header files. You could also rebuild a rpm package originaly for Fedora which is already in Fedora Extras repository.

    Comment

    • leiw
      Junior Member
      • Dec 2006
      • 15

      #3
      I have another problem:

      [root@chris bin]# service zabbix_suckerd start
      Starting zabbix_suckerd: -bash: /usr/local/zabbix/bin/zabbix_suckerd: No such file or directory
      [FAILED]
      [root@chris bin]# service zabbix_trapperd start
      Starting zabbix_trapperd: -bash: /usr/local/zabbix/bin/zabbix_trapperd: No such file or directory
      [FAILED]

      I copies the bin directory in tarball to /usr/local/zabbix, but still have this problem.


      Thanks !!

      Comment

      • pdwalker
        Senior Member
        • Dec 2005
        • 166

        #4
        Originally posted by leiw
        I copies the bin directory in tarball to /usr/local/zabbix, but still have this problem.
        Are you installing from sources?

        If so, the correct procedure is

        1/ run the 'configure' command with the options you want

        2/ run 'make' to compile the program

        3/ run 'make install' to install the program into the correct directories.

        Comment

        • leiw
          Junior Member
          • Dec 2006
          • 15

          #5
          Yes, installing from sources.

          But I don't know what is zabbix_agent ?

          I also following URLs for installation,

          http://www.zabbix.com/manual/v1.1/in...rce_server.php



          so I don't which one is correctly, I just type

          ./configure --enable-server --with-mysql --with-net-snmp --prefix=/usr/local/zabbix

          and then I don't know how to configure on next step
          Last edited by leiw; 10-12-2006, 09:22.

          Comment

          • pdwalker
            Senior Member
            • Dec 2005
            • 166

            #6
            Originally posted by leiw
            Yes, installing from sources.

            But I don't know what is zabbix_agent ?

            I also following URLs for installation,

            http://www.zabbix.com/manual/v1.1/in...rce_server.php



            so I don't which one is correctly, I just type

            ./configure --enable-server --with-mysql --with-net-snmp --prefix=/usr/local/zabbix

            and then I don't know how to configure on next step
            Originally posted by pdwalker
            1/ run the 'configure' command with the options you want

            2/ run 'make' to compile the program

            3/ run 'make install' to install the program into the correct directories.
            So, you've done step 1, now do step 2 and step 3.


            That'd be

            % make
            % make install


            - Paul

            Comment

            • leiw
              Junior Member
              • Dec 2006
              • 15

              #7
              To pdwalker,

              First, Thanks for your help,

              The step 2 and 3 already done, so I installed the zabbix to

              /usr/local/zabbix, I saw the /usr/local/zabbix/bin/zabbix_server, so can

              I start zabbix from this one ?

              I cannot see the zabbix_agent, I need start the zabbix_agent too?

              how can show the web-interface ?


              Thanks !!!
              Last edited by leiw; 11-12-2006, 01:42.

              Comment

              • pdwalker
                Senior Member
                • Dec 2005
                • 166

                #8
                Sorry, I just checked to see how I did configure

                ./configure --prefix=/usr/local/site/zabbix --enable-server --enable-agent --with-mysql=/usr/local/site/mysql

                So, you need to add the --enable-agent parameter to step 1 and redoing the steps 2 and 3.

                You should find the agent then.

                - Paul

                Comment

                • leiw
                  Junior Member
                  • Dec 2006
                  • 15

                  #9
                  Sorry, can you teach me what is the agent for ? and now I installed

                  the agent again with ./configure, what should I do on next step ?


                  Thanks !!!

                  Comment

                  • pdwalker
                    Senior Member
                    • Dec 2005
                    • 166

                    #10
                    It really sounds like you need to read the documentation.

                    The agent is the program that you run on remote machines in order to monitor them.

                    Depending on what you want to monitor, you may not even need it. If you want to monitor your own custom parameters, you will definitely need it.

                    - Paul

                    Comment

                    • leiw
                      Junior Member
                      • Dec 2006
                      • 15

                      #11
                      It there can use web-interface to monitor server ? becuase my server

                      in datacentre and just want only to monitor my server.

                      If yes, where is the web file and how to setup on apache ?


                      Thanks

                      Comment

                      • pdwalker
                        Senior Member
                        • Dec 2005
                        • 166

                        #12
                        To setup apache, please read the apache documentation and follow the instructions. You can get the software and documentation from http://httpd.apache.org/

                        You will need to install php to work with apache. You can get the software and installation instructions from http://www.php.net/

                        Once you have that installed and working, you will need to install the zabbix web interface. See the zabbix documentation for details: http://www.zabbix.com/manual/v1.1/in...source_web.php

                        Once you have this installed and working, you can enable some of the simple checks to monitor your server in the data center, or more complex checks if you use the zabbix agent on your server in the data center. See the zabbix documentation for details: http://www.zabbix.com/manual/v1.1/

                        - Paul

                        Comment

                        • leiw
                          Junior Member
                          • Dec 2006
                          • 15

                          #13
                          I have some questions during installing, sorry that have many questions

                          1. The following is include/db.inc.php but I don't know the syntax is wong or not :

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

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

                          2. When I installing web-interface its said PHP max execution time: 30 sec Fail so I cannaot goto next step.

                          3. When I start the ./zabbix_server have following error:

                          [root@chris bin]# ./zabbix_server
                          ./zabbix_server [24812]: Wrong value of [StartPollers] in line 20.
                          ./zabbix_server [24812]: ERROR: DBName not in config file

                          Comment

                          • jeff.showers
                            Junior Member
                            • Aug 2006
                            • 18

                            #14
                            Zabbix_server is complaining about your configuration options in the zabbix_server.conf file. Can you copy and paste that up for us to help you with?

                            Comment

                            • leiw
                              Junior Member
                              • Dec 2006
                              • 15

                              #15
                              Hi jeff.showers, thank for your reply,

                              I didn't edit the zabbix_server.conf, can you tell me which one required to

                              edit in zabbix_server ?

                              # 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

                              # Uncomment this line to disable housekeeping procedure

                              #DisableHousekeeping=1

                              # Specifies debug level
                              # 0 - debug is not created
                              # 1 - critical information
                              # 2 - error information
                              # 3 - warnings (default)
                              # 4 - for debugging (produces lots of information)

                              DebugLevel=3

                              # Specifies how long we wait for agent (in sec)
                              # Must be between 1 and 30
                              Timeout=5

                              # After how many seconds of unreachability treat a host as unavailable
                              #UnreachablePeriod=45

                              # How ofter check host for availability during the unreachability period
                              #UnavailableDelay=15

                              # How ofter check host for availability during the unavailability period
                              #UnavailableDelay=60

                              # Name of PID file

                              PidFile=/var/tmp/zabbix_server.pid

                              # Name of log file
                              # If not set, syslog is used

                              LogFile=/tmp/zabbix_server.log

                              #Location for custom alert scripts
                              AlertScriptsPath=/home/zabbix/bin/

                              #Location of 'fping. Default is /usr/sbin/fping
                              #FpingLocation=/usr/sbin/fping

                              # Frequency of ICMP pings. Defauls is 30 second.
                              #PingerFrequency=30

                              # Database host name
                              # Default is localhost

                              #DBHost=localhost

                              # Database name

                              DBName=zabbix

                              # Database user

                              DBUser=root

                              # Database password
                              # Comment this line if no password used

                              #DBPassword=<password>

                              # Connect to MySQL using Unix socket?

                              #DBSocket=/tmp/mysql.sock

                              Comment

                              Working...