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

added ping module #30

Closed
wants to merge 2 commits into from
Closed

added ping module #30

wants to merge 2 commits into from

Conversation

sasek333
Copy link

requires os's ping access

@swapagarwal
Copy link
Owner

Can we leverage an API call for this?

@sasek333
Copy link
Author

You mean like pyping? It requires root on linux machines. I'll check it in a week because from today it's vacation time :)


return output

ping_str = "-n 1" if platform.system().lower() == "windows" else "-c 1"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this platform thing is bugging me!

@swapagarwal
Copy link
Owner

Keeping in mind that it should be cross-platform compatible, we have two options: either use a python library (sockets / requests) to check website availability, or use an external service like Is It Up.
Hit me up after your vacations. Enjoy! 😄

@swapagarwal
Copy link
Owner

Hey @sasek333, will you be willing to complete this? 😄

@ghost
Copy link

ghost commented May 15, 2016

Actually @swapagarwal something's been bothering me for a while. The only use of ping module is to check if the internet connection is working or not.

And this condition is already satisfied when we are using messenger right? because it's only then we can use messenger right?

Am I missing something or is there something else to it?

@swapagarwal
Copy link
Owner

@shanmukhateja Well, this would check whether a website can be reached or not, say is github.com down or not?

@ghost
Copy link

ghost commented May 15, 2016

Oh OK so it was meant for another website's working state. Good :)

@VarunWachaspati
Copy link

@swapagarwal :If the intention is just to check whether a website is up or down, then we can request for the page from our host server if it returns a response then it is up right else if it times out for say continuously three packets then it must be down.

This way I guess cross compatibility will be maintained and purpose will also be served. If any other use case comes to your mind for which the above does not cover let me know.

@swapagarwal
Copy link
Owner

@VarunWachaspati Yes, we can implement this on our server itself, but that adds to the maintenance cost!

@Wert1996
Copy link
Contributor

Wert1996 commented Jun 6, 2017

May I take this up? How about implementing this using isitup.org to check whether a website is down or not?

@swapagarwal
Copy link
Owner

Added in #197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants