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

Crontab through uptime kuma #4449

Closed
bbenjamin-sys opened this issue Feb 2, 2024 · 3 comments
Closed

Crontab through uptime kuma #4449

bbenjamin-sys opened this issue Feb 2, 2024 · 3 comments
Labels
area:monitor Everything related to monitors feature-request Request for new features to be added type:new proposing to add a new monitor

Comments

@bbenjamin-sys
Copy link

bbenjamin-sys commented Feb 2, 2024

πŸ“‘ I have found these related issues/pull requests

#1117 is the outcome that comes closest. But it doesn't specifically provide what's needed.

🏷️ Feature Request Type

New monitor

πŸ”– Feature description

Hello ,

I'm an avid user of Uptime Kuma for monitoring my web services, and I've found it incredibly useful for keeping track of uptime and performance. I have a suggestion for a new feature that I believe would greatly enhance its capabilities: the monitoring of cron scripts running on Linux systems.

Many systems and applications rely on cron jobs for routine tasks and maintenance. Being able to monitor these scripts directly from Uptime Kuma would provide users with a more holistic view of their system's health and reliability.

βœ”οΈ Solution

This feature could include:

  • Monitoring the execution status of each cron job (success or failure).
  • Tracking the execution time and alerting if a script takes longer than expected.
  • Addition an history
  • Add it to the alerting system
  • Optionally capturing and displaying the output of the script for debugging purposes.

This feature would be particularly useful for system administrators and developers who manage backend processes that are critical to their operations.

❓ Alternatives

I've found tools like crontab_ui or cronicle that come close, but are no longer maintained.

The others are tools that are not self-hosted and therefore not very trustworthy.

πŸ“ Additional Context

No response

@bbenjamin-sys bbenjamin-sys added the feature-request Request for new features to be added label Feb 2, 2024
@CommanderStorm
Copy link
Collaborator

I am going to close this issue as a duplicate of #1482 which has this PR open #3447

The remaining issues should be split into actual issues. An explaination/rationale why I think the points mentioned are not worth this issue staying open (subtracting the points covered by #1482):

  • Monitoring the execution status of each cron job (success or failure).

Push monitors can report the status via the status=down or status=up query parameter

  • Tracking the execution time and alerting if a script takes longer than expected.

Push monitors can report the ping/latency/execution time via the ping=NUMBER or ping=NUMBER query parameter

  • Addition an history

Unclear what is meant, I think already implemented

  • Add it to the alerting system

Monitors are part of the alerting system. Unclear what is meant by this point.

  • Optionally capturing and displaying the output of the script for debugging purposes.

Push monitors can report the message via the msg=MSG query parameter

If I misunderstood one/some of your points, we are (obviously) open to a discussion and can reopen the issue ^^

@CommanderStorm CommanderStorm closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
@chakflying
Copy link
Collaborator

I think "monitoring cron jobs" and "running monitors on a cron schedule" are 2 slightly different things, with one depending on the other to work.

Whether an active solution, instead of manually configuring push monitors, would be possible, is a different problem and requires investigation.

@chakflying
Copy link
Collaborator

Taking a look at croniter's guide, it looks like an active solution would still need to modify the jobs to insert HTTP pings to report the job status. In that sense the Push monitor already covers this use case fairly well.

@CommanderStorm CommanderStorm added area:monitor Everything related to monitors type:new proposing to add a new monitor labels Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:monitor Everything related to monitors feature-request Request for new features to be added type:new proposing to add a new monitor
Projects
None yet
Development

No branches or pull requests

3 participants