NetXMS Support Forum

English Support => General Support => Topic started by: bierkodzilla on May 12, 2018, 12:51:48 PM

Title: Monitor same IP from 2 NICs - netxms
Post by: bierkodzilla on May 12, 2018, 12:51:48 PM
Hello,
I would like to ask if someone knows how to prepare a setup like this:
I have 2 or more WANs and few external IP to monitor using ICMP using both WANs.
I am using ubuntu as a netxms server os, I created virtual NIC so I have e.g. NIC-A: 10.0.0.5 , NIC-B: 10.0.0.6
I set up config from my router side, ICMP from 10.0.0.5 goes through WAN1 , everything from 10.0.0.6 through to WAN2.
I've tested it from ubuntu using ping -I interfaceip it works.
How I configure netxms to use both interfaces for this?
I know It can be accomplish by setting up second server but I dont want to duplicate servers.
Does anyone know how to do it?
Thanks in advance for your help.


Title: Re: Monitor same IP from 2 NICs - netxms
Post by: Victor Kirhenshtein on May 14, 2018, 10:58:55 PM
Hi,

I'm afraid no easy solution here. You can run separate agent process use PING subagent - but you can not specify source IP in agent configuration, so you'll have to limit this agent process somehow to see only one interface. Other (probably easier) solution is to create script that will ping targets from correct interface and use it as external parameter or external parameters provider in NetXMS agent.

Best regards,
Victor