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

Hide hosts with no graphs #21

Closed
spence572 opened this issue Dec 10, 2020 · 2 comments
Closed

Hide hosts with no graphs #21

spence572 opened this issue Dec 10, 2020 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@spence572
Copy link

Hi,

Firstly this is a great plugin, good work.

I have run a report using the HostGroup option and it works perfectly and extracts the specific graphs for the hosts within that host group, however, not all my hosts have those graphs and as such in the report it shows the host name with a comment saying (something along the lines of) there was no valid graph to display. Is it possible to hide the host where there are no graphs to display?

Thanks

Paul

@martinm76
Copy link
Owner

Thank you, @spence572 .

Regarding your question, it is easier said than done, especially since there are many other things than graphs that can be output.
I believe a meta-file is generated that is later turned into the PDF, so possibly one could put in an extra read through it and look for hosts that had no real data added and remove those sections, or possibly an array could be built for each host and written later where you could inspect each object in the array for actual data before committing it to the file or not.

In other words, I'm sure it's possible, but I will not have the time to implement it for quite a while. If someone else would like to take a stab at it, please do.

@martinm76 martinm76 added enhancement New feature or request question Further information is requested labels Dec 14, 2020
@mbuyukkarakas
Copy link

mbuyukkarakas commented Mar 21, 2021

I figured out the problem.

If there is no graph item created on host or any graph does not comes from the template, the pdf reporting doesnt show the host ,nor the group in the listing.

After creating at least one graph for the host, or graph prototype in the template, everything is ok.

Fyi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants