Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

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

Closed
icinga-migration opened this issue Dec 19, 2014 · 6 comments

Comments

@icinga-migration
Copy link

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 9576a5a

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 259d04f

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
Copy link
Author

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

  • Status changed from New to Feedback
  • Assigned to changed from ricardo to tobiasvdk

Screenshot? Configs to reproduce? Which core backend version?

@icinga-migration
Copy link
Author

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

  • File added availability_host.png
  • File added availability_hostgroup.png

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
Copy link
Author

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

  • Status changed from Feedback to New
  • Assigned to deleted tobiasvdk

@icinga-migration
Copy link
Author

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

  • Status changed from New to Feedback
  • Assigned to set to ricardo

Hi,

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

Can you test if this works for you.

Thanks
Ricardo

@icinga-migration
Copy link
Author

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

  • Status changed from Feedback to Assigned
  • Target Version set to 1.13.3

Merged to master, thanks.

@icinga-migration
Copy link
Author

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

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 259d04f.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant