Closed HAlover99 closed 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
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' })
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
i found the issue, was the API users permission.
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
Configuration
icinga2.erb :
icinga2.rb:
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