![]() |
|
|||||||
| Beta Driver Development Discussion of new drivers, finding someone to write a new driver, etc... |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Network Monitor Driver
Version 1.5 Description: This driver will periodically monitor the status of a network device via TCP/UDP/HTTP and set a boolean field to indicate the device is up or down. Configuration is done via an XML file stored under /MacroFileRoot in the CQC program directory. See attached instructions for configuration details. Release Info TCP Monitors The TCP monitor will connect to <Device>:<Port>, optionally send the <SendString> upon successful connection and optionally search for <RecvString> in the response then disconnect. If no <RecvString> is specified then a simple socket connection is done and considered a success. UDP Monitors The UDP montior will send a UDP message using <SendString> to <Device>:<Port> and expect a response in the <Timeout> period. It will then optionally search the response for <RecvString>. HTTP Monitors The HTTP monitor will send an HTTP GET to the <URL> and optionally search the response for <RecvString>. If <FailOnError> is set to True then the monitor will expect a 200 type response any other response code will be considered a failure. If <FailOnError> is set to False, then any response will be considered a success. Ping Monitors The Ping monitor will send an ICMP ping to the <Device> and expect a response in the <Timeout> period. Polling Interval In order to prevent abusive polling the driver will calculate a minimum polling interval based on the specified polling intervals in <Global> and each monitor. This may cause some polling to occur at inaccurate intervals if all the intervals do not have a common divisor. For example, if you specify a polling interval of 45 seconds on one monitor and 30 seconds on a second monitor the driver will loop through the monitor list every 30 seconds. So the monitor with a 45 second interval will only be triggered on every other pass (every 60 seconds). Example Config Code:
Available in CQC 4.2.922+ ![]() Attachments (CQCDrvPack Created under CQC 4.1.907)
__________________
Wuench My Home Theater/Automation Website BlueGlass CQC Config Wuench's CQC Drivers Last edited by wuench : 04-20-2013 at 05:03 AM. |
|
#2
|
||||
|
||||
|
Can a simple ping be used with this driver?
Mick
__________________
Mykel Koblenz Illawarra Smart Home |
|
#3
|
|||
|
|||
|
Not right now. I originallly intended to add it, but ICMP isn't working in CML right now. If you try to build an ICMP "socket" it throws an exception.
__________________
Wuench My Home Theater/Automation Website BlueGlass CQC Config Wuench's CQC Drivers |
|
#4
|
||||
|
||||
|
I'll look into that after 4.0 is out.
__________________
Dean Roddey Software Geek Extraordinaire |
|
#5
|
||||
|
||||
|
Dean how are we going with the ICMP issue.
I read this today and it is something that I would like to try with CQC, but it requires ping to be working. (wanted to use the bluetooth optionmentioned a long time ago, but that never got of the ground) http://www.mysmarthomeblog.com/page--11.html Mick
__________________
Mykel Koblenz Illawarra Smart Home |
|
#6
|
|||
|
|||
|
Yeah, I was hoping to do this too. The IPhone has no open UDP/TCP ports when apps aren't running. ICMP is the only option.
__________________
Wuench My Home Theater/Automation Website BlueGlass CQC Config Wuench's CQC Drivers |
|
#7
|
||||
|
||||
|
I haven't had a chance to look at it yet. I'll try to take some time to look at it here before long.
__________________
Dean Roddey Software Geek Extraordinaire |
|
#8
|
|||
|
|||
|
Quote:
Dean, Is there a driver now that will do a Ping? I saw this article also and would like to be able to do it. Thanks |
|
#9
|
||||
|
||||
|
No, not yet. I'll take a look at it.
__________________
Dean Roddey Software Geek Extraordinaire |
|
#10
|
|||
|
|||
|
I use Eventghost and the driver I wrote for that to do a ping. It has a ping plugin.
__________________
Wuench My Home Theater/Automation Website BlueGlass CQC Config Wuench's CQC Drivers |
![]() |
| Thread Tools | |
| Display Modes | |
|
|