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

pushover integrations and ping logs #78

Closed
brumle80 opened this issue Aug 31, 2016 · 5 comments
Closed

pushover integrations and ping logs #78

brumle80 opened this issue Aug 31, 2016 · 5 comments

Comments

@brumle80
Copy link

running healthchecks with uwsgi/emperor and there's 2 problems that I can't seem to find a cause for:

  1. checking the ping logs only shows:
Log is empty. This check has not received any pings yet.
  1. tried enabling pushover notifications and ended up with a 404


Using the URLconf defined in hc.urls, Django tried these URL patterns, in this order:

    ^admin/
    ^accounts/
    ^ ^ping/([\w-]+)/$ [name='hc-ping-slash']
    ^ ^ping/([\w-]+)$ [name='hc-ping']
    ^ ^api/v1/checks/$
    ^ ^api/v1/checks/([\w-]+)/pause$ [name='hc-api-pause']
    ^ ^badge/([\w-]+)/([\w-]{8})/([\w-]+).svg$ [name='hc-badge']
    ^ ^$ [name='hc-index']
    ^ ^checks/$ [name='hc-checks']
    ^ ^checks/add/$ [name='hc-add-check']
    ^ ^checks/([\w-]+)/
    ^ ^integrations/ ^$ [name='hc-channels']
    ^ ^integrations/ ^add/$ [name='hc-add-channel']
    ^ ^integrations/ ^add_email/$ [name='hc-add-email']
    ^ ^integrations/ ^add_webhook/$ [name='hc-add-webhook']
    ^ ^integrations/ ^add_pd/$ [name='hc-add-pd']
    ^ ^integrations/ ^add_slack/$ [name='hc-add-slack']
    ^ ^integrations/ ^add_slack_btn/$ [name='hc-add-slack-btn']
    ^ ^integrations/ ^add_hipchat/$ [name='hc-add-hipchat']
    ^ ^integrations/ ^add_pushbullet/$ [name='hc-add-pushbullet']
    ^ ^integrations/ ^add_pushover/$ [name='hc-add-pushover']
    ^ ^integrations/ ^add_victorops/$ [name='hc-add-victorops']
    ^ ^integrations/ ^([\w-]+)/checks/$ [name='hc-channel-checks']
    ^ ^integrations/ ^([\w-]+)/remove/$ [name='hc-remove-channel']
    ^ ^integrations/ ^([\w-]+)/verify/([\w-]+)/$ [name='hc-verify-email']
    ^ ^docs/$ [name='hc-docs']
    ^ ^docs/api/$ [name='hc-docs-api']
    ^ ^about/$ [name='hc-about']
    ^ ^privacy/$ [name='hc-privacy']
    ^ ^terms/$ [name='hc-terms']
    ^ ^pricing/$ [name='hc-pricing']
    ^ ^billing/$ [name='hc-billing']
    ^ ^invoice/([\w-]+)/$ [name='hc-invoice']
    ^ ^pricing/create_plan/$ [name='hc-create-plan']
    ^ ^pricing/update_payment_method/$ [name='hc-update-payment-method']
    ^ ^pricing/cancel_plan/$ [name='hc-cancel-plan']
    ^ ^pricing/get_client_token/$ [name='hc-get-client-token']

The current URL, integrations/add_pushover/healthchecks.****.no, didn't match any of these.

anything I can do to test/provide more logs, let me know.

and thanks for fixing the profile not found error :)

@cuu508
Copy link
Member

cuu508 commented Aug 31, 2016

Thanks for reporting these.

On the "Log is empty" issue:

  • when you request the ping URL, do you get a response with "OK" string in it?
  • when logged in the app and looking at your checks, does the "Last Ping" value look correct for the check you just pinged?
  • if you look at the database, api_ping table, do the pings show up there?

On the Pushover issue:

  • at which step exactly do you get the 404? Is it when you click on "Add Integration" or when getting redirected back from Pushover's site?
  • does your PUSHOVER_SUBSCRIPTION_URL look something like https://pushover.net/subscribe/somethingsomething?

@brumle80
Copy link
Author

pushover: ignore it, I had done a pebcak/brainfart and set the PUSHOVER_SUBSCRIPTION_URL wrong...

empty ping log: I get the "OK" string, last ping looks normal, tables shown below, removed ip's except my own in last line where I tested it manually.

+----+---------------------+----------------+--------+------------------------------------------------------------------------------+----------+--------+------+
|  1 | 2016-08-30 14:01:53 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |    1 |  
|  2 | 2016-08-30 14:20:20 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |    2 |  
|  3 | 2016-08-30 15:19:48 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |    3 |  
|  4 | 2016-08-30 16:23:56 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |    4 |  
|  5 | 2016-08-30 17:20:43 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |    5 |  
|  6 | 2016-08-30 18:21:31 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |    6 |  
|  7 | 2016-08-30 19:22:01 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |    7 |  
|  8 | 2016-08-30 20:21:51 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |    8 |  
|  9 | 2016-08-30 21:21:30 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |    9 |  
| 10 | 2016-08-30 22:20:46 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   10 | 
| 11 | 2016-08-30 23:21:49 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   11 | 
| 12 | 2016-08-31 00:19:53 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   12 | 
| 13 | 2016-08-31 01:20:45 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   13 | 
| 14 | 2016-08-31 02:21:02 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   14 | 
| 15 | 2016-08-31 03:20:49 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   15 | 
| 16 | 2016-08-31 04:20:49 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   16 | 
| 17 | 2016-08-31 05:20:23 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   17 | 
| 18 | 2016-08-31 06:20:26 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   18 | 
| 19 | 2016-08-31 07:20:50 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   19 | 
| 20 | 2016-08-31 08:20:47 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   20 | 
| 21 | 2016-08-31 09:19:43 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   21 | 
| 22 | 2016-08-31 10:20:46 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   22 | 
| 23 | 2016-08-31 11:20:31 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   23 | 
| 24 | 2016-08-31 12:20:42 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   24 | 
| 25 | 2016-08-31 13:20:35 | *.*.*.*   | GET    | curl/7.29.0                                                                  |        5 | http   |   25 | 
| 26 | 2016-08-31 13:21:30 | 192.168.110.25 | GET    | Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 |        5 | http   |   26 |
+----+---------------------+----------------+--------+------------------------------------------------------------------------------+----------+--------+------+

@brumle80
Copy link
Author

not critical, but the notification email should use the site url automatically instead of healthchecks.io if it's possible without manually editing all the templates :)

Hello,

This is a notification sent by healthchecks.io.
The check test has gone DOWN.

Here is a summary of all your checks:

@cuu508
Copy link
Member

cuu508 commented Sep 1, 2016

Empty ping log: please check in the accounts_profile table the values of ping_log_limit column. The default value is 100, and that is what you should see there. If, for some reason, it was 0, that would explain the empty ping log.

I created a separate issue for the hardcoded healthchecks.io: #79

@brumle80 brumle80 closed this as completed Sep 1, 2016
@brumle80
Copy link
Author

brumle80 commented Sep 1, 2016

you are indeed correct, no idea why it was set to zero, but I've changed it and it now works perfectly :)

thank you for the help, love the app, have to run it in house due to security rules.

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