mocdaniel / dashing-icinga2

Dashing dashboard for Icinga 2 using the REST API
MIT License
205 stars 47 forks source link

Host and Service Problems still 0 #105

Closed HAlover99 closed 4 years ago

HAlover99 commented 4 years ago

HI,

I have strange problem with the Host and Service problem, seems that not retrive the count of host/service, could you help to understand the issue?

Best Regards

Screenshot

Schermata 2020-03-15 alle 15 31 07

Configuration

icinga2.erb :

    <!-- Problems -->
    <!-- -->
    <li data-row="1" data-col="3" data-sizex="1" data-sizey="1">
      <div data-id="icinga-host-meter" data-view="Meter" data-title="Host Problems" data-min="0" data-max="100"></div>
    </li>
    <li data-row="1" data-col="4" data-sizex="1" data-sizey="1">
      <div data-id="icinga-service-meter" data-view="Meter" data-title="Service Problems" data-min="0" data-max="100"></div>
    </li>
    <!-- -->

icinga2.rb:

  send_event('icinga-host-meter', {
   value: host_meter,
   max:   host_meter_max,
   moreinfo: "Total hosts: " + host_meter_max.to_s,
   color: 'blue' })

  send_event('icinga-service-meter', {
   value: service_meter,
   max:   service_meter_max,
   moreinfo: "Total services: " + service_meter_max.to_s,
   color: 'blue' })

Environment

ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu] dashing (1.3.7) MacOS Catalina Client Firefox version 74.0 64bit

HAlover99 commented 4 years ago

i found the issue, was the API users permission.