Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing timerange is missing the parameter host. #181

Closed
paul-stempel-cancom opened this issue Aug 28, 2018 · 1 comment
Closed

Changing timerange is missing the parameter host. #181

paul-stempel-cancom opened this issue Aug 28, 2018 · 1 comment

Comments

@paul-stempel-cancom
Copy link

Hi,

we have upadated the grafana plugin to version 1.3.1 and the new timerange option does throw an exception.

I hope, that i can provide sufficient information for the issue be solved.

Best regards
Paul

Expected Behavior

Setting a timerange in the performance graph shoud not thow an error.

Current Behavior

grafik

Clicking on the apply button leads to this error:

grafik

Possible Solution

I would say, that the host should be added as a parameter.

This is an example of an working timerange using a button:
https://192.168.129.129/icingaweb2/dashboard#!/icingaweb2/monitoring/service/show?host=icinga2&service=process&timerange=2d and this is the broken link: https://192.168.129.129/icingaweb2/dashboard#!/icingaweb2/monitoring/service/show&tr-from=now-2d&tr-to=now.

This would work:
https://192.168.129.129/icingaweb2/dashboard#!/icingaweb2/monitoring/service/show?host=icinga2&service=process&tr-from=now-2m&tr-to=now.

Steps to Reproduce (for bugs)

Happens every time when "Apply" is clicked.

Your Environment

  • Icinga Web 2 Grafana version (System - About): 1.3.1
  • Icinga Web 2 version and modules (System - About): 2.6.1
  • Version used (icinga2 --version):
icinga2 - The Icinga 2 network monitoring daemon (version: r2.9.1-1)

Copyright (c) 2012-2018 Icinga Development Team (https://www.icinga.com/)
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Application information:
  Installation root: /usr
  Sysconf directory: /etc
  Run directory: /run
  Local state directory: /var
  Package data directory: /usr/share/icinga2
  State path: /var/lib/icinga2/icinga2.state
  Modified attributes path: /var/lib/icinga2/modified-attributes.conf
  Objects path: /var/cache/icinga2/icinga2.debug
  Vars path: /var/cache/icinga2/icinga2.vars
  PID path: /run/icinga2/icinga2.pid

System information:
  Platform: Debian GNU/Linux
  Platform version: 9 (stretch)
  Kernel: Linux
  Kernel version: 4.15.0-32-generic
  Architecture: x86_64

Build information:
  Compiler: GNU 6.3.0
  Build host: 83e7f59f33f0
  • Operating System and version: debian:9.5-slim (docker), icinga2 and icingaweb2 are in different containers

  • Enabled features (icinga2 feature list): api checker command compatlog ido-mysql influxdb livestatus mainlog notification

  • Config validation (icinga2 daemon -C):

[2018-08-28 12:56:22 +0200] information/cli: Icinga application loader (version: r2.9.1-1)
[2018-08-28 12:56:22 +0200] information/cli: Loading configuration file(s).
[2018-08-28 12:56:22 +0200] information/ConfigItem: Committing config item(s).
[2018-08-28 12:56:22 +0200] information/ApiListener: My API identity: 192.168.129.129
[2018-08-28 12:56:22 +0200] warning/ApplyRule: [...] for type 'Service' does not match anywhere!
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 14 Services.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 3 ServiceGroups.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 LivestatusListener.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 InfluxdbWriter.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 11 HostGroups.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 FileLogger.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 NotificationComponent.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 4 NotificationCommands.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 18 Notifications.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 IcingaApplication.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 4 Hosts.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 ApiListener.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 CheckerComponent.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 3 Zones.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 ExternalCommandListener.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 Endpoint.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 2 ApiUsers.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 UserGroup.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 CompatLogger.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 282 CheckCommands.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 5 TimePeriods.
[2018-08-28 12:56:22 +0200] information/ConfigItem: Instantiated 1 User.
[2018-08-28 12:56:22 +0200] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
[2018-08-28 12:56:22 +0200] information/cli: Finished validating the configuration file(s).
@Mikesch-mp
Copy link
Owner

Hello,

This is fixed in the latest master.

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

No branches or pull requests

2 participants