25.7.11_1 host discovery issue

Started by tn881023, Today at 08:43:11 AM

Previous topic - Next topic
Morning all,

Devs - thanks so much for all your hard work, amazing product - I love OPNsense.

Just upgraded to 25.7.11_1, and one of my cores was pinned to 100% for 10 minutes with the new host discovery service - it stopped when I disabled host discovery.

This feels like a bug, but perhaps it's expected behaviour? I am running bare metal on an N150 mini pc with 4 x intel i226-v NICs running latest firmware. I have a PPPoe fibre connection, and 4 x VLANS.

Can provide additional info on request, but thought I'd post up here first for thoughts.

Thanks

It's been filed here https://github.com/opnsense/hostwatch/issues/8 for a closer look. I'll add this forum thread to the references.


Thanks,
Franco

Thanks Franco, will leave it off for the time being then!

I've updated Opnsense and checked out the new host discovery feature. I have to say it detected all my devices perfectly, but I'm still getting critical errors in the logs.

The log also shows that discovery is being performed on 10 interfaces, when in my case I only have two WAN/LAN interfaces.

By default, discovery is configured on all interfaces. I tried restricting it to LAN only, but the service stops and won't restart. If I switch it back to all interfaces, it works without problems. I have a couple of questions I'd like to ask.

Although I haven't had time to explore it, I imagine that if the logs record connected devices, they'll also record when they disconnect. If so, I'd like to know if there's a system in Opnsense that can be configured to notify me of these connections and disconnections via email or Telegram.

Another question concerns the Static IP Assignments section. In my case, my devices are connected with static IPs through Dnsmasq, and I'm wondering if it would be advisable to add them to the host discovery section. I've looked in the OPnsense documentation regarding this and it's not detailed.

Incidentally, and speaking more generally, many systems allow the management of information and other things through Telegram bots; it would be interesting to add that functionality to Opnsense.

I'm seeing connections logged only, not disconnects.

Monit was built for this.  I think we should be able to set up a File monitor for /var/log/hostwatch/latest.log and add a test with:

content = "new station"

Following the example here: https://forum.opnsense.org/index.php?topic=50310.msg256309#msg256309

I haven't tested it yet, though.