Icinga / icinga-core

Icinga 1.x, the old core (EOL 31.12.2018)
GNU General Public License v2.0
45 stars 27 forks source link

[dev.icinga.com #8130] Wrong values for percent_* when using hostgroup in availability report #1534

Closed icinga-migration closed 9 years ago

icinga-migration commented 9 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8130

Created by tobiasvdk on 2014-12-19 14:20:02 +00:00

Assignee: ricardo Status: Resolved (closed on 2015-05-01 10:54:29 +00:00) Target Version: 1.13.3 Last Update: 2015-05-01 10:54:29 +00:00 (in Redmine)

Icinga Version: 1.11.6
OS Version: debian 7.7

Creating an availability report for a hostgroup all percent_* (except percent_total_time_up and percent_known_time_up) values for the hosts are wrong (mostly they are 0). Using the same url but substituting hostgroup=xxx with host=yyy shows the correct values.

Attachments

Changesets

2015-04-30 21:01:24 +00:00 by ricardo 9576a5a1b0c5950b388e470c971d721c10d666c0

Classic UI: Wrong values for percent_* when in availability report

Some values in avail reports never got calcuatetd and therefor
always were zero.

Refs: #8130

2015-05-01 10:51:50 +00:00 by ricardo 259d04fb62758bff864aa1219d3bbc8636b49c20

Classic UI: Wrong values for percent_* when in availability report

Some values in avail reports never got calcuatetd and therefor
always were zero.

fixes #8130
icinga-migration commented 9 years ago

Updated by mfriedrich on 2015-01-24 14:52:49 +00:00

Screenshot? Configs to reproduce? Which core backend version?

icinga-migration commented 9 years ago

Updated by tobiasvdk on 2015-01-26 07:22:33 +00:00

Packages:

ii  icinga                                    1.11.6-1~bpo70+1              amd64        host and network monitoring system - metapackage
ii  icinga-cgi                                1.11.6-1~bpo70+1              amd64        host and network monitoring system - CGI scripts
ii  icinga-cgi-bin                            1.11.6-1~bpo70+1              amd64        host and network monitoring system - CGI scripts
ii  icinga-common                             1.11.6-1~bpo70+1              all          host and network monitoring system - support files
ii  icinga-core                               1.11.6-1~bpo70+1              amd64        host and network monitoring system - core files
ii  icinga-doc                                1.11.6-1~bpo70+1              all          host and network monitoring system - documentation

url for hostgroup availability: 'cgi-bin/icinga/avail.cgi?show_log_entries=&hostgroup=pservers&timeperiod=last7days&smon=1&sday=1&syear=2015&shour=0&smin=0&ssec=0&emon=1&eday=26&eyear=2015&ehour=24&emin=0&esec=0&rpttimeperiod=&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringnotrunning=yes&includesoftstates=no&initialassumedhoststate=0&initialassumedservicestate=0&backtrack=4&content_type=json' availability_hostgroup.png

url for host: 'cgi-bin/icinga/avail.cgi?show_log_entries=&host=pserver906&timeperiod=last7days&smon=1&sday=1&syear=2015&shour=0&smin=0&ssec=0&emon=1&eday=26&eyear=2015&ehour=24&emin=0&esec=0&rpttimeperiod=&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringnotrunning=yes&includesoftstates=no&initialassumedhoststate=0&initialassumedservicestate=0&backtrack=4&content_type=json' availability_host.png

icinga-migration commented 9 years ago

Updated by mfriedrich on 2015-02-14 16:10:00 +00:00

icinga-migration commented 9 years ago

Updated by ricardo on 2015-04-30 21:07:04 +00:00

Hi,

fixed in current "fix/no-percentage-calculation-in-avil.cgi-8130".

Can you test if this works for you.

Thanks Ricardo

icinga-migration commented 9 years ago

Updated by mfriedrich on 2015-05-01 10:52:18 +00:00

Merged to master, thanks.

icinga-migration commented 9 years ago

Updated by ricardo on 2015-05-01 10:54:29 +00:00

Applied in changeset 259d04fb62758bff864aa1219d3bbc8636b49c20.