networkinglooki.blogg.se

Geektool sbstittes
Geektool sbstittes












I have not tested this with a Sensu which has no currently failing checks.I recommend using an additional layer of protection in front of your Sensu API (e.g.disc width: 12px height: 12px border-radius: 50%. append renderEvent ( event ) style: """ top: 20px left: 80px right: 80px color: #ffffff margin: 0 auto font-family: Helvetica Neue, Sans-serif font-smoothing: antialias font-weight: 300 font-size: 16px line-height: 27px td vertical-align:top. sort ( sortByHostname ) for event in events table. BLINKING_INDICATORS = BLINKING_INDICATORS = command: "curl -sS -user # \ """ if SORT_BY_HOSTNAME = true results = events.

geektool sbstittes

SENSU_PASSWORD = "password" SENSU_USERNAME = "username" SENSU_URL = "" # display options SORT_BY_HOSTNAME = true SHOW_COMMAND = false SHOW_OUTPUT = true # blink indicators - possible values: "warn", "error", "unknown" # e.g.

  • Blinking of certain indicators by warning level (default: - I hate the blinking but since it was already in the base I chose to support it anyway).
  • Display of the output run of the failed check (default: true).
  • Display of the command run by Sensu that triggered this event (default: false).
  • Sorting the events by hostname (default: true - I can’t see why you wouldn’t do that).
  • Yes, the changed colors might seem unnecessary but I took them straight from the Uchiwa interface for Sensu for consistency. I’ve commented functions and parameters for readability’s sake. I’ve based my widget on O’Brien’s and also provide my copy under the MIT License.

    geektool sbstittes

    When I saw that StatusCake report widget by Colin O’Brien for an HTML based Geektool alternative called Übersicht and saw that it was just processing some JSON I felt the urge to build something like that widget for our Sensu monitoring.Ī few hours of research, cursing and reconfiguring systems I had a working solution even though my Javascript is still awful and I still don’t know what’s so great about CoffeeScript. Initially I was on the look for an alternative to Geektool for macOS that would not crash if I was to run an interactive script like iftop.














    Geektool sbstittes