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

Change Event Log Check previous days to more specific time period #2090

Open
hendymen opened this issue Dec 3, 2024 · 4 comments
Open

Change Event Log Check previous days to more specific time period #2090

hendymen opened this issue Dec 3, 2024 · 4 comments

Comments

@hendymen
Copy link

hendymen commented Dec 3, 2024

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
I'd like to have the option to change the "How many previous days to search (Enter 0 for the entire log)" of an new Event Log Check to a smaller amount than 1 day. We want to check if an Event was logged in the last 5 minutes and then restart a certain service (by an attached task). We're experiencing issues with the check checking for a whole day. Because there can me multiple events during the day.

Or we would like it to only respond on new event log entries.

Additional context
Please see this picture

image
@P6g9YHK6
Copy link

P6g9YHK6 commented Dec 3, 2024

i had the same kind of issue yesterday i could not get a "on failure" tasks to only run once for a bluescreen issue
what is missing is a on failure once radio button when setting the tasks
1 run on each failure
2 run on the 1st failure only
image

@hendymen
Copy link
Author

hendymen commented Dec 3, 2024

i had the same kind of issue yesterday i could not get a "on failure" tasks to only run once for a bluescreen issue what is missing is a on failure once radio button when setting the tasks 1 run on each failure 2 run on the 1st failure only image

Yeah great idea, so in fact, your task can still be "On Check Failure" but the check itself should have the option to only mark itself as failed if a new event was logged (not checking the history previously the past event)!

@hendymen
Copy link
Author

hendymen commented Dec 3, 2024

Right now I am in a loop..

The check checks if the event was logged for the past day, it was logged, so it continues to the task, however the task restarts a service. However the restart of this service triggers a new event log.. And so on and so on.

But I can't use the check service, because the service keeps running despite the program fails, so it's not just a service check...

@P6g9YHK6
Copy link

P6g9YHK6 commented Dec 3, 2024

for now you should just script it then you could easily deal with these "inconvenience"

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

No branches or pull requests

2 participants