• Checks if a certain port is accessible every xx seconds, and you can set a corresponding icon, icon color for up, and icon color for down with a mouseover tooltip.

    Can be in the bar at the top.

    Would be good for service provider forums, game forums for game servers, etc. Just a random idea. 🙂

    I'd love to do this myself but javascript isn't really my bag let alone nodeJS. I'm working on twilio (sms) notifications by picking apart @psychobunny's Chrome notifications since I've worked with Twilio a lot in the past, but even that is proving to be difficult for me, haha.

  • Plugin & Theme Dev

    Im not sure I understand,

    You mean you want to enter:

    HOST: example.com
    PORT: 1337

    HOST: example2.com
    PORT: 9000

    etc ...

    and have the server ping them every X seconds? and display up/down on the forum header?
    I would assume you want support for multiple hosts, right?

    hmm..


  • @bentael said:

    Im not sure I understand,

    You mean you want to enter:

    HOST: example.com
    PORT: 1337

    HOST: example2.com
    PORT: 9000

    etc ...

    and have the server ping them every X seconds? and display up/down on the forum header?
    I would assume you want support for multiple hosts, right?

    hmm..

    @bentael Right, like you could name a service, so for example:

    Service Name: "Super Duper Web Server"
    Server Host or IP: 127.0.0.1
    Service Port: 80
    Icon:
    Icon Colour (service up): Icon Colour (service down)
    Check frequency (seconds): 60

    Then the icon you select would show up in the header in the colour that relates to it's status. When you mouseover it would show service name.

    I could see this being useful for webhosts who have forums - they could list their webservers in the header, or game server hosts, game clan websites, little things like that. Was just a random idea I had.

  • GNU/Linux Admin

    Ha! Oh Twilio, I've used their service before. One of the best APIs I've used.

    Would be nice to have a plugin that'll text you when you get notified... though I imagine it could get a little hairy if you don't throttle well. (e.g. 4 texts all related to one topic (chuckle))


  • @julian said:

    Ha! Oh Twilio, I've used their service before. One of the best APIs I've used.

    Would be nice to have a plugin that'll text you when you get notified... though I imagine it could get a little hairy if you don't throttle well. (e.g. 4 texts all related to one topic (chuckle))

    Twilio is easily one of the best API's I've ever seen. It's so easy it's like the fisherprice of API's, haha.

    Yeah I was thinking of a way you could ensure you're only notified when you want to be, or select specific type only like mentions only or messages only, something like that.

  • Plugin & Theme Dev

    @theepiphany
    can you provide a couple of hosts w/ ports to test ping.

    Trying to see if I can ping client-side.


  • @bentael you got pm

  • Plugin & Theme Dev

    hmm .. i don't know if it's possible client-side.. it's not quite working for me.

    This thinks the host is always OPEN, ..

    anyone have an idea?
    according to this, it should work, where did I barf?

  • Admin NodeBB

    Tried ping({host: 'chi.bdit.ca', port: 9999}, onPing); said it is closed.


  • Everything shows open for me as well. Even the example that @baris gave.

    I'm not 100% sure you can check open ports via pure javascript except from maybe the client side? I've seen some javascript "port scanners" but I believe they check to see whether or not the client can access that port, not necessarily if it's online.


  • @bentael when I was researching it I came across this: http://www.hacksparrow.com/a-port-scanner-in-node-js.html

    Not sure if that's helpful or not, or how that works, but yeah.

  • Plugin & Theme Dev

    @theepiphany yea it's easier server-side (or in NodeJS in this case), but I was trying to have that done on the browser somehow.. to save some bandwidth on the server .. that could get really hairy if you have a lot of users online and a lot servers to ping.

  • Plugin & Theme Dev

    ill give it another shot tomorrow.. gotta finish up some stuff for my day-job.


  • @bentael Makes sense. Would probably be better to globally cache/save the status' and check them after a certain interval or something? Not sure.

  • Plugin & Theme Dev

    Still not successful client-side 😕 -- need server hAlp

  • GNU/Linux Admin

    Checked your jsBin from earlier, 9999 says it is closed again 😛

  • Plugin & Theme Dev

    @julian yea but i try some fake url it would say OPEN

    do you think that's because the fake url doesn't even resolve, so the onerror would trigger immediately?

    so I would need another way to resolve?

  • GNU/Linux Admin

    That could be worth a shot. Try overriding onerror to see if it is being run instead of onload?

Suggested Topics

| |