Can change the configuration of the access point, but the health status is always critical

537 views
Skip to first unread message

HÒA TRẦN VĂN

unread,
Aug 3, 2021, 12:48:20 PM8/3/21
to OpenWISP
The access point successfully connects to openwisp and i can change its configuration at any time, but the health status is always critical. Can you help me get the right health status of the access point. Thank you very much.

Federico Capoano

unread,
Aug 4, 2021, 5:36:06 PM8/4/21
to open...@googlegroups.com
Hi,

By default OpenWISP Monitoring is configured to send ping checks on the management interface only, if ping fails or if the management interface is not set the health status is set to critical.

If you want the status to be OK without modifying the default settings, you have to ensure that the "management_interface" configuration option of the openwisp-config OpenWRT agent (in /etc/config/openwisp) is set to be an interface which OpenWISP can reach, for example, a management VPN tunnel, a VLAN or the LAN interface if OpenWISP is deployed in the same L2 network where the device is located.

For example, in many installations I use a tun OpenVPN interface for management, OpenWISP is deployed on the internet and can reach the devices via the OpenVPN tunnel tun0, in /etc/config/openwisp I have:

option management_interface 'tun0'

Alternatively, if you have deployed OpenWISP locally in the same L2 network where devices are located, you can set:

OPENWISP_MONITORING_MANAGEMENT_IP_ONLY = False

in the django settings.py and restart OpenWISP with "supervisorctl restart all".
More about this setting in the README of OpenWISP Monitoring: https://github.com/openwisp/openwisp-monitoring#openwisp-monitoring-management-ip-only .

I hope this helps!

Thanks for writing this question here.
Best regards
Federico Capoano

On Tue, Aug 3, 2021 at 11:48 AM HÒA TRẦN VĂN <tranva...@gmail.com> wrote:
The access point successfully connects to openwisp and i can change its configuration at any time, but the health status is always critical. Can you help me get the right health status of the access point. Thank you very much.

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/95d85e8c-80f9-42b6-888e-ffd4a5fe6855n%40googlegroups.com.

HÒA TRẦN VĂN

unread,
Aug 5, 2021, 10:27:14 AM8/5/21
to OpenWISP
Thanks for your detailed instructions. 

I have installed and directly connected OpenVPN. Now I have seen the management ip appear. 

But now the health status changed to problem because the Configuration Applied check failed as shown below,  even though I was able to configure the device (access point) from openwisp controller successfully.

Can you explain to me why not and how I have to fix it. Thank you so much

health_status.png

Vào lúc 04:36:06 UTC+7 ngày Thứ Năm, 5 tháng 8, 2021, f.capoano đã viết:

Federico Capoano

unread,
Aug 5, 2021, 10:44:49 AM8/5/21
to open...@googlegroups.com
This happens when the Configuration status has not been applied for more than 5 minutes, which should not happen if you are using openwisp-config correctly.
What's the status shown in the configuration tab?

F.

HÒA TRẦN VĂN

unread,
Aug 5, 2021, 11:34:53 AM8/5/21
to OpenWISP
Status displayed in configuration tab is modified.

Vào lúc 21:44:49 UTC+7 ngày Thứ Năm, 5 tháng 8, 2021, f.capoano đã viết:

HÒA TRẦN VĂN

unread,
Aug 5, 2021, 11:46:13 AM8/5/21
to OpenWISP
What's wrong with openwisp-config?
Vào lúc 22:34:53 UTC+7 ngày Thứ Năm, 5 tháng 8, 2021, HÒA TRẦN VĂN đã viết:

Federico Capoano

unread,
Aug 5, 2021, 12:36:52 PM8/5/21
to open...@googlegroups.com
Ensure it's running and ensure the configuration is being applied, try to change the configuration in the controller (eg: change the name of the device).

For further troubleshooting I suggest joining the support chat which is better for these kinds of small issues.

Best regards
Federico Capoano
OpenWISP OÜ
Harjumaa, Tallinn, Sepapaja tn 6, 15551
VAT: EE101989729


HÒA TRẦN VĂN

unread,
Aug 7, 2021, 9:26:43 PM8/7/21
to OpenWISP
I tried changing the name of the device and the configuration status changed to applied. However when using auto-registration to openwisp controls the configuration status is always modified and the health status is problem. So I have set OPENWISP_MONITORING_AUTO_DEVICE_CONFIG_CHECK = False for ok health status.

Vào lúc 23:36:52 UTC+7 ngày Thứ Năm, 5 tháng 8, 2021, f.capoano đã viết:
Reply all
Reply to author
Forward
0 new messages