Open fullmetalucard opened 8 years ago
No, it doesn't come from expansion. It's done before the business rules are processed.
I'd more suspect a problem the Business view in Thruk.
Just to be sure, could you set up a web UI interface (if you don't have it installed), and see if the /data
service appears in the Dependency tree ?
Hello,
Yes, I didn't mentioned it, but I did try with webui2, and the service didn't appear either.
Hi
I don't know if it's a bug or if i'm not aware of all we can do with bp_rule. I use them with regular expression, which is very very usefull to get directly all the services associated to a host. Actually i have this kind of bp_rule:
As far as I know, all the services associated to MyHost and MyHost2 are all shown when using bp_rule on navgis map (calling them with the bp_rule as a host) or seen in thruk interface; excepted for one service: the disks
My guess is that it might be because the disks, come from a macro expansion (via duplicate_foreach)
Here is the sample configuration of my hosts:
The result is that all oracle or tomcat services, cpu/load/mem (inherited from linux template) appear in Nagvis/thruk but no disks at all.
So I tried something like
MyHost,r:.* & MyHost,/data
But it doesn't work either. What's weird there is that if i launch a "shinken check", arbiter tells me it's ok but if i reload it, disk will be never shown. So I tried to voluntary put a wrong service in my bp_rule like
MyHost,r:.* & MyHost,/dataTEST
Then arbiter tells me i'm wrong and that no services called "/dataTEST" exists. So there is something strange about that. Shinken sees it well, but it doesn't appear with the bp_rule. Maybe this problem deals with expansion.
I was also wondering if it was due to the fact that only the $KEY$ of the duplicated_foreach was used as service_description, but it is not the case. I added "Disk : $KEY$" in it and the service didn't appear in my rule.
I don't know what to do to get those hidden disks. If somebody has an idea on the subject, it would be helpfull
Thx