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

Unable to add a new report in reportit: "There are no report templates available." #44

Closed
ikorzha opened this issue Sep 21, 2018 · 14 comments

Comments

@ikorzha
Copy link

ikorzha commented Sep 21, 2018

I am unable to add a new report in reportit with msg: "There are no report templates available."
See the screenshot below 1:
However I do have a report template available that is published see the screenshot below 2:

Please advise

image

image

@netniV
Copy link
Member

netniV commented Sep 21, 2018

Yes, this seems like a new issue. I'll have to take a look shortly.

@netniV
Copy link
Member

netniV commented Sep 21, 2018

Well, I managed to create a report template, with the only error being that the save reported as unsuccessful but it was.

@netniV
Copy link
Member

netniV commented Sep 21, 2018

I believe that this issue is down to the fact you may have it on a test system and no other graphs created. Let me know if I have that right?

@netniV netniV closed this as completed Sep 21, 2018
@netniV netniV reopened this Sep 21, 2018
@ikorzha
Copy link
Author

ikorzha commented Sep 21, 2018

No i have it installed on my prod system, same system I gave you a copy of DB from.
I didn't have an issue creating a report template, that portion worked.
Creating an actual report that is based on existing template that is what producing an error.
See original screenshot.
Please let me know if there are further questions.

@netniV
Copy link
Member

netniV commented Sep 21, 2018

Oh sorry, I'll go take a look at that side.

@netniV
Copy link
Member

netniV commented Sep 22, 2018

For a report to appear, it must be unlocked and enabled.

SELECT id, description
FROM plugin_reportit_templates
WHERE `locked` = '' AND `enabled` = 'on' ORDER BY description

@ikorzha
Copy link
Author

ikorzha commented Sep 22, 2018

netniV, thank you for your investigation, you are absolutely right as soon as I unlocked the template I was able to create a report.
However behavior for end user is absolutely in-intuitive. I think to avoid any questions from end users in the future it would be best to add a tip on a screenshot page I have attached.
Stating: "For a reportit template to appear, it must be unlocked and enabled."

I also went back and checked old version in 0.8.8x Cacti running 0.8 reportIT. Behavior is identical in new version of reportit, I am not sure why I didn't run into this problem in the old version too..

image

Feel free to close this issue either with or without tip up to you :)

@netniV
Copy link
Member

netniV commented Sep 22, 2018

I think probably because you had a different issue... why can't I see that report? oh yeah I haven't unlocked it.

netniV added a commit that referenced this issue Sep 22, 2018
@netniV
Copy link
Member

netniV commented Sep 22, 2018

I have now updated the message. Check it out and let me know what you think.

@netniV netniV closed this as completed Sep 22, 2018
@ikorzha
Copy link
Author

ikorzha commented Sep 22, 2018

Your fix is excellent. At least now some one can make a connection between locked template and reporting.
Thank you.
image

@ikorzha
Copy link
Author

ikorzha commented Sep 22, 2018

netniV, there is another related issue #45 this time related to template lock. Can you please take a look when you have a chance.

@wekesa254
Copy link

Am experiencing the same problem on Cacti v1.2.26.
image

I have tried to run the above SQL command and below is the output
image

@wekesa254
Copy link

Anyone online to assist

@TheWitness
Copy link
Member

You have to create a template first. Check under templates. I don't know much about this plugin. Maybe @xmacan or @browniebraun can assist.

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

4 participants