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

[QUESTION] statusCheck refresh ? #35

Closed
EVOTk opened this issue Jun 15, 2021 · 10 comments
Closed

[QUESTION] statusCheck refresh ? #35

EVOTk opened this issue Jun 15, 2021 · 10 comments
Assignees
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@EVOTk
Copy link
Contributor

EVOTk commented Jun 15, 2021

Hello,
With the help of the following documentation, I set up "statusCheck " : https://github.com/Lissy93/dashy/blob/master/docs/status-indicators.md

Dashy is installed in docker (via docker-compose) on a Debian 10.

However, I have some questions about how it works.

  • For example, on Jackett it does not work, the ping returns:
    {"successStatus":false,"message":"� Service Unavailable: Server resulted in ERR_FR_TOO_MANY_REDIRECTS "}
    My adress to Jackett is : http://192.168.2.42:9117/UI/Dashboard
    Do you know how to solve this problem?

  • I also have a problem for pinging the proxmox interface which is in https but for which I do not have a certificate because I use the local address: https://192.168.2.40:8006
    The ping returns: {"successStatus":false,"message":"� Service Unavailable: Server resulted in UNABLE_TO_VERIFY_LEAF_SIGNATURE "}
    Is it possible to disable certificate verification?

  • If the dashboard is already open and a service becomes unavailable, the status light does not change. There is no automatic refresh?

Thank you very much for your work, I discovered Dashy and I found him really good!

@EVOTk EVOTk added the 🤷‍♂️ Question [ISSUE] Further information is requested label Jun 15, 2021
@Lissy93
Copy link
Owner

Lissy93 commented Jun 16, 2021

Hmm, thanks for raising this- I've not seen that response before from any of my services. Usually ERR_TOO_MANY_REDIRECTS is an issue with the client (system or browser), or an error in the application setup, but in this instance I think it might be trying to redirect the request to an authentication page, or something similar. What response do you get if you just send a GET request to that URL with Postman?

The second error message UNABLE_TO_VERIFY_LEAF_SIGNATURE is, as you said because of the SSL certificate. A short-term solution would be to set NODE_TLS_REJECT_UNAUTHORIZED=0 and an env var when you run the app, although that will then be applied to all requests made through Dashy and isn't great in terms of security. A better long term solution would be for me to add an attribute under item, to enable the user to add custom headers to their request, and then you'd be able to specify your auth token, or whatever is needed for that particular app.

If the dashboard is already open and a service becomes unavailable, the status light does not change. There is no automatic refresh?

Correct, right now there isn't, tbh I hadn't thought about that, but it's a good idea. It would be easy to implement, so I'll add it to my todo list, and try and get that done this next week :) I'll keep this issue open, and let you know when that's done.

@EVOTk
Copy link
Contributor Author

EVOTk commented Jun 16, 2021

Thx for your reply !

For Jackett
On another machine I did a clean install of dashy and jackett, the problem is still present, I think it comes from Jackett. I am not familiar with all of this, but I installed Postman in order to get as much information as possible.

Here is the reponse provided by Postman, on a GET request to Jackett :
response.txt

--

For UNABLE_TO_VERIFY_LEAF_SIGNATURE
Indeed, I think that the ideal would be to be able to choose on a case-by-case basis whether you want to disable certificate verification or not.

--
For automatic refresh healcheck on dashboard :
Thank you for this feedback :) It would be really nice to have an automatic refresh!

--

I allow myself one more remark, do you think that it would be possible to provide a function so that the healcheck is executed if necessary on a url other than that of the service?

Example:
For Plex, I want the click to be redirected to https://plex.tv/web, but that the healthcheck monitor "http: 192.168.1.42: 32400"

Sorry for my english, i'm french, and i use google translate :(

@Lissy93
Copy link
Owner

Lissy93 commented Jun 16, 2021

do you think that it would be possible to provide a function so that the healcheck is executed if necessary on a url other than that of the service?

Yeah, that would certainly be possible, I think it's a good idea actually, because some self-hosted services have a dedicated endpoint for healthchecks. I will get try and that implemented some time this next week, along with an option for custom headers, and a refresh rate :)

@EVOTk
Copy link
Contributor Author

EVOTk commented Jun 16, 2021

Thank you very much, I will look forward to this.
Again thank you for your work.

@Lissy93
Copy link
Owner

Lissy93 commented Jun 22, 2021

Implemented in 8eeadbc or PR #52, which I'll merge this evening :)
You can now add statusCheckInterval under appConfig to an integer, in seconds and the status of your services will be checked at that interval. E.g. to check every 20 seconds:

appConfig:
  statusCheck: true
  statusCheckInterval: 20

Lissy93 added a commit that referenced this issue Jun 22, 2021
[FEATURE] Continuous status checking plus bug fixes
Fixes #52 and #35
@Lissy93 Lissy93 closed this as completed Jun 22, 2021
@EVOTk
Copy link
Contributor Author

EVOTk commented Jun 26, 2021

@Lissy93

The second error message UNABLE_TO_VERIFY_LEAF_SIGNATURE is, as you said because of the SSL certificate. A short-term solution would be to set NODE_TLS_REJECT_UNAUTHORIZED=0 and an env var when you run the app, although that will then be applied to all requests made through Dashy and isn't great in terms of security. A better long term solution would be for me to add an attribute under item, to enable the user to add custom headers to their request, and then you'd be able to specify your auth token, or whatever is needed for that particular app.

Please don't forget me for this :) Would you like me to open a new issue FEATURE_REQUEST] for this concern?

and for :

do you think that it would be possible to provide a function so that the healcheck is executed if necessary on a url other than that of the service?

@Lissy93
Copy link
Owner

Lissy93 commented Jun 27, 2021

Ah sorry, I had forgotten, I will address this this afternoon and get back to you here :)

@EVOTk
Copy link
Contributor Author

EVOTk commented Aug 26, 2021

Hello,
I apologize but I am not comfortable with this.
How do I make the ping ignore the signing of the https certificate? (UNABLE_TO_VERIFY_LEAF_SIGNATURE)

Thx

@RickyChan21
Copy link

Hello @EVOTk have been able to fix the issue with jackett statuscheck displaying ERR_FR_TOO_MANY_REDIRECTS?

@EVOTk
Copy link
Contributor Author

EVOTk commented Sep 13, 2021

Hello,
No, but in the end I didn't search much because I no longer use Jackett. I now use Prowlarr which doesn't have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants