Polling both IPv4 and IPv6

Started by Storm-Donovan, August 08, 2022, 08:05:51 PM

Previous topic - Next topic

Storm-Donovan

We've set up our NetXMS with DNS hostnames in the Primary Host Name field.  This is all good until we have an issue where IPv6 or IPv4 is not working, but the other IP Version is working.  I had a router paging down this morning, but it was up - the only problem was that it had stopped responding on IPv6.  I was able to reach it on IPv4.

Is it possible to poll both IPv4 and IPv6?  And then it could minor alarm saying "Router is not reachable by IPv6, it is reachable by IPv4"

I don't see an option for this in the configuration, maybe I'm missing it or maybe this is something that could be added in the future?

Filipp Sudanov

By the way, what was exactly status of the node when IPv6 problem occurred? Was it unreachable? Currently on status poll, if node does not respond server should try to ping all IP addresses on all interfaces - this way server would know that the node is up, but there will be no communication to agent or SNMP.

Current approach, when hostname is resolved into single IP address and then communication is done to that address is quite deep in the architecture of NetXMS. In theory it could be possible to try other addresses on status poll, but this would be quite big programming effort and status poll would last for way longer when a node legitimately would go down.

What can be done however - we can add server setting to prefer IPv4 addresses when resolving node's hostname.

Storm-Donovan

Hi Filipp,

The Alarm was Node Down.  The prefer IPv4 option would be perfect.

Thanks!

Filipp Sudanov

I've created an issue for this feature, you can watch the issue to see when it's done (also there's no exact plan when this could happen).
https://track.radensolutions.com/issue/NX-2294