Ad Widget

Collapse

Graphing Monitored Hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xarous
    Junior Member
    • Oct 2009
    • 15

    #1

    Graphing Monitored Hosts

    I know that the number of monitored hosts is displayed on the dashboard, but it is accessible through zabbix[] so that it can be used as an item and graphed over time?

    I'm thinking something similar to zabbix[items] which shows the number of items within the system.

    Cheers,
    Jeff
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    What about making a "Database monitor" item with:

    Code:
    select count(name) from hosts where status = 0;
    status = 0 --> hosts
    status = 3 --> templates

    Comment

    • xarous
      Junior Member
      • Oct 2009
      • 15

      #3
      Great - that works.

      I also added a check to only report on available hosts, so I'm using -

      select count(name) from zabbix.hosts where status = 0 and available = 1;

      Cheers,
      Jeff

      Comment

      Working...