Ad Widget

Collapse

widget with count of hosts with running service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 1290er_Steve
    Junior Member
    • Nov 2017
    • 3

    #1

    widget with count of hosts with running service

    Hello,

    Unfortunately, I haven't been able to find any information on this.

    Is it possible to display the number of hosts on which a specific service is running in a widget?
    For example: on how many hosts is the spooler service running?
    For the spooler service there is a item with the state of the service - running
    If so, are there instructions on how to do this?

    Best regards, Stephan
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    I have a feeling, that you cannot get away without creating a calculated item for this...If you want to see a number. Otherwise you can sum item values on graph.

    Comment

    • 1290er_Steve
      Junior Member
      • Nov 2017
      • 3

      #3
      Thanks for the tip. It helped me.
      For documentation purposes, and in case anyone else needs it, here's how I solved it:
      Calculated Item with the following formula:

      Code:
      item_count(/*/service.info["Spooler",state]?[group="Windows Server"])

      Comment

      Working...