-
Notifications
You must be signed in to change notification settings - Fork 22
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
DEDUP not Working for HOST #146
Comments
I SIMULATE RETURN OK for HOST: Second one : Stream log say always the same : |
Ok , maybe found a solution for host dedup . I want confirmation this good for you . I change in sc_event.lua in function ScEvent:is_host_status_event_duplicated() on line 1102 : I test UP and DOWN with dedup and this is working ... (I put the unreacheable with an or in case .) |
And for services i changed to : if self.event.current_state ~= 0 then |
Here are some tests I have done without changing the code for a service:
last_check is equal to last_hard_state_change it is therefore a new event and not a duplicated one. We can also see that according to your tests, we can also notice that we could have a much more specific condition based on last_time_[warning|unknown|ok|critical] for a host
and here lies the issue. I can assure you that my host went from something to down but the last_check is not equal to the last_hard_state_change. Therefore, it is considered as a duplicated event which it is not. In that case, the only solution is to check each last_time_[up|down|unreachable] timestamp and check if it matches the last_hard_start_change which is what you've done. conclusionWhile it was easy to reproduce for hosts, it didn't happen for services. It doesn't mean it can't happen so I'm going to change it for a more reliable method. Thanks a lot for your feedback. I'll keep you updated |
Hello ,
Strange issue with activating DEDUP on Stream Connector on CENTREON 22.10 and 21.04
It works perfectly when dedup is activated for SERVICES but for HOST no.
Nothing is send .
I notice this behavior when polling :
First check give us 1/2(S)
Second give 2/2(H)
Third give 1/2(H)
Logs :
When i repass to green my Host (change IP) so it should be a state change !
Logs :
And when i disable dedup for host .... i see stream-connector sending HOST event as well ....
Do not hesitate to contact me or ask question .
The text was updated successfully, but these errors were encountered: