Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #9570] Multi select causes commands to fail #3130
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9570
Created by smadmin on 2015-07-07 07:34:12 +00:00
Using multi select on hosts or service causes commands to fail with message
while executed on a single object it works.
2015-08-10 09:31:27 +00:00 by elippmann cb0b3c8754b0e8b1dc96b240f5f40a084b0503c2
Updated by jmeyer on 2015-07-07 07:53:35 +00:00
which version of Icinga Web 2 are you using?
Updated by jmeyer on 2015-07-07 08:37:55 +00:00
I cannot reproduce this, neither with rc1 nor the latest master. Please make sure you've upgraded properly. (all files are up2date etc)
If the issue persists:
Updated by smadmin on 2015-07-07 09:39:55 +00:00
We see this in the log:
First line is from the single command, afterwards from selecting 5 services. It seems to fail from the second service on, so perhaps the pipe is blocked. Directly inserting command in a while loop does not block it and all commands are issued.
Updated by jmeyer on 2015-07-07 11:08:03 +00:00
Please apply the following patch and report whether it fixes the issue:
Updated by jmeyer on 2015-07-07 14:30:48 +00:00
Then there is something else wrong in your environment. Using fopen(, "w") is a blocking call, which will not succeed until something (Icinga 2) actually reads from the pipe. The patch I've proposed behaves the same as your while loop and issues one command at a time and continues after Icinga 2 retrieved the command.
I've even tried it myself to be really sure:
How did you install Icinga 2?
Updated by jmeyer on 2015-08-18 09:12:59 +00:00
We suspect that this issue is caused by your commandpipe listener implementation. Can you please make your devs have a look at it if there is something to improve when processing multiple commands?