Ad Widget

Collapse

Zabbix Server Trapper problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ShadowMonster
    Junior Member
    • Sep 2012
    • 14

    #1

    Zabbix Server Trapper problem

    Hi
    I'm new with Zabbix so sorry if this problem is dump. I install Zabbix on Ubuntu 12 with kernel 3.2 - Everything work fine expect one thing. When from Screen view I try ping my host it show me error:
    ERROR: Cannot connect to the trapper port of zabbix server daemon, but it should be available to run the script.
    and then below:
    Undefined index: data [include/classes/api/CAPIObject.php:44]
    Invalid argument supplied for foreach() [include/config.inc.php:457]

    Server and Agent work fine but this trapper maybe not I not fully understand it yet.

    Can someone give me advise why it happen?

    Thanks
  • ShadowMonster
    Junior Member
    • Sep 2012
    • 14

    #2
    Can someone at least give me some direction what can cause this problem please?

    Thanks

    Comment

    • dougbee
      Member
      • Apr 2011
      • 68

      #3
      Can you check the configuration of your "ping" script, under Administration -> Scripts? See if the actual ping command is correct. Mine is:

      /bin/ping -c 3 {HOST.CONN}

      Comment

      • ShadowMonster
        Junior Member
        • Sep 2012
        • 14

        #4
        Thanks for answer.

        Mine is /bin/ping -c 3 {HOST.CONN} 2>&1 I test it on server on shell and command is correct.

        This error looks more on some kind problem with php or something.

        Comment

        • dougbee
          Member
          • Apr 2011
          • 68

          #5
          That actual error is generated by zabbix/www/scripts_exec.php. I wonder if you could run zabbix with debug logging and see if there's more info in the server log..

          Comment

          • ShadowMonster
            Junior Member
            • Sep 2012
            • 14

            #6
            Can you direct me how to turn on debug for it - I have some logs on but there is only about executing housekeeper in /var/log/zabbix-server in agent just about turn on/off agent process

            Comment

            • dougbee
              Member
              • Apr 2011
              • 68

              #7
              There's a section in /etc/zabbix/zabbix_server.conf (assuming that's your config file) :

              ### Option: DebugLevel
              # Specifies debug level
              # 0 - no debug
              # 1 - critical information
              # 2 - error information
              # 3 - warnings
              # 4 - for debugging (produces lots of information)
              #
              # Mandatory: no
              # Range: 0-4
              # Default:
              # DebugLevel=3

              You can set the DebugLevel=4 and restart the zabbix server process. And it will indeed produce LOTS of info!

              Comment

              • ShadowMonster
                Junior Member
                • Sep 2012
                • 14

                #8
                Thanks for this info.
                Yes it generate a lot stuff anyway I catch some

                What I was able found is this:

                29019:20120920:173715.920 In DBget_trigger_update_sql() triggerid:100100000013487 value:0(0) new_value:0
                29019:20120920:173715.920 End of DBget_trigger_update_sql():FAIL
                29019:20120920:173715.920 In DBget_trigger_update_sql() triggerid:100100000013488 value:0(0) new_value:0
                29019:20120920:173715.920 End of DBget_trigger_update_sql():FAIL

                I'm not sure if this related to it but I cannot find any other errors or fails...
                Do you know maybe as what I should look for it?

                Comment

                • ShadowMonster
                  Junior Member
                  • Sep 2012
                  • 14

                  #9
                  Lol I found it!

                  It was my mistake in zabbix.conf.php of front end.

                  in this line:
                  $ZBX_SERVER_PORT = '10051';

                  I use 10050 with was wrong. Now ping and other work good

                  Comment

                  • Mauricio
                    Junior Member
                    • Dec 2011
                    • 3

                    #10
                    Originally posted by ShadowMonster
                    Lol I found it!

                    It was my mistake in zabbix.conf.php of front end.

                    in this line:
                    $ZBX_SERVER_PORT = '10051';

                    I use 10050 with was wrong. Now ping and other work good

                    I have a similar problem, but the scripts work perfectly after I restart the zabbix server daemon and stop to work after 30 minutes showing the message below:

                    "ERROR: Cannot connect to the trapper port of zabbix server daemon, but it should be available to run the script.
                    Error description: defined in "include/defines.inc.php" constant ZBX_SCRIPT_TIMEOUT timeout is reached. You can try to increase this value."

                    I have no idea to find a solution for this problem. Someone can help?

                    My environment:

                    Red Hat 6 using other physical host with orcale 10G
                    Zabbix server 2.0.3
                    313 Hosts monitored

                    Comment

                    Working...