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

Variables: option to only return enabled Zabbix hosts #362

Open
1 of 3 tasks
Rickkwa opened this issue Feb 28, 2017 · 11 comments
Open
1 of 3 tasks

Variables: option to only return enabled Zabbix hosts #362

Rickkwa opened this issue Feb 28, 2017 · 11 comments

Comments

@Rickkwa
Copy link

Rickkwa commented Feb 28, 2017

I'm submitting a ...

  • Bug report
  • Feature request
  • Question / Support request

Hello,
Right now when you create a template variable and your query, for example, is simply *.* then it will return all hosts. Even the hosts that are in disabled state are returned. I think an option to return only enabled hosts would be nice to have.

Thanks.

@alexanderzobnin
Copy link
Collaborator

Sorry, but I can't add this option because datasource hasn't control over template variable editor. May be I can add it as data source option, but it will affect all variables belonging to given datasource.

@Rickkwa
Copy link
Author

Rickkwa commented Mar 6, 2017

I think even if it affects all variables in the datasource, it is a nice option to have. Thanks.

@Perlovka
Copy link

Maybe it could be implemented in metrics, like "Show disabled items" one?

@alexanderzobnin
Copy link
Collaborator

But why do you need to hide disabled hosts? Because by default only enabled Items will be shown.

@ptempier
Copy link

Hi

I think it still shows if at the template/host level the item is disabled , but the host itself is active

I get server versions as a table in grafana, but for disabled servers, i would get an empty line in grafana.

I also get an empty line for server with an unsupported items or one where the scripts bug parsing the version and return empty data. In that case i need to fix my script or whatever.

But if i disabled the host in zabbix, this means i don't want/care about that data anymore and just want to keep the archived data for future reference.

To me it would seems fair to allow for a filter at the datasource level , if this can not be done as a grafana metric option.(at worst we could create a datasource for all hosts and one for active only hosts)

@urusha
Copy link

urusha commented Feb 13, 2019

But why do you need to hide disabled hosts? Because by default only enabled Items will be shown.

Because if there are many disabled hosts, filtering by hosts is really inconvenient, since you have to scroll down again and again.

@alexanderzobnin
Copy link
Collaborator

@urusha you could just start to type hostname and reduce the list of suggested hosts.

@urusha
Copy link

urusha commented Feb 20, 2019

@alexanderzobnin I could, but is it convenient? If I see 5 hosts with different names [a-z] instead of 100, I could easily mark them in a few secs without any typing... More over, if I get no data after choosing the particular host, I can not even determine if the host is enabled or not, or if the item is enabled or not (disabled / unsupported / has no values).
That would be great if we could use filter parameter in the api queries somehow (status in this case).

@alexanderzobnin alexanderzobnin changed the title Option to only return enabled Zabbix hosts Variables: option to only return enabled Zabbix hosts Jan 24, 2020
@polak785
Copy link

Indeed, like other ones, when we have many servers and the old ones are only deactivated and not deleted on Zabbix, this is very annoying to scroll down on Grafana on dashbords that display metrics with repetitive panels based on hosts.

Will it be supported in the future?

@skaboy007
Copy link

ye this one is actually extremely important

Copy link

This issue has been automatically marked as stale because it has not had activity in the last 2 years. It will be closed in 60 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

@github-actions github-actions bot added the stale label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants