-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
listenip in agent not resolving to IP address from network interface name #493
Comments
Hi @glafir, thanks for rising this issue. Can you provide the code you use to call this module? I assume you set explicitly set listenip? The used regex doesn't match your network name: puppet-zabbix/manifests/agent.pp Line 298 in 3ac150d
I think that's the issue. |
Oh, Yes, yes! so I did it $listen_ip = $listenip ? { But listenIP now is empty ((( |
I updated my patch. There is currently a typo in the code. Can you test it again? Can you paste the code you use to call the zabbix::agent class? |
It not working now. In zabbix-conf +ListenIP=enp0s18 ((( |
But if I write in regex my inet-faces, I get empty $listenIP /^(eth|lo|bond|lxc|ens|enp|vmbr|eno|tap|tun|virbr).*/ => ..... |
Oh, Yes! /^(eth|lo|bond|lxc|ens|enp|vmbr|eno|tap|tun|virbr).*/ => fact("networking.interfaces.${$listenip}.ip"), Add please to repo! Thanks! |
Full-code in listenip-section
|
We can do a new release as soon as #494 got reviewed and merged |
Hello!
A upgraded puppet-zabbix (v4.1.3 -> v6.3.0) then "listenip" in agent not resolv to address from networl face name.
In zabbix-agent config
ListenIP=enp0s18
But it is not IP-address. How I can resolve this problem?
The text was updated successfully, but these errors were encountered: