Open kaloyan-s opened 4 years ago
That's ... a good one. I'll have to go back and look at the code.
On Thu, Mar 12, 2020 at 10:11 AM kaloyan-s notifications@github.com wrote:
Hello Brian,
The tools you have created are awesome. However i am using the screen_creator and i am trying to filter by exact match, because i have lots of hosts in the same host group for example host1,host11,host111 When i try to add a graph using the filter option and choosing host1, the graphs of all 3 hosts (host1,host11,host111) are added to the screen. Can you let me know if there is an option to filter the exact host i need ?
Regards,
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BrianGallew/zabbix_tool/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC5MS6WS2SFG57UQEN2HB3RHECSHANCNFSM4LGPYSSA .
Looking through the code, the hostname is passed through the the zabbix_api code as part of a FILTER. Honestly, I don't know the semantics of filtering in that code. I suspect it's a simple match, but you could always try passing in a regex to see if you get what you want. Specifically, if you add "host1$", it should prevent it from matching host11, host10, or host111111.1111.
On Thu, Mar 12, 2020 at 10:11 AM kaloyan-s notifications@github.com wrote:
Hello Brian,
The tools you have created are awesome. However i am using the screen_creator and i am trying to filter by exact match, because i have lots of hosts in the same host group for example host1,host11,host111 When i try to add a graph using the filter option and choosing host1, the graphs of all 3 hosts (host1,host11,host111) are added to the screen. Can you let me know if there is an option to filter the exact host i need ?
Regards,
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BrianGallew/zabbix_tool/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC5MS6WS2SFG57UQEN2HB3RHECSHANCNFSM4LGPYSSA .
Thank you Brian,
I will try this and let you know if it works. Take care
Regards, Kaloyan
On Fri, Mar 13, 2020, 06:02 Brian Gallew notifications@github.com wrote:
Looking through the code, the hostname is passed through the the zabbix_api code as part of a FILTER. Honestly, I don't know the semantics of filtering in that code. I suspect it's a simple match, but you could always try passing in a regex to see if you get what you want. Specifically, if you add "host1$", it should prevent it from matching host11, host10, or host111111.1111.
On Thu, Mar 12, 2020 at 10:11 AM kaloyan-s notifications@github.com wrote:
Hello Brian,
The tools you have created are awesome. However i am using the screen_creator and i am trying to filter by exact match, because i have lots of hosts in the same host group for example host1,host11,host111 When i try to add a graph using the filter option and choosing host1, the graphs of all 3 hosts (host1,host11,host111) are added to the screen. Can you let me know if there is an option to filter the exact host i need ?
Regards,
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BrianGallew/zabbix_tool/issues/12, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAC5MS6WS2SFG57UQEN2HB3RHECSHANCNFSM4LGPYSSA
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BrianGallew/zabbix_tool/issues/12#issuecomment-598537327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFPADJ4LY3FVOOXOWA3L7OTRHGV43ANCNFSM4LGPYSSA .
Hello Brian,
The tools you have created are awesome. However i am using the screen_creator and i am trying to filter by exact match, because i have lots of hosts in the same host group for example host1,host11,host111 When i try to add a graph using the filter option and choosing host1, the graphs of all 3 hosts (host1,host11,host111) are added to the screen. Can you let me know if there is an option to filter the exact host i need ?
Regards,