Ad Widget

Collapse

Graphical Output - specifically Windows services

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MoifMurphy
    Junior Member
    • Jan 2012
    • 11

    #1

    Graphical Output - specifically Windows services

    Hello,

    I've been playing around with Zabbix in our environment and one of the things I've been tasked with is to configure Zabbix to monitor Windows services, processes and scheduled tasks.

    I've noticed that the graphical output seems to be a little bit restricted. I can get the results to display as a graph or as a pie chart but not much else.

    Is there a way I can amend, edit or create my own display? Such as a big green tick or a big red cross if a service or process is up or down in the Screen area?

    Thanks
  • dougbee
    Member
    • Apr 2011
    • 68

    #2
    Have you looked at network maps?

    http://www.zabbix.com/documentation/...ation/maps/map

    Comment

    • MoifMurphy
      Junior Member
      • Jan 2012
      • 11

      #3
      Not really what I'm trying to achieve, but thanks anyway.

      I'm looking at: http://www.zabbix.com/documentation/...sation/screens

      Comment

      • dougbee
        Member
        • Apr 2011
        • 68

        #4
        A screen can contain map... for instance, I have graphical images of servers of which I'm monitoring temperature. If a server goes out of its temperature range, it immediately gets outlined with a red circle.

        This is then on a rotating slide show in our data center, for easy viewing by the operators.

        I would think that a service could be represented graphically (since it's an item you're already tracking) and change color if it stops...

        Comment

        • MoifMurphy
          Junior Member
          • Jan 2012
          • 11

          #5
          Perhaps this *is* what I'm looking for.

          How did you achieve the circle?

          Comment

          • dougbee
            Member
            • Apr 2011
            • 68

            #6
            It should be automatic, if:

            1. "Icon highlighting" is checked on your map properties.
            2. Your item has an active trigger that is in a problem state.

            I don't have a Windows service being monitored at the moment, but I should be able to work up a quick test case. (it's easier if I walk through the steps rather then rely on my memory!)

            Comment

            • dougbee
              Member
              • Apr 2011
              • 68

              #7
              Ok, try this. I did it quickly so hopefully no steps are missing! Assuming you have an item defined on your Windows host that monitors SQL Server:

              - type = Zabbix agent
              - key = service_state[MSSQLSERVER]

              And a trigger where the expression is something like:

              {mysqlserver.example.com:service_state[MSSQLSERVER].last(0)}#0

              with the severity set to "Disaster".. create your map:

              1. Configuration -> Maps
              2. Create Map
              3. Fill out name, like "SQL Server"
              4. Check "Icon Highlight"
              5. Save
              6. Click map name, "SQL Server"
              7. Click + to add an icon
              8. Click the new element to open the config dialog
              9. Type = trigger
              10. Label = "SQL Server"
              11. Select the previously made trigger
              12. Choose your icons for various states. (they can be the same, like "server" for both problem and default)
              13. Apply
              14. Close
              15. Save

              You should then see your new map, and if the service isn't running it will be highlighted in red. You can then create a new screen and add your map as an element.

              Of course you can get more ornate with the map, including the hostname, making your own images to reflect service states, etc.

              Comment

              • MoifMurphy
                Junior Member
                • Jan 2012
                • 11

                #8
                Awesome, thank you.

                I'll give this a go shortly.

                Comment

                • MoifMurphy
                  Junior Member
                  • Jan 2012
                  • 11

                  #9
                  Originally posted by dougbee
                  Ok, try this. I did it quickly so hopefully no steps are missing! Assuming you have an item defined on your Windows host that monitors SQL Server:

                  - type = Zabbix agent
                  - key = service_state[MSSQLSERVER]

                  And a trigger where the expression is something like:

                  {mysqlserver.example.com:service_state[MSSQLSERVER].last(0)}#0

                  with the severity set to "Disaster".. create your map:

                  1. Configuration -> Maps
                  2. Create Map
                  3. Fill out name, like "SQL Server"
                  4. Check "Icon Highlight"
                  5. Save
                  6. Click map name, "SQL Server"
                  7. Click + to add an icon
                  8. Click the new element to open the config dialog
                  9. Type = trigger
                  10. Label = "SQL Server"
                  11. Select the previously made trigger
                  12. Choose your icons for various states. (they can be the same, like "server" for both problem and default)
                  13. Apply
                  14. Close
                  15. Save

                  You should then see your new map, and if the service isn't running it will be highlighted in red. You can then create a new screen and add your map as an element.

                  Of course you can get more ornate with the map, including the hostname, making your own images to reflect service states, etc.
                  Working beautifully. Thanks again.

                  Comment

                  Working...