Ad Widget

Collapse

Simple ping time check of a server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hrlmec
    Junior Member
    • Sep 2008
    • 4

    #1

    Simple ping time check of a server

    I'm having a very difficult time with Zabbix.

    I finally got Zabbix installed. I installed 1.6 on a Solaris 10 server.

    I setup a host, and an item to ping a server and get the ping time. (key icmppingsec, which I believe is used to get the ping times)

    The dashboard shows this:
    Status of ZABBIX

    Parameter Value Details
    ZABBIX server is running Yes -
    Number of hosts (monitored/not monitored/templates) 3 2 / 0 / 1
    Number of items (monitored/disabled/not supported) 1 1 / 0 / 0
    Number of triggers (enabled/disabled)[true/unknown/false] 1 1 / 0 [0 / 0 / 1]
    Number of users (online) 2 1
    Required server performance, new values per second 0.0333 -

    3 hosts, 2 being monitored, 1 being a template. 1 item and that item is being monitored. 1 trigger and that trigger is enabled.

    The status above leads me to believe things are configured correctly.

    When I go to "latest data" I get the following:

    Host down image Description Last check Last value Change History
    <servernamechanged> image - other - (1 Items)
    host-pingtime 25 Sep 16:00:28 0 ms

    I can run fping from the zabbix server to the server I am trying to check as the zabbix user and it returns actual ping times. The times vary from 15ms to 35ms.

    Any idea why a simple ping test always return 0ms when it's definitely not 0ms?
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    Zabbix uses fping in order to ping hosts, so check if the fping path found in your zabbix_server.conf matches up with the actual path on your server, and also check that the user Zabbix server runs as, has rights to use fping.

    Comment

    • hrlmec
      Junior Member
      • Sep 2008
      • 4

      #3
      Yep. Checked that (many times actually). The path is correct and the permissions are correct. I can use fping as the zabbix user and the config file points to the right place.

      Comment

      • hrlmec
        Junior Member
        • Sep 2008
        • 4

        #4
        Found it.

        The fping I have installed has no -S option and I had set the SourceIP value in the config file. Once I removed the SourceIP setting in zabbix_server.conf, the ping worked fine.

        Comment

        • EvilShadow
          Junior Member
          • Mar 2007
          • 13

          #5
          Thanks for workaround with SourceIP. Question to Alexei - what version of fping do you use? E.g. the only available on Gentoo 2.4_beta2-r1 does not have an option '-S'.

          Comment

          Working...