Ad Widget

Collapse

Error when starting zabbix_agentd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maziggy
    Junior Member
    • Jul 2011
    • 7

    #1

    Error when starting zabbix_agentd

    Good Morning,

    due to a kernel update i had to reboot my server yesterday. Unfortunately now i cannot start zabbix_agentd because i get the error message

    zabbix_agentd [14282]: Error in line [1] "<?php
    "

    ---
    ZABBIX Agent (daemon) v1.8.1 (revision 9702) (27 January 2010)
    Compilation time: Apr 6 2010 01:54:49
    ---
    2.6.32-33-server #70-Ubuntu SMP Thu Jul 7 22:28:30 UTC 2011 x86_64 GNU/Linux
    ---

    Does anyone have an idea what's wrong?

    Thanks in advance.

    Martin
  • maziggy
    Junior Member
    • Jul 2011
    • 7

    #2
    Anyone please?

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      did you copy php frontend configuration file on top of the agent config file ?
      Zabbix 3.0 Network Monitoring book

      Comment

      • maziggy
        Junior Member
        • Jul 2011
        • 7

        #4
        Nope, don't think so...

        Thanks, Martin

        ------------

        cat /etc/zabbix/zabbix_agentd.conf
        # This is config file for zabbix_agentd
        # in case the agent is started standalone from init.d (not via inetd).
        #
        # 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=127.0.0.1,[server ip addresses]

        # 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
        # 4 - information (default)
        # 5 - for debugging (produces lots of information)

        DebugLevel=3

        # Name of PID file

        PidFile=/var/run/zabbix-agent/zabbix_agentd.pid

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

        LogFile=/var/log/zabbix-agent/zabbix_agentd.log

        # Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
        #LogFileSize=1

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

        Timeout=3

        Include=/etc/zabbix





        cat /usr/share/zabbix-agent/zabbix_agentd.conf
        # This is config file for zabbix_agentd
        # in case the agent is started standalone from init.d (not via inetd).
        #
        # 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=@zabbixserver@

        # 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
        # 4 - information (default)
        # 5 - for debugging (produces lots of information)

        DebugLevel=3

        # Name of PID file

        PidFile=/var/run/zabbix-agent/zabbix_agentd.pid

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

        LogFile=/var/log/zabbix-agent/zabbix_agentd.log

        # Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
        #LogFileSize=1

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

        Timeout=3

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          how exactly do you start the agent ? does it work if you just launch the binary directly ?
          Zabbix 3.0 Network Monitoring book

          Comment

          • maziggy
            Junior Member
            • Jul 2011
            • 7

            #6
            It doesn't matter if i start agentd via initscript or just the binary.

            root@server:~# zabbix_agentd
            zabbix_agentd [14455]: Error in line [1] "<?php
            "
            root@server:~#

            Thanks, Martin

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              puzzling. and if you do
              Code:
               zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
              also, anything interesting in /var/log/zabbix-agent/zabbix_agentd.log ?
              Zabbix 3.0 Network Monitoring book

              Comment

              • maziggy
                Junior Member
                • Jul 2011
                • 7

                #8
                Already tried that. Same error message and nothing will be written to the logfile.

                Interesting, isn't it?

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #9
                  file zabbix_agentd
                  head zabbix_agentd
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • maziggy
                    Junior Member
                    • Jul 2011
                    • 7

                    #10
                    root@server:~# file /usr/sbin/zabbix_agentd
                    /usr/sbin/zabbix_agentd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

                    root@server:~# head /usr/sbin/zabbix_agentd
                    ^?ELF^B^A^A^@^@^@^@^@^@^@^@^@^B^@>^@^A^@^@^@<C0>4@ ^@^@^@^@^@@^@^@^@^@^@^@^@^@<90>^B^@^@^@^@^@^@^@^@^ @@^@8^@ ^@@^@^]^@^\^@^F^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so.2^@^D^@^@^@^P^@^@^@^A^@^@^@GNU^@^@^@^@^@^B^@ ^@^@^F^@^@^@^O^@^@^@^D^@^@^@^T^@^@^@^C^@^@^@GNU^@u 5<F7><CD>M^_<BA>\^O)4<96>30<A6><D0>Kgq^\
                    <83>^@^@^@<9A>^@^@^@^K^@^@^
                    [...]

                    Comment

                    • maziggy
                      Junior Member
                      • Jul 2011
                      • 7

                      #11
                      Any ideas how to fix this please?

                      Comment

                      Working...