New Plugin : NETMON - a network device monitor

that code is already fixed in github GitHub - amg0/NetMonitor: Network Monitor plugin for VERA version since v0.8. it is currently at v0.10 level.
can you please try that version and let me know if you still have problems

Hi amg,
I had already pulled v.10 from github to fix the issue, but it had the same behaviour as the version that I had previously been using from the app store. The other possibility is that I have got the wrong files from github, but I have checked against your link above and it looks like the latest version of L_netmon.lua

The issue is that the code says:

local value = (inverted>0) and (not device_def.success) or device_def.success

That is pretty much: (inverted and not success) OR success
So if a ping is received, success is true, but (Anything) OR (True) is always True.
hence “inverted” is ignored if a ping is received.

Using Inverted ~= success gives an exclusive-or function, so that if inverted ==false, value
= success, but if inverted is true, then value = not success.

So, yes, I had tried v0.10, and the fix I posted makes invert work the way I would expect, i.e. I have some devices that I monitor and want to be tripped when they go offline, (webcams, NAS etc). Others are normally off and I want to know when they go on (PC / TV) so I set those to inverted.

(That’s why I also changed the log wording; for a device that is turned off or is out of range, “no ping” is the proper response, sorry - just being pedantic :slight_smile: )

Cheers
Octo

understood. can you please try v11 on github/ I used a less sophisticated version than your code just for my simple brain to understand it later… but it should be the same I hope
let me know, thx for reporting the issue

1 Like

Hi,

I’ve been using netmon for a couple months now.

I don’t know why, but I noticed recently the icons are not changing when devices are detected. I just upgraded to v10 and that didn’t resolve the issue.

ALL devices on the status tab say “Offline” however if i click “test” the expected ones do get a pop-up which says “Online”. Nothing happens if they are actually offline.

Any thoughts on what may have changed?

Edit: just realized IPs showing unchanged since April 21.

I am not clear with the problem.
What is not changing ? The status of devices ? They do not go to tripped state ?

Can you enable debug mode , reload luup, and share logs ?

Just installed this plugin, but what goes wrong?

I add a text and IP address, then click save and reload, but get a popup that I have to save the changes.
So it seems not to work …

And thus there is nothing in the status tab.

hi, yes, the status of the devices are not changing. Also, I noticed in reactor that the status of the devices are not getting displayed.

I am sending you the log now. Thanks!

When I did this log, Robins Laptop, RobinsPhone, MaricarsPhone, and Maricars watch should all be pingable.


it was a bug fix. I have put a version 0.12 on GitHub GitHub - amg0/NetMonitor: Network Monitor plugin for VERA which fixes the issue
thx for reporting.

thanks I tried. It appears to be working. Thanks!

Edit: The inverted option is also working. Cheers.

When will the update be available in the app store?

As soon as Vera approves it.

Check.

Can I just upload all the files in de developer part?

Will it be updated automatically then when 0.13 comes out?
What to do when I want to remove the uploaded 0.12?

Thanks.

Ok, just installed 0.12, so far so good. But I have a question.

After I added 2 IP’s I got 2 new devices. Looks good. But is it the way that when you remove an IP,
you have to manually remove the device that was created?

Netmon does it for you based on the data in your device ´s configuration tab

Well then there is a bug. I saved, reloaded. IT went away in the status tab. But the device was stille there.

Strange, Can you share the value of the sticky device ‘s altid attribute ? And the content of the variables Targets and DeviceStatus of the NetMon device.

Did some testing again today. It look like it is working after all, but it takes a long time before the device is removed or added. Somewher between 5-10 minutes. Is that correct?

When a plugin creates or deletes a new device , it takes some time plus forces a luup reload so you get 2 reloads at least. So yes it can take a while and will only work once’s these reloads are done… in terms of duration of this process, your mileage may vary depending on your config

1 Like

Hi, not sure why I did not get any notifications on this thread; have finally spotted the response and tried V12. So far so good - thanks for the app and the support.

Cheers
Octo

1 Like

Hey, I just installed NetMon today and figured I would try it as another tool for Vera. I’ve installed it, created two instances, and NetMon seems to be doing it’s job, however, Reactor isn’t seeing it. W1se one posted above a Reactor scene which shows it being seen by Reactor, so I’m a little puzzled why I can’t find it. I’ve reloaded the engine, and Reactor just isn’t seeing the devices. It’s been a few hours, so I know it can sometimes take 10 or 15 minutes for devices to settle down, but this seems longer than expected.

Any thoughts?