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

[dev.icinga.com #10834] twice as many thumbnails as normal #18

Open
icinga-migration opened this issue Dec 14, 2015 · 13 comments
Open

[dev.icinga.com #10834] twice as many thumbnails as normal #18

icinga-migration opened this issue Dec 14, 2015 · 13 comments
Assignees
Labels

Comments

@icinga-migration
Copy link

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

Created by mwaldmueller on 2015-12-14 12:20:58 +00:00

Assignee: tgelf
Status: Assigned
Target Version: (none)
Last Update: 2016-08-03 15:00:38 +00:00 (in Redmine)


Icinga Web 2 Version: Icinga Web 2.1.0
PNP4Nagios Version: 1.8.5
PNP Module: Current master (2015-12-11)

See attached screenshot.

Attachments


Relations:

@icinga-migration
Copy link
Author

Updated by tgelf on 2015-12-16 17:51:14 +00:00

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

Could you please provide the directory structure of your /etc/pnp4nagios (or similar) directory and the content of the PHP files you find there. And: is this a Debian/Ubuntu based system?

@icinga-migration
Copy link
Author

Updated by dgoetz on 2015-12-17 08:04:06 +00:00

  • Assigned to changed from dgoetz to mwaldmueller

Wrong assigne, I could not reproduce! ;-)

@icinga-migration
Copy link
Author

Updated by tgelf on 2015-12-17 08:27:15 +00:00

Sorry :)

@icinga-migration
Copy link
Author

Updated by mthode on 2015-12-21 11:38:24 +00:00

I reproduced, if you have a config.php and a config_local.php that both define the views array you'll get something like this. I commented it out of views_local.php and the problem 'went away'. Another option is to merged the lists (uniques only).

@icinga-migration
Copy link
Author

Updated by sudhamanvk on 2015-12-28 09:24:56 +00:00

I did have the issues, I did edit the for loop to take only 5 views as count and it worked fine. May be I will have a look at the config_local.php once.

@icinga-migration
Copy link
Author

Updated by mwaldmueller on 2016-01-20 08:04:48 +00:00

I can confirm that this occurs when there are two files (config.php and config_local.php) in PNP4Nagios etc's-directory which define identical views. The solution is to remove the views from one of the files:

- $views[] = array('title' => '4 Hours',   'start' => (60*60*4) ); 
- $views[] = array('title' => '25 Hours',  'start' => (60*60*25) ); 
- $views[] = array('title' => 'One Week',  'start' => (60*60*25*7) ); 
- $views[] = array('title' => 'One Month', 'start' => (60*60*24*32) ); 
- $views[] = array('title' => 'One Year',  'start' => (60*60*24*380) );

In my case I removed it from config_local.php.

Thanks for your help!
Markus

@icinga-migration
Copy link
Author

Updated by tgelf on 2016-01-20 08:09:57 +00:00

  • Status changed from Feedback to Assigned
  • Assigned to changed from mwaldmueller to tgelf

We should try to somehow catch this error, sounds like the default pnp config on those system is messed up - so more people would run into this.

@icinga-migration
Copy link
Author

Updated by purplecarrot on 2016-03-17 22:34:06 +00:00

I also ran into this issue. Could the title be changed to something more meaningful like "twice as many thumbnails as normal" or something more descriptive?

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-08-03 15:00:38 +00:00

  • Subject changed from Wrong visualization to twice as many thumbnails as normal

@icinga-migration
Copy link
Author

Updated by tgelf on 2017-01-02 16:18:18 +00:00

  • Duplicated set to 11233

@icinga-migration
Copy link
Author

Updated by tgelf on 2017-01-02 16:19:21 +00:00

  • Duplicated set to 11613

@mamiral
Copy link

mamiral commented May 19, 2017

I have also had this issue and had to remove $views from one of the config files, in my case config_local.php.

@dnsmichi
Copy link
Contributor

I've added a note to the docs "FAQs" in #30

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

No branches or pull requests

4 participants