Can Discourse Webhooks be used for reporting uptime to a 3rd party service e.g. hund.io ?
if so, How?
Can Discourse Webhooks be used for reporting uptime to a 3rd party service e.g. hund.io ?
if so, How?
If you just need to measure uptime, configure your tool to hit discourse.example.com/srv/status.
Exactly what I want! … as this is to report system uptime to someone visiting a public status page. I saw webhooks in the hund.io configuration page so I thought maybe that is something but I’ll try the Pingdom integration instead.
Thanks for help.
@pfaffman we are using Promethus Integration for advanced Stuff already … needed something to test discourse availability every few seconds and report to a 3rd party for a public status page. The solution by @Falco should work afaik but I’ll test and update how it goes.
Well, I don’t know whether I trust it.
https://community.yellowandblack.online/srv/status says OK, but https://community.yellowandblack.online/ returns a 500 error.
I tried it just now and got the “Congratulations” setup page.
But if you reload a few times, you’ll stop getting that. At least, that’s my experience.
/srv/status is meant for measuring uptime only and not whether the server is returning the right response.
I guess that depends on how you define “uptime”…
In a Layman’s term, Service is Properly functioning! e.g. if there is a 500 error then it should return something other than ok!
@pfaffman I can confirm that behaviour. My system runs behind a Nginx reverse proxy and I Get okay no matter what!
Ciao!
Ho provato a usare Uptime Kuma puntando a /srv/status ma mi dice “Connection Refused” (Connessione Rifiutata).
Sto usando Uptime Kuma in un container, così come Discourse. Inoltre, per entrambi sto usando traefik come proxy inverso. Uptime Kuma con altri siti web funziona molto bene, ma non riesco a raggiungere l’applicazione Discourse.
Puoi dirmi perché?
Grazie in anticipo! ![]()
Questo è un po’ strano, puoi condividere uno screenshot di come l’hai configurato? Devi impostarlo come monitoraggio parole chiave, cercando la parola chiave “ok” e il codice di stato 200
Ciao @itsbhanusharma e grazie per la risposta rapida! ![]()
Ho configurato solo il codice di stato, questa è la mia configurazione
Sto usando anche una rete docker “proxy_network” per Traefik.
Grazie ancora per il tuo aiuto!
uptime kuma è ospitato sulla stessa macchina di discourse?
EDIT:
Credo che questo sia il tuo problema.
Ciao,
sì, il server è lo stesso.
Ma con altri siti web funziona perfettamente, l’unico problema è con Discourse.
Forse un risolutore DNS interno?
Molto probabilmente si tratta di una non corrispondenza del certificato.
E il monitoraggio dell’uptime non rileverà problemi se il server stesso è inattivo, quindi si consiglia di posizionarlo su un server diverso da quello con il resto delle applicazioni.
Ciao, grazie per il consiglio.
L’applicazione Discourse ha un certificato SSL generato da Traefik utilizzando Let’s Encrypt.
Al momento sto utilizzando il controllo del container tramite socket docker, ma non è affidabile.
Posso provare qualcos’altro? Ho solo un server con docker.
Grazie ancora
modifica la configurazione per monitorare la parola chiave “ok”, disabilita il controllo ssl.
Cambia il tipo di monitor in parola chiave per primo.