Comments (7)
writing a test case triggering the problem should be rather easy..
gonna give it a try..
from alignak.
Ok I could rather easily reproduce the problem in a test case.
from alignak.
I've a fix ready but I'm not sure it's enough about your described problem (it does fix the testcase I've though),
from where come your
from alignak.
from where come your
$(val1)$ and$(val2)$ in your config extract ?
said nothing, this is all from here : http://shinken.readthedocs.org/en/latest/08_configobjects/service.html
"relevant" extract :
duplicate_foreach
This is used to generate serveral service with only one service declaration.
Shinken understands this statement as : “Create a service for earch key in the variable”.
Usually, this statement come with a “$KEY$” string in the service_description
(to have a differente name) and in the check_command (you want also a
different check) Moreover, one or several variables can be associated to each key. Then,
values can be used in the service definition with $VALUE$ or $VALUEn$ macros.
define host {
host_name linux-server
...
_partitions var $(/var)$, root $(/)$
_openvpns vpn1 $(tun1)$$(10.8.0.1)$, vpn2 $(tun2)$$(192.168.3.254)$
...
}
define service{
host_name linux-server
service_description disk-$KEY$
check_command check_disk!$VALUE$
...
duplicate_foreach _partitions
}
I confirm I'm on a fix.. (it takes a bit longuer than my initial "easy" fix 'cause I'm going to rewrite most of the main functions involved in this "duplicate foreach" particular use case 'cause they're mostly bad (in their form and content).
from alignak.
If by any chance you still have no fix for that, you can have a look on Shinken side. It is supposed to be fixed. The fix is adding \s in regexp basically.
from alignak.
Seen that. But i'm doing more actually. Code smells, more problems than the one mentionned hère.
from alignak.
👍
from alignak.
Related Issues (20)
- Worker end of action - unicode exception
- Contacts tempaltes inheritance problem
- Missing properties in service instance from the templates
- Comments for hosts/services are not dated
- Comments for host/services are sent to all schedulers by the arbiter
- Update changelog HOT 1
- Graphite prefix is not correctly managed
- Receiver log for unknown host
- Check default retention configuration
- Catch a module initialization exception
- Configuration check exception, for realms HOT 1
- Module inner metrics raised an exception HOT 1
- Exception on configuration serialization
- duplicated slash after macro expansion of the main configuration file alignak.ini HOT 1
- _events, exception: dictionary changed size during iteration
- Daemon stop mode - arbiter is logging too much
- "Clean serialization" commit makes mod_webui fail HOT 2
- sysvinit support HOT 1
- website down HOT 1
- Current state of the project? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alignak.