v0.1.0
I made some changes to the ping plugin.
Changes:
- No longer requires you to run EG as an Administrator
- No longer uses ping.exe
- No longer can end up with orphaned ping processes
- No longer can end up with orphaned sockets
- Removed the ping delay from the actions
- Removed the "ping string" from the plugin config
- Sets event names properly if no event name is given.
- Adds friendly name to event string if there is no "." in the string, and if no friendly name was supplied then it will add the host name instead
- Single threaded design, before there was a thread created for each host added. This no longer needs to be done.
- Dynamic delay in the thread to not cause a high processor time when a small number fo hosts are provided and also allow for optimal performance when many hosts are added.
- 50ms default ping timeout (If this ends up being an issue I will add the ability for user adjustment)
Here is an example of the naming convention change
In the Add Host
if you left
"Name of event to fire when host become alive:" blank or
"Name of event to fire when host become dead:" blank
then the program is going to set those to
IS_ALIVE and or IS_DEAD
if there is no "." in either the alive event or the dead event
if "Host Friendly Name" is blank then it will prepend the alive and or dead with the "Host Name" separated by a "."
If there is a "Host Friendly Name" supplied then it will prepend that separated by a "."
Add Host Action Config
Host Name: 192.168.1.1
Host Friendly Name:
Name of event to fire when host become alive:
Name of event to fire when host become dead:
the events you will end up with are
192.168.1.1.IS_ALIVE
192.168.1.1.IS_DEAD
Add Host Action Config
Host Name: 192.168.1.1
Host Friendly Name: TestDevice
Name of event to fire when host become alive: Alive
Name of event to fire when host become dead:
the events you will end up with are
TestDevice.Alive
TestDevice.IS_DEAD
Add Host Action Config
Host Name: 192.168.1.1
Host Friendly Name: TestDevice
Name of event to fire when host become alive: SomeDevice.Alive
Name of event to fire when host become dead:DeviceDead
the events you will end up with are
SomeDevice.Alive
TestDevice.DeviceDead
make sense??
The reason why you no longer have to run EG as Administrator is because only an Administrator is able to handle ARP requests. This is including ping.exe. I am now using WMI to do the work for me. which gets done by the system. and this has the privileges to do what needs to get done.