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

Allows setting ListenIP as "lo" loopback interface. #229

Merged
merged 3 commits into from
May 27, 2016
Merged

Allows setting ListenIP as "lo" loopback interface. #229

merged 3 commits into from
May 27, 2016

Conversation

felipe1982
Copy link
Contributor

  • listenip => 'eth0' was being ignored in zabbix-agentd.conf because $listen_ip was not being set when regex matched. now $listen_ip will be set to the IPaddress returned from $::ipaddress_eth0
  • added option to use interface "lo" (127.0.0.1)

* listenip => 'eth0' was being ignored in zabbix-agentd.conf because $listen_ip was not being set when regex matched. now $listen_ip will be set to the IPaddress returned from $::ipaddress_eth0
* added option to use interface "lo" (127.0.0.1)
$int_name = getvar("::ipaddress_${listenip}")
$listen_ip = $int_name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could just set $listen_ip directly, here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you suggesting not using $int_name, and replacing it with:
$listen_ip = getvar("::ipaddress_${listenip}") ? If $int_name is not used, then go for it. I didn't want to break the module by removing a variable I didn't understand.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It's not used anywhere else.

@jyaworski
Copy link
Member

Could you also make the same change here?

$int_name = getvar("::ipaddress_${listenip}")

@felipe1982
Copy link
Contributor Author

@jyaworski I hope I did it correctly :) I'm new to github. And I am only using Web UI.

@jyaworski jyaworski merged commit 69fc723 into voxpupuli:master May 27, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants