OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: stefan21 on March 24, 2023, 12:57:11 PM

Title: *SOLVED * dpinger - two instances but only single gateway to monitor
Post by: stefan21 on March 24, 2023, 12:57:11 PM
OPNsense 23.1.4_1-amd64
FreeBSD 13.1-RELEASE-p7
OpenSSL 1.1.1t 7 Feb 2023

Box is defined as exposed host, sitting behind a fritzbox, ISP is Vodafone Germany.

Two single gateways configured:

Name    Interface    Protocol    Priority    Gateway    Monitor IP    RTT    RTTd    Loss    Status    Description    
      WAN_GWv4 (active)    WAN    IPv4    240 (upstream)    130.1.1.1    130.1.1.1    0.3 ms    0.0 ms    0.0 %    Online
   Interface WAN Gateway    
      WAN_DHCP6 (active)    WAN    IPv6    254          ~    ~    ~    Online
   Interface WAN_DHCP6 Gateway

The dashboard shows under services two dpinger instances:

dpinger    Gateway Monitor (WAN_GWv4)    
dpinger    Gateway Monitor (WAN_GWv4)

Has anybody a clue why?

I have a nearly identical box showing only one dpinger instance.

Thank's for any help to understand.
Title: Re: dpinger - two instances but only single gateway to monitor
Post by: franco on March 24, 2023, 01:53:13 PM
You probably have a duplicated gateway in the config.xml?

# grep -c "<gateway_item>" /conf/config.xml

How many gateways does it have?


Cheers,
Franco
Title: Re: dpinger - two instances but only single gateway to monitor
Post by: stefan21 on March 24, 2023, 04:10:36 PM
Hi Franco,

thank's for hopping on.

The result of the grep is "3".

regards,
stefan
Title: Re: dpinger - two instances but only single gateway to monitor
Post by: stefan21 on March 25, 2023, 01:23:42 AM
@Franco

What do you suggest to get rid of the error?
Title: Re: dpinger - two instances but only single gateway to monitor
Post by: Greelan on March 25, 2023, 04:55:58 AM
I'd guess remove the duplicate from config.xml
Title: Re: dpinger - two instances but only single gateway to monitor
Post by: stefan21 on March 25, 2023, 11:26:10 AM
Thank's for helping. That'll be easy. I didn't know that editing the config in a life system is possible.
Title: Re: *SOLVED * dpinger - two instances but only single gateway to monitor
Post by: franco on March 27, 2023, 09:18:26 PM
23.1.4 actually has a small patch to prevent duplicate gateway creation from the interfaces page which is the likely culprit.


Cheers,
Franco