Home Forum Community Monitor your uradmonitor!

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #2639
    Martin Roth
    Participant

    I noticed only after a few weeks that my uradmonitor was no longer able to send data, due to a problem with its network connection. I’ve looked for a solution to alert me when uradmonitor.com has not received data from my unit for a while, and came across uptimerobot.com: If you make a free account at uptimerobot.com, it allows you to monitor up to 50 user-defined services periodically and alerts you by e-mail when they are down.

    I found out through a bit of experimentation, that the URL http://data.uradmonitor.com/api/v1/devices/11000001/cpm is used to grab the data for the CPM graph, and normally responds with JSON data in the form
    [{"time":"1451319871","cpm":"17"},{"time":"1451320470","cpm":"14"},{"time":"1451321070","cpm":"17"}]

    If the unit is down and no data has been received for a while, it seems the JSON response instead is
    {"success":"[]"}

    Of course, replace the 11000001 in the URL with your device id!

    So you can set up an UptimeRobot as such:

    Monitor Type: Keyword
    Friendly Name: my uradmonitor data feed
    URL: http://data.uradmonitor.com/api/v1/devices/11000001/cpm (use your device id instead of 11000001!)
    Keyword: success
    Alert When: Keyword Exists
    Monitoring Interval: Maximum (120 Minutes)

    Attachments:
    #2641
    Martin Roth
    Participant

    Attached an image from the UptimeRobot dashboard

    Attachments:
    #2659
    Radu
    Keymaster

    That’s a good approach, however I’m not sure on how often the monitoring site calls the API.
    If too often, it might trigger the DoS protection and get ignored (interpreted as a sigh of deliberate server resources consumption).

    EDIT: Indeed if there is no recent data, the JSOn answer will show an empty array (no matches).

    • This reply was modified 6 years ago by Radu.
    • This reply was modified 6 years ago by Radu.
    • This reply was modified 6 years ago by Radu.
    #2995
    Ken Scott
    Participant

    I noticed only after a few weeks that my uradmonitor was no longer able to send data, due to a problem with its network connection.

    Just got me device today, already seeing this problem 3 times within as many hours. Link just drops requiring a hard reset of the device. For this price point this is very disappointing.

    #2997
    Radu
    Keymaster

    Hello Ken,

    The model A has a watchdog mechanism: if the network connection drops, it will reboot automatically after 10 minutes. This was added in the newer firmware versions, and your unit has it.

    I’d need more details to know what goes wrong with your setup, and a first thing you could test is connecting the unit to a different internet router. Then is changing the power adapter with another one. We’d need this two ruled out before anything else.

    L.EDIT: I see it up and running: https://www.uradmonitor.com/?open=110000E7

    • This reply was modified 5 years, 7 months ago by Radu.
    #2999
    Ken Scott
    Participant

    yes its up and running now, I have moved it between 2 different switches and experienced the same drop, both link lights go completely out as well as the link light on the switch. I will try a new power supply but suspect the cable that was shipped with it, its rather flimsy and has a knick in it, perhaps its faulty or damaged.

    I’ll report back if it occurs again.

    #3000
    Radu
    Keymaster

    Thanks for the update!

    #3102
    Ken Scott
    Participant

    I am not thinking the watchdog is working. It has dropped out several times over the past few weeks and I have to hard boot it to get it to come back. Currently offline again.

    Is there a way to update the frmware? I know you said mine already has it, however it does not appear to be functioning as you described.

    • This reply was modified 5 years, 6 months ago by Ken Scott.
    #3120
    Radu
    Keymaster

    Hello Ken,

    By any chance, is it possible to connect the unit to a different router and/or a different ISP?

    #3121
    Ken Scott
    Participant

    To answer your questions
    its been on 3 different routers all with the same behavior.
    Different ISP – no cant do that. I can tell you its a rock solid connection though.

    I am pretty sure its the unit itself as the link lights go dead and do not light up until its hard booted. Once that happens it is fine.

    I have just installed a new cable run with POE to it. we’ll see how this goes. at the very least I’ll be able to power cycle from my office.

    Ken

    #3122
    Radu
    Keymaster

    If that doesn’t help, I should be able to send you a custom firmware, to pinpoint the problem as the device sees it.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.