Previous release : New in 0.0.2 :
- WARNING : IT SEEMS THAT YOU NEED TO RUN EG WITH ADMIN RIGHTS FOR 0.0.2 TO WORK.
- The plugin now uses a pure python ping implementation. the windows ping.exe isn't used anymore
- All the threads can now be interrupted immediately (in 0.0.1, the code should wait for running ping.exe to end).
- The plugin should consume far less cpu time.
- The plugin param is no more needed ... unfortunatly, this breaks compatibility, with 0.0.1. :
- if you upgrade, please remove all plugin actions, remove the plugin, then re add ...
- The OnePing action now returns the response time in milliseconds in eg.result
- The GetHostsStatus action now returns the last response time in ms (if the host has ever responded to the pings !)
- Small changes and clean up on the messages sent to the console
I have written my first plugin !
Please, test it, or even better, have a look at the code and tell me how I can improve it.
The purpose of this plugin is to know when a host become alive or dead on the network.
The plugin send ping commands continuously and generate an event when the specified host start or stop responding.
if you set it to ping http://www.google.com for exemple, you'll get an event when you loose your internet connection.
If you TV is connected to your lan, you will get an event when you turn it on/off, ...
You won't get an "alive" event each time the host responds to the ping command. Only the first time.
The plugin can manage as many hosts as you set, and have a few usefull actions and options.
More in the readme.txt.
Thanks for reading !
- Experienced User
- Posts: 677
- Joined: Thu Aug 13, 2009 4:36 pm
- Location: Quebec, Canada
I do have a question about the configuration though. After adding a new host to ping, can I delete the macro or must I keep it in tact? The reason why I ask is that I also there is a remove host option as well so I assume this information is kept elsewhere.
eg isn't able to remenber your hosts between 2 sessions, it is only able to remenber actions ...
Regarding the 0.0.2, I don't think I'll be able to find a solution to make it run without admin rights. So if you want 0.0.2, you'll need to start eg with admin rights. If you use to autostart eg with windows, it is very simple, justs launch it with a scheduled task. in W7, you have the option to launch apps with admin rights from schedulled tasks.
Once I added a few hosts to monitor, I noticed an increasing sluggishness in EventGhost. Even trying to move the window resulted in hiccups.
The thing is that the problem is not CPU utilization; the CPU for the eg process stays at almost zero. It looks like the plugin interferes and delays other events in the EG windows event loop.
So I don't know; I don't really want to go into the code. Maybe something with blocking sockets at the wrong place. But I cannot use it as it is, since it delays not only the user interface, but also other events.
Any idea ?
Anyway, if and when you'll find some time...
I´m trying to get this plugin to work as I want it. I would really like to use the get action GetHostsStatus to work but when I "test" the OnePing action and the GetHostsStatus action nothing happens. I imagine that if I use the action Gethoststatus it would respond and I should see some kind of result in the log area. There is no problems adding a host, I receive a message that my host is alive.
Pls help me!
Kind regards D