-
Notifications
You must be signed in to change notification settings - Fork 10
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
FR: Add option to add filters to NetBox requests #15
Comments
Try if this works for you 😃 |
@joni1993 Having one filter field per object type (i.e. one for devices and one for VMs) would be nice. What do you think? |
Hm, i don't know - i think multiple filter fields are a bit confusing. Normally you want to apply the filter to all objects - if you need two filters i think cloning the import source may be cleaner (one for the devices, one for the vms). We could also convert the two yes/no boxes to one select box like => Import: [Devices and VMs, only Devices, only VMs] |
Cloning the import source is exactly what we currently do. But this looks promising. |
That's interesting, this line wasn even touched - I will try again with VMs only, fetching both worked for me today. |
Could it be that your filter is too restrictive and the result is empty? I can see why the listColumns should fail if data is returned - anyway this shouldn't happen of course. |
This might be the case. Will test again: |
Couldn't reproduce it even with a filter that returns zero elements. |
Thank you for taking the time to test this. Will have a look to see what the response contains. |
Collection all the information in our current NetBox environment takes too long and runs into a timeout.
As Icinga might need different attributes from different devices I would propose to add a filter option to this module.
Appending a
?role=Server
(as an example) to the request URL would be great. This limits the amount of returned data and we can change the imported data based on the device type.A text field should be sufficient. The content should be added to the URL upon request.
Just putting this here as a reminder. Currently on Holidays but will try to give it a shot myself once I'm back. From what I've seen it should not be too difficult to implement.
The text was updated successfully, but these errors were encountered: