zimbres / UptimeKumaRemoteProbe

A remote probe, implemented in C#, designed to interface with the 'Push' monitor type in Uptime Kuma
MIT License
29 stars 8 forks source link

Feature Request: Send All Results to Uptime Kuma Instance #9

Open oumlala opened 3 days ago

oumlala commented 3 days ago

Current Behavior

Currently, the Uptime Kuma remote probe only sends results to the Uptime Kuma instance when the HTTPS request returns an OK status.

Proposed Behavior

Modify the remote probe to send results to the Uptime Kuma instance for all HTTP status codes, not just OK responses.

Rationale

This change would provide more comprehensive monitoring data, allowing users to:

Implementation Suggestions

  1. Update the logic that determines when to send results
  2. Ensure all relevant data (status code, response time, etc.) is included in non-OK responses
  3. Consider adding a configuration option to allow users to choose between sending all results or only OK results

Additional Context

This feature would enhance the overall utility of the remote probe, providing users with more detailed insights into their monitored services.

zimbres commented 3 days ago

The push monitor tipo of UK dont allow such thing.

oumlala commented 21 hours ago

I've actually tested this functionality with Uptime Kuma's push monitor, and it does work with URL parameters. Specifically:

For example, when an HTTP check fails, I can successfully push:

As shown in the attached screenshot, this allows for more detailed monitoring information while maintaining compatibility with Uptime Kuma's push monitor functionality.

I'm willing to contribute and implement this feature if you agree.

Capture d’écran 2024-11-25 à 10 47 18