Ad Widget

Collapse

Zabbix 2.0.4 cannot ping

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brhunt
    Member
    • Feb 2013
    • 50

    #1

    Zabbix 2.0.4 cannot ping

    Hello,

    I have a fresh install of zabbix 2.0.4 on Centos 6.3 with mysql.

    I have set up two snmp hosts and they are functioning properly.

    What I cannot do is ping hosts from the GUI. I can run ping and fping from the command line, but when I click on a host in latest data and select ping, I get:

    ERROR: Cannot connect to the trapper port of zabbix server daemon, but it should be available to run the script.
    Error description: empty response received.

    Can anyone assist me on troubleshooting this issue?

    Thanks.

    Bryan Hunt
  • scldad
    Junior Member
    • Mar 2013
    • 18

    #2
    fping path

    Where is fping on your system?

    On my Mandriva system, fping is in /bin but Zabbix seems to be hard-wired to /usr/sbin.

    I just added a sym link.

    Stephen

    Comment

    • heaje
      Senior Member
      Zabbix Certified Specialist
      • Sep 2009
      • 325

      #3
      The path for fping can be configured in zabbix_server.conf.

      Comment

      • brhunt
        Member
        • Feb 2013
        • 50

        #4
        scldad and heaje,

        Both are in the /usr/sbin directory. Based on defaults in zabbix_server.conf, it looks to be correct.

        I just ran across this bug note: https://support.zabbix.com/browse/ZBX-4976

        This seems to describe the error exactly. But, it implies that it was corrected in v2.0.2, so I would expect 2.0.4 to have it.

        Is there a way to verify that?

        Thanks.

        Bryan Hunt

        Comment

        • heaje
          Senior Member
          Zabbix Certified Specialist
          • Sep 2009
          • 325

          #5
          Do you have the location of your zabbix server set up correctly in the web config file? I believe that is required to be correct foe this to work based other forum posts I've seen.

          Comment

          • brhunt
            Member
            • Feb 2013
            • 50

            #6
            Heaje,

            Well, I'm not sure. Everything else seems to be working as far as SNMP monitoring and graphing and database access, so I believe that the front-end to server must be hooked up correctly.

            Is there a specific file I should check in? What should I look for?

            Thanks.

            Bryan Hunt

            Comment

            • brhunt
              Member
              • Feb 2013
              • 50

              #7
              I put some echo statements into the script scripts_exec.php to see what was going on.

              All seems to be okay until it tries to execute:
              $result = API::Script()->execute(array('hostid' => $hostid, 'scriptid' => $scriptid));

              The $result value is empty, which causes the error to be thrown.

              Not sure where API:script() is, or why it is failing.

              Comment

              • heaje
                Senior Member
                Zabbix Certified Specialist
                • Sep 2009
                • 325

                #8
                Is there a specific file I should check in? What should I look for?
                Sorry I was slow to reply. In any case, the location of the Web GUI conf file can be in a couple places depending on how you installed Zabbix.
                1. It could be in the "conf" directory in the root of wherever you put the web files. So the path would be something like /path/to/web/files/conf/zabbix.conf.php.
                2. It could be in /etc/zabbix/web/zabbix.conf.php.


                Verify that the values for $ZBX_SERVER and $ZBX_SERVER_PORT are correct.

                Comment

                • brhunt
                  Member
                  • Feb 2013
                  • 50

                  #9
                  Heaje,

                  I found the file and everything seems to be fine there.

                  This is an issue of script execution. Not sure if it is permissions related, or just a bug in the software.

                  In any case, this is not very reassuring that this product is ready for prime time.

                  Thanks.

                  Bryan Hunt

                  Comment

                  • heaje
                    Senior Member
                    Zabbix Certified Specialist
                    • Sep 2009
                    • 325

                    #10
                    Have you tried the suggestions in this other thread about this same issue?

                    Comment

                    • Evan.Anderson
                      Member
                      • Jun 2009
                      • 42

                      #11
                      I think I would try pointing to the actual fping binary rather than a link. That file has special execution permissions that the link may not inherit. Point to the actual binary in zabbix_server.conf, then restart the daemon and try it again.
                      I'm running 2.0.4 on ubuntu server and it works.
                      Last edited by Evan.Anderson; 10-03-2013, 00:17. Reason: correcting verbage. Adding detail.

                      Comment

                      • Evan.Anderson
                        Member
                        • Jun 2009
                        • 42

                        #12
                        Also, try to su zabbix from the command line and then execute fping to see if that works, perhaps your user account can execute it, but zabbix cannot, just giving things to try, seeing what sticks.

                        Comment

                        • brhunt
                          Member
                          • Feb 2013
                          • 50

                          #13
                          Heaje,

                          I had not seen that post before. I checked the settings there and they were correct.

                          I did turn up debugging and retried the ping script. I couldn't see anything in the log that seemed to refer to the script error.

                          I uploaded the log file in case anyone wants to look through it.

                          Thanks.

                          Bryan Hunt
                          Attached Files

                          Comment

                          • brhunt
                            Member
                            • Feb 2013
                            • 50

                            #14
                            Evan,

                            I did try the fping command via su with zabbix, and it failed with a rights issue.

                            I don't think that fping has anything to do with my issue though.

                            Clicking on the host and selecting either Ping or Traceroute seems to be executing scripts that are found under Administration/Scripts.

                            The Ping script executes /bin/ping, which works fine under su zabbix.

                            Thanks.

                            Bryan Hunt

                            Comment

                            • Evan.Anderson
                              Member
                              • Jun 2009
                              • 42

                              #15
                              I get a pop up windows with this:
                              PING x.x.x.x (x.x.x.x) 56(84) bytes of data.
                              64 bytes from x.x.x.x: icmp_req=1 ttl=255 time=0.309 ms
                              64 bytes from x.x.x.x: icp_req=2 ttl=255 time=0.587 ms
                              64 bytes from x.x.x.x: icmp_req=3 ttl=255 time=0.270 ms
                              --- x.x.x.x ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.270/0.388/0.587/0.142 ms

                              It's not as simple as a pop up blocker issue is it?
                              Otherwise, what does your window display?
                              Last edited by Evan.Anderson; 10-03-2013, 20:37. Reason: hiding the innocent.

                              Comment

                              Working...