Ad Widget

Collapse

red hat 4 es client zabbix-agent?,

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mika2006
    Junior Member
    • May 2007
    • 15

    #1

    red hat 4 es client zabbix-agent?,

    Hello i m looking for the zabbix agent to red hat 4es
    i don't find him
    and please where to find him and
    how to install it?
  • amadriga
    Junior Member
    • Apr 2007
    • 20

    #2
    I download the sources and compiled in RH AS 4 with no problem (agent and server) I just follow the steps in this doc http://icenetx.net/sesiones/tutos/manual_zabbix.pdf

    Only thing it's in spanish.

    What agent version are u looking for?

    Comment

    • mika2006
      Junior Member
      • May 2007
      • 15

      #3
      it s my first test with zabbix
      any version work?

      i have this machine
      redhat 4 es
      redhat 3 es
      Windows 2003
      Windows 2000
      Up-ux 11.11
      and i hope zabbix was good to systeme supervision


      Zabbix will install on redhat4es and i superviseur other mahine
      but i m looking zabbix-agent for this machine
      spanich french no problem only with dutch and other idiomas!
      Last edited by mika2006; 10-05-2007, 16:51.

      Comment

      • mika2006
        Junior Member
        • May 2007
        • 15

        #4
        well thanks for the tuto but don't work
        i have this:

        root@localhost zabbix-1.1.7]# ./configure --enable-agent
        checking for a BSD-compatible install... /usr/bin/install -c
        checking whether build environment is sane... yes
        checking for gawk... gawk
        checking whether make sets $(MAKE)... yes
        configure: Configuring
        checking whether make sets $(MAKE)... (cached) yes
        checking build system type... i686-pc-linux-gnu
        checking host system type... i686-pc-linux-gnu
        checking for gcc... no
        checking for cc... no
        checking for cc... no
        checking for cl... no
        configure: error: no acceptable C compiler found in $PATH
        See `config.log' for more details.
        [root@localhost zabbix-1.1.7]# make
        make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt.
        [root@localhost zabbix-1.1.7]# make install
        make: *** Pas de règle pour fabriquer la cible « install ». Arrêt.
        [root@localhost zabbix-1.1.7]#
        someone canhelpme please?

        Comment

        • amadriga
          Junior Member
          • Apr 2007
          • 20

          #5
          Je ne pas parlez francois but it seems that you do not have any C compiler installed!! Tou have to install the necessary C packages on your linux.

          And if that same machine will be your server you have to configure with --enable-server and --enable-agent and get both things done at the end.

          Comment

          • mika2006
            Junior Member
            • May 2007
            • 15

            #6
            i want only agent on this UbuntuServer

            Zabbix serveur is an other computer
            thanks i will try to instal what you says.
            Sorry to my English

            Comment

            • amadriga
              Junior Member
              • Apr 2007
              • 20

              #7
              Originally posted by mika2006
              i want only agent on this UbuntuServer

              Zabbix serveur is an other computer
              thanks i will try to instal what you says.
              Sorry to my English
              Don't worry I don't speak it too, I speak español!!

              Comment

              • mika2006
                Junior Member
                • May 2007
                • 15

                #8
                don' t work
                i install like the tuto but nothing:
                i want only the agent on my red hat 4 es
                In first i install this prerequis:
                snmp gcc
                $up2date -i net-snmp net-snmp-utils net-snmp-libs gcc
                i créate a user i used the gnome interface beacaus useradd don't work on red hat

                login: zabbix
                pass: zabbix
                download and extract Zabbix:
                # cd /home/zabbix
                #wget http://puzzle.dl.sourceforge.net/sou...x-1.1.7.tar.gz
                # tar xvzf zabbix1.1.7.tar.gz
                #cd zabbix-1.1.7
                install agent:
                # ./configure --enable-agent
                # make
                creat directory to file configuration:
                #mkdir /etc/zabbix
                Copy config files:
                # cp misc/conf/* /etc/zabbix/
                Configuration of the agent :
                Edit files and write this in files:
                #nano /etc/services
                zabbix_agent 10050/tcp
                zabbix_trap 10051/tcp
                I precise for this files i created because don't exist
                #nano /etc/inetd.conf
                zabbix_agent stream tcp nowait.3600 zabbix /opt/zabbix/bin/zabbix_agent
                restart the agent:
                #/etc/init.d/inetd restart
                This don' work i have this message
                [root@localhost /]# /etc/init.d/inetd restartbash: /etc/init.d/inetd: Aucun fichier ou répertoire de ce type

                the last config files:
                /etc/zabbix/zabbix_agent.conf
                Server=xxx.0.xxx.xx
                Timeout=3
                /etc/zabbix/zabbix_agentd.conf
                # This is config file for zabbix_agentd
                # To get more information about ZABBIX, go http://www.zabbix.com

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

                # List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
                # No spaces allowed. First entry is used for sending active checks.
                # Note that hostnames must resolve hostname->IP address and
                # IP address->hostname.

                Server=xxx.x.xx.xxx

                # Server port for sending active checks

                #ServerPort=10051

                # Unique hostname. Required for active checks.

                Hostname=localhost

                # Listen port. Default is 10050
                #ListenPort=10050

                # IP address to bind agent
                # If missing, bind to all available IPs

                #ListenIP=127.0.0.1

                # Number of pre-forked instances of zabbix_agentd.
                # Default value is 5
                # This parameter must be between 1 and 16

                StartAgents=5

                # How often refresh list of active checks. 2 minutes by default.

                #RefreshActiveChecks=120

                # Disable active checks. The agent will work in passive mode listening server.

                #DisableActive=1

                # Enable remote commands for ZABBIX agent. By default remote commands disabled.
                #EnableRemoteCommands=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

                # Name of PID file

                PidFile=/var/tmp/zabbix_agentd.pid

                # Name of log file.
                # If not set, syslog will be used

                LogFile=/tmp/zabbix_agentd.log

                # Spend no more than Timeout seconds on processing
                # Spend no more than Timeout seconds on processing
                # Must be between 1 and 30

                Timeout=3

                ####### USER-DEFINED MONITORED PARAMETERS #######
                # Format: UserParameter=<key>,<shell command>
                # Note that shell command must not return empty string or EOL only
                #UserParameter=system.test,who|wc -l
                ### Set of parameter for monitoring MySQL server (v3.23.42 and later)
                ### Change -u<username> and add -p<password> if required
                #UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
                #UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
                #UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q
                "
                #UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d
                "S"
                #UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1
                -d"O"
                #UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
                #UserParameter=mysql.version,mysql -V
                I lunch:
                #zabbix_agentd

                and when i look the log files i have this:

                [root@localhost /]# more /tmp/zabbix_agentd.log
                020227:20070510:123108 zabbix_agentd started. ZABBIX 1.1.7.
                020228:20070510:123108 zabbix_agentd 20228 started
                020229:20070510:123108 zabbix_agentd 20229 started
                020230:20070510:123108 zabbix_agentd 20230 started
                020231:20070510:123108 zabbix_agentd 20231 started
                020232:20070510:123108 zabbix_agentd 20232 started
                020232:20070510:123108 Cannot connect to [127.0.0.1:10051] [Connection refused]
                020232:20070510:123108 Getting list of active checks failed. Will retry after 60
                seconds
                020232:20070510:123208 Cannot connect to [127.0.0.1:10051] [Connection refused]
                020232:20070510:123208 Getting list of active checks failed. Will retry after 60
                seconds
                020232:20070510:123308 Cannot connect to [127.0.0.1:10051] [Connection refused]
                020232:20070510:123308 Getting list of active checks failed. Will retry after 60
                seconds
                020232:20070510:123408 Cannot connect to [127.0.0.1:10051] [Connection refused]
                020232:20070510:123408 Getting list of active checks failed. Will retry after 60
                seconds
                020232:20070510:123508 Cannot connect to [127.0.0.1:10051] [Connection refused]
                020232:20070510:123508 Getting list of active checks failed. Will retry after 60
                seconds
                020232:20070510:123608 Cannot connect to [127.0.0.1:10051] [Connection refused]
                please someone can help me and tell me what is wrong please?
                Last edited by mika2006; 11-05-2007, 17:20.

                Comment

                • amadriga
                  Junior Member
                  • Apr 2007
                  • 20

                  #9
                  Did you put the IP address of the server in tehe zabbix_agentd.conf? IUs the server running?

                  Comment

                  • mika2006
                    Junior Member
                    • May 2007
                    • 15

                    #10
                    ye si put the ip adress serveur on zabbix_agentd.conf an zabbix_agent.conf

                    but i think i can make this command :
                    /etc/init.d/inetd restart
                    i restart the computer but no change zabbix don't comunicate with my client machine

                    Comment

                    • amadriga
                      Junior Member
                      • Apr 2007
                      • 20

                      #11
                      Can you put tour zabbix_agentd.conf file here.

                      It seems that the agent is trying to connect to himself! (127.0.0.1 is the local address and 10051 is the agent port).

                      Comment

                      • mika2006
                        Junior Member
                        • May 2007
                        • 15

                        #12
                        well i have probléme at this step:
                        restart the agent:
                        #/etc/init.d/inetd restart
                        i have this on my redhat 4es :
                        [root@localhost /]# /etc/init.d/inetd restart
                        bash: /etc/init.d/inetd: Aucun fichier ou répertoire de ce type
                        what is this files please and i need to creat it or not?

                        Comment

                        • amadriga
                          Junior Member
                          • Apr 2007
                          • 20

                          #13
                          Originally posted by mika2006
                          well i have probléme at this step:

                          i have this on my redhat 4es :


                          what is this files please and i need to creat it or not?
                          In your case, that's not absolutely necessary, it is just to automate the start and stop of the agent.

                          First you have to get your agent running right. And by the logs it cannot connect to the server.

                          Comment

                          • mika2006
                            Junior Member
                            • May 2007
                            • 15

                            #14
                            Installation d'un client zabbix sur Redaht4es

                            # 1. Create the ZABBIX account and unzip zabbix
                            Donc je sais pas comment on fais sous red hat pour créer un nouveau compte en ligne de commande mais en graphique sa donne ceci:

                            login: zabbix
                            pass:zabbix
                            # Untar ZABBIX sources.
                            on récupére le fichier et on dézippe:

                            #wget http://puzzle.dl.sourceforge.net/sou...x-1.1.7.tar.gz
                            # tar xvzf zabbix-1.1.7.tar.gz
                            #cd zabbix-1.1.7

                            # 2. Configuration et compilation du source code:


                            #cd zabbix-1.1.7
                            #./configure --enable-agent
                            # 3. Build agent:

                            # make
                            # make install
                            Créer des repertoire pour les exécutables ( je crois je suis pas sur):
                            # mkdir /etc/zabbix
                            # mkdir /etc/zabbix/bin
                            Copy created binaries from bin/ to /etc/zabbix/bin
                            #cp bin/ /etc/zabbix/bin
                            #cp misc/conf/* /etc/zabbix/

                            # 4. Configure /etc/services

                            The step is not real requirement. However, it is recommended.

                            On the client (monitored) machines, add the following lines to /etc/services:

                            zabbix_agent 10050/tcp
                            zabbix_trap 10051/tcp

                            # 5. Configure /etc/inetd.conf

                            If you plan to use zabbix_agent instead of the recommended zabbix_agentd, the following line must be added:

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

                            Restart inetd

                            shell> killall -HUP inetd

                            # 6. Configure /etc/zabbix/zabbix_agent.conf

                            You need to configure this file for every host having zabbix_agent installed. The file should contain IP address of ZABBIX server. Connections from other hosts will be denied. Note, that no end of line character should present in the file.

                            You may take misc/conf/zabbix_agent.conf as example.

                            # 7. Configure /etc/zabbix/zabbix_agentd.conf

                            You need to configure this file for every host with zabbix_agentd installed. The file should contain IP address of ZABBIX server. Connections from other hosts will be denied. You may take misc/conf/zabbix_agentd.conf as example.

                            # 8. Run zabbix_agentd on all monitored machines

                            shell> /opt/zabbix/bin/zabbix_agentd

                            Note that you should not run zabbix_agentd if you have chosen to use zabbix_agent!


                            Pour voir le log si il y a des probléme
                            more /tmp/zabbbix_agentd.log

                            good luck!
                            Last edited by mika2006; 11-05-2007, 17:24.

                            Comment

                            Working...