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

nagios api template doesn't check if ipv4addr parameter exists #803

Open
nickhilliard opened this issue May 3, 2022 · 0 comments
Open

Comments

@nickhilliard
Copy link
Member

https://github.com/inex/IXP-Manager/blob/master/resources/views/api/v4/nagios/switches/default.foil.php#L75

ISSUE TYPE

Bug Report

SUMMARY

if you define a switch manually, there is no obligation to insert the ipv4 management address.

If this happens, then the output nagios template breaks nagios.

STEPS TO REPRODUCE
  • add switch manually, with no ipv4 management IP address
  • export nagios template and reload nagios
  • observe failure
WHAT SHOULD HAPPEN

Raise error? Output the hostname? depends on what nagios expects.

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

No branches or pull requests

1 participant