Page 2 of 3
Re: Ping
Posted: Mon Aug 08, 2011 8:16 am
by miljbee
Hello,
It has been a long time since I have used this plugin. But if I remember well, The One Ping Action does only one ping at the moment it is executed and doesn't store the result. You can get the result from eg.result right after you run this action.
If you want to use GetHostStatus, you will have to "Add Host" before. Then when you run GetHostStatus, a python dictionnary is built with all the properties of the hosts that you monitor (the ones you have added with "Add Host"). This python dictionnary is then stored in eg.result. If you want to view the result in the console, add a "print eg.result" right after you ran "GetHostStatus".
Re: Ping
Posted: Thu Aug 11, 2011 2:52 pm
by GBWebmaster
Hello,
can you say me, how I get a eventresult (Host_sleeps - Host_sleepsnot) without the action "Add Host"?
Thank you very much.
GBWebmaster
Re: Ping
Posted: Sun Aug 04, 2013 9:35 pm
by Sem;colon
Hello,
this plugin slows down my configuration a lot if a host is not active - it blocks the whole Eventghost completely for about 3 Seconds every time a ping doesn't reply. (unfortunately without generating additional CPU load)
It seems like the whole Eventghost has to wait for some reason, changing the delay time doesn't help.
For me, this issue makes the plugin unusable!
EDIT: I'm using EG 0.4.1.r1610 running as admin on Win8 x64
Re: Ping
Posted: Thu Aug 08, 2013 2:31 pm
by miljbee
yes, this problem has already been reported, you can try the first release of the plugin.
Sorry, but I won't fix it, I don't use it anymore.
Regards
Re: Ping
Posted: Sun Aug 11, 2013 9:05 am
by Sem;colon
miljbee wrote:yes, this problem has already been reported, you can try the first release of the plugin.
Sorry, but I won't fix it, I don't use it anymore.
That's a shame, I liked that plugin...
The first version works but has the known performances issues since it opens ping.exe every time a ping is send out, also the precess watcher will fill up your log with events you probably don't want to see(Process.Created.PING Process.Created.cmd and so on).
Since I want to keep on using this plugin, I had no choice but to modify it.
This new version (0.0.3) is more like version 0.0.1 but uses the "-t" option from ping.exe - so if you add a host, the PING process is created only once and runs until it is removed.
Since the "-t" option has no possibility to define a delay between pings, I removed this option for this - in fact that will cause problems when updating from an old version of Ping to this one.
If you used one of the previous versions, please remove all actions and the old plugin from your config before adding this one!
Re: Ping
Posted: Mon Aug 12, 2013 9:20 am
by miljbee
Thank you for your efforts, I am sure others will appreciate.
Re: Ping
Posted: Sun Oct 27, 2013 4:17 pm
by Pastis
yes thank you very much... its such a useful script !
Re: Ping
Posted: Tue Jul 15, 2014 1:00 am
by shaggy79
I know this is a old thread but I'm hoping sum one can help
please don't laugh

........ but what do I do with the _init_.py file

Re: Ping
Posted: Tue Jul 15, 2014 10:25 am
by karlik
shaggy79 wrote:I know this is a old thread but I'm hoping sum one can help
please don't laugh

........ but what do I do with the _init_.py file

Hi shaggy79,
replace it in the ping plugin folder. you find it in c:>program files>eventghost>plugins>ping.
Dont forget to follow the instructions of a previous post before you paste and replace the init file.
Re: Ping
Posted: Tue Jul 15, 2014 1:15 pm
by shaggy79
karlik wrote:
Hi shaggy79,
replace it in the ping plugin folder. you find it in c:>program files>eventghost>plugins>ping.
Dont forget to follow the instructions of a previous post before you paste and replace the init file.
Hi & thank you for the reply Karlik,
I eventually found where to put it

.
Still cant get it to do what I want though

It gets very confusing

lol
Am new to all this EG & stuff
How can I make it so it knows when I Get home and plays a sound (for now)
And play a different sound when I leave ?
Cheers Paul.
Re: Ping
Posted: Tue Jul 15, 2014 4:30 pm
by Sem;colon
Hello Paul,
if you execute the action "Add Host" you can define a an IP address or host name that should be pinged as well as the event that should appear if the host becomes available or unavailable.
You then have to execute that "Add Host" action to start the pinging process.
Now, if the host with the given IP (or name) becomes active an event is generated, the same happens whern the host becomes inactive (different event of corse).
You can use these events to trigger a macros with play sounds.
Re: Ping
Posted: Thu Jul 17, 2014 4:06 am
by shaggy79
Sem;colon wrote:Hello Paul,
if you execute the action "Add Host" you can define a an IP address or host name that should be pinged as well as the event that should appear if the host becomes available or unavailable.
You then have to execute that "Add Host" action to start the pinging process.
Now, if the host with the given IP (or name) becomes active an event is generated, the same happens whern the host becomes inactive (different event of corse).
You can use these events to trigger a macros with play sounds.
Hi Sem;colon
Thanks for the reply
I've tried what you said (I think

).
But it just seems to randomly play sounds now
weather I'm at home or not

Sorry to be a pain
Any ideas What I've done wrong
Cheers Paul.
Re: Ping
Posted: Thu Jul 17, 2014 4:57 pm
by Sem;colon
Hello Paul,
well, in most cases this happens because the smartphone you are using for that doesn't respond to ping requests (or other network request) if it is in standby in order to provide longer battery operation times.
In my opinion you could realize this requirement much better with an app on you mobile that generates events if your WLAN network is detected or by using geofencing.
I think on android you can use terRemote or AutoRemote in combination with Tasker to do that - how ever, this will be a bit more tricky then just pinging.
You could also take a look at the Nmap plugin, but I guess you will get similar results as with pinging.
Re: Ping
Posted: Thu Jul 17, 2014 9:57 pm
by shaggy79
I think I get what you mean, I have an iPhone 5s when my phone is locked it gives me the
Dead response as soon as I unlock my phone it gives me the alive response.
I'm gutted really wanted this to work.
So when I leave my house the cameras start recording (on motion detect) and when I return home they stop.
Is there any alternatives for the iPhone 5s ? Or a way to make it send a signal evry so often to my router?
I've just had a quick look and I can get EG app for iphone
Could this be used to send a signal to my router?
Cheers again,
Paul.
Re: Ping
Posted: Fri Jul 18, 2014 5:43 am
by krambriw
What you really should look for is an app that is supporting geofencing. As example, look at OwnTrack.
In addition you will need a message broker, the MQTT. If you invest in a cheap Raspberry Pi you can install the MQTT broker here. You can then use my MQTT Client plugin to receive events when they are happening. No need for pinging, no need for polling...
I will try to make a test setup in this way myself.
PS If you have another Linux box or you prefere a Windows version running in your Windows box, you can of course run the MQTT broker there as long as you make it reachable. For security reasons, I would keep the brooker separated and use ssl certificates.
So far I have found only a german article how to secure the connection via certificates. Please check here:
https://www.hagen-bauer.de/2014/05/inst ... ry-pi.html