Skip to content
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

Enh : Add Previous State and Previous State Duration in logs #2

Open
DessaiImrane opened this issue Mar 4, 2014 · 1 comment
Open

Comments

@DessaiImrane
Copy link
Member

Hi,

It may be interesting if we could have Previous State and Previous State Duration in logs.
It can be useful to work out Availabilty ... in a very simple manner.

Here is a try of an algorithm :

If current_log.type ="Service Alert" or "Host Alert"
and current_log.state != previous_log.state

then
Add previous state and duration in current log

I think that : before writing a new log, shinken has all needed informations to find last state and last state duration so that it should be easy to add it when writing the log than calculating it afterward.

What do you think ?

@naparuba
Copy link
Member

I think we should not use log for what they are not done for, and such use case it one of them. Reporting should be with a real module that will compute it in a good way, and not just the simple availability ON/OFF. So even if it solve the availability problem, I do not solve the reporting one, and this one is the real "root problem" I think :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants