-
Notifications
You must be signed in to change notification settings - Fork 11
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
Ability to exclude subnets #45
Comments
Hi, great to hear. Currently, the monitoringips.txt gets the ips with Line 58 in 42e8a36
You are welcome to open am Pull request if you know how to implement such thing. I will leave this issue open for the future and my todo list. |
Appreciate the lack of time on your part, so I've done some searching and there exists a command 'grepcidr' which will solve this problem. Unfortunately the official package does not, but there exists a forked version 3 here which does. Any chance you could update the image with this command? (I downloaded the zip on my labserver and it was no efforts making and installing it) If so I can create a PR which would add the possibility to use CIDR as well. |
Compiled the linked package on another machine and made it available to the image. Confirming that the following command will identify the ip both if specified as an ip and in cidr notation:
|
Success! |
Hi, great to hear. |
No worries - not an expert myself. Perhaps I got lucky, but I downloaded it to a temp folder on my server and entered into it and ran "build". Copy the grepcidr file to the folder with your Dockerfile and add the following to it: `COPY grepcidr /usr/local/bin/grepcidr RUN chmod +x /usr/local/bin/grepcidr` |
Thanks. Got it to work. Will release it in the coming days. |
Hi, just found your tool and must say I allready love it very much. Thank you for the effort.
One question on exclusions: is it much work to enable CIDR notation in the monitoringips.txt file? I am frequently accessing my services via proxy services (work enforced), and I would like to be able to exclude entire subnets.
The text was updated successfully, but these errors were encountered: