You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assignee: mfriedrich
Status: Resolved (closed on 2016-11-25 14:33:53 +00:00)
Target Version: 2.6.0
Last Update: 2016-11-25 14:33:53 +00:00 (in Redmine)
Backport?: Not yet backported
Include in Changelog: 1
Hi, I hope this is the right place (icinga1 had a single tracker for docs).
We discussed in IRC that it might be helpful to add some information on the 'range' function to the icinga2 docs. This is a very cool function because you can save writing while looping over 'a range of numbers', e.g. doing things like:
for (port in range(1, 48)) {
vars.iftraffic64_interface["Port " + port ] = {
iftraffic64_interface = port
iftraffic64_units = "g"
iftraffic64_bandwidth = 1
}
}
So you come up with one single rule for 48 different ports ... very useful.
If you type 'range' in docs.icinga.org you basically find 'ranges' of timeperiods only. The one place I could find at least some info on 'range' was hidden in a very fresh and advanced article by dnsmichi found here: https://www.icinga.org/category/technical/icinga-2/
Docs: Update API and Library Reference chapters
New sub chapters for global functions linked everywhere.
New API examples and clarifications.
fixes #13327
fixes #12449
This issue has been migrated from Redmine: https://dev.icinga.com/issues/12449
Created by ronator on 2016-08-16 09:28:48 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2016-11-25 14:33:53 +00:00)
Target Version: 2.6.0
Last Update: 2016-11-25 14:33:53 +00:00 (in Redmine)
Hi, I hope this is the right place (icinga1 had a single tracker for docs).
We discussed in IRC that it might be helpful to add some information on the 'range' function to the icinga2 docs. This is a very cool function because you can save writing while looping over 'a range of numbers', e.g. doing things like:
So you come up with one single rule for 48 different ports ... very useful.
If you type 'range' in docs.icinga.org you basically find 'ranges' of timeperiods only. The one place I could find at least some info on 'range' was hidden in a very fresh and advanced article by dnsmichi found here: https://www.icinga.org/category/technical/icinga-2/
Changesets
2016-11-25 14:31:10 +00:00 by mfriedrich 6c975da
Relations:
The text was updated successfully, but these errors were encountered: