GithubHelp home page GithubHelp logo

Change Widget Color about dashing-icinga2 HOT 5 CLOSED

mocdaniel avatar mocdaniel commented on June 9, 2024
Change Widget Color

from dashing-icinga2.

Comments (5)

dnsmichi avatar dnsmichi commented on June 9, 2024 1

Please continue over at https://monitoring-portal.org

from dashing-icinga2.

dnsmichi avatar dnsmichi commented on June 9, 2024

How did you change it in the old version?

from dashing-icinga2.

odrino14 avatar odrino14 commented on June 9, 2024

in the send_event i just change for example color from 'red' to 'green'. but.

#down, critical, warning, unknown
  my_host_color = host_down_adjusted.to_i > 0 ? 'red' : 'green'
  send_event('icinga-host-down', {
   value: host_down_adjusted.to_s,
   color: my_host_color
    })

from dashing-icinga2.

dnsmichi avatar dnsmichi commented on June 9, 2024

Look into the current code:

https://github.com/Icinga/dashing-icinga2/blob/master/jobs/icinga2.rb#L100

Neither the jobs code nor the library code will be the same on updates. There's no way to provide a stable interface -- you need to verify your code changes and re-apply them after an update, if they apply cleanly.

In this case, the event target changed.

from dashing-icinga2.

odrino14 avatar odrino14 commented on June 9, 2024

I know. it already compare both Code
i tried to change the color of unhandled host for example from red to green but it is not working.

puts "Host Down: " + icinga.host_count_problems_down.to_s
  send_event('icinga-host-problems-down', {
   value: icinga.host_count_problems_down.to_s,
   moreinfo: "All Problems: " + icinga.host_count_down.to_s,
color: 'green' })

from dashing-icinga2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.