Ad Widget

Collapse

Host counter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jocelyn
    Junior Member
    • Feb 2009
    • 15

    #1

    Host counter

    Hi,
    I would like zabbix to build a graph on which I could see the number of hosts up (considering a host as up if the server can ping it correctly) at a time t.
    Is it possible to do this? Could you help me or explain me how to do this. I'm beginner on zabbix.
    Thanks in advance.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    This can be done using aggregate item type. Please look at the Zabbix Manual for details.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Jocelyn
      Junior Member
      • Feb 2009
      • 15

      #3
      I see.
      I tried to create an item of aggregate type with a function like that :
      grpsum["all","icmpping","last","0"]
      I'm doing icmpping on my hosts in an item called pingcheck and it works
      but aggregate item doesn't store value and I'm not sure it's what I want it to do. Is there one more step?
      I'm now looking at the User parameter example of the manual :
      UserParameter=ping,echo 1
      "The agent will always return '1' for item with key ping" I don't understand what it means. Does it mean : if a host of the hostgrp chosen in the key grpfunc can be pingged, it returns 1?
      Last edited by Jocelyn; 22-04-2009, 11:18.

      Comment

      • rue
        Member
        Zabbix Certified Specialist
        • May 2006
        • 43

        #4
        Originally posted by Jocelyn
        I see.
        I tried to create an item of aggregate type with a function like that :
        grpsum["all","icmpping","last","0"]
        I'm doing icmpping on my hosts in an item called pingcheck and it works
        but aggregate item doesn't store value and I'm not sure it's what I want it to do. Is there one more step?
        I'm now looking at the User parameter example of the manual :
        UserParameter=ping,echo 1
        "The agent will always return '1' for item with key ping" I don't understand what it means. Does it mean : if a host of the hostgrp chosen in the key grpfunc can be pingged, it returns 1?
        No. A UserParameter is defined which, when referenced in an item as key "ping", will always return "1".
        Have a look at UserParameter documentation for further info:

        User Parameter, (UserParameter) refers to custom scripts
        defined in an agent’s configuration file. User parameters are
        defined by a key and command. The key refers to the item
        defined in the web interface and can be configured to accept
        arguments as sent by the server.
        (from 1.6 manual)

        cheers

        Comment

        • Jocelyn
          Junior Member
          • Feb 2009
          • 15

          #5
          ok
          But does anyone have an issue to my problem?
          I created the item of type aggregate the way I wrote before and it doesn't build data. I tried to put the item in the same template that I use for pinging my hosts (except zabbix server) but it's not what interest me. I would like to create a single graph using the item as Y. Why does my item doesn't work? Did I do something wrong?
          If you need more information, don't hesitate asking me.
          Thanks in advance.

          Comment

          Working...