User Tools

Site Tools


wiki:network_mana:networkmonitoring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:network_mana:networkmonitoring [2019/09/25 15:51]
ghi created
wiki:network_mana:networkmonitoring [2023/02/13 16:15] (current)
ehe
Line 192: Line 192:
 [general] [general]
 # Monitor network. 0 means no monitoring. This is the default value. # Monitor network. 0 means no monitoring. This is the default value.
-monitor_network=0+monitor_network=1
 # Number of seconds to wait before first check. Default: 60 # Number of seconds to wait before first check. Default: 60
-first_check_delay=60+first_check_delay=1200
 # Interval in seconds between two monitoring when network is OK. Default: 1200 # Interval in seconds between two monitoring when network is OK. Default: 1200
-check_interval=1200+check_interval=120
 # Log level: # Log level:
 #  - 0: No messages #  - 0: No messages
Line 204: Line 204:
 #  - 4 or more: Script debugging, many messages #  - 4 or more: Script debugging, many messages
 # default is 0 # default is 0
-log_level=0 +log_level=3 
-# monitor_external_usb ​(since firmware v3.3):+# monitor_external_usb:​
 #  - 0: external usb is not monitored (no reset of external USB port), default #  - 0: external usb is not monitored (no reset of external USB port), default
 #  - 1: external usb is monitored (external USB port is reset whith all WAN modules when needed) #  - 1: external usb is monitored (external USB port is reset whith all WAN modules when needed)
Line 213: Line 213:
 # Server used to check if network is up or not. It can be an Ip adress or a name. Default: 8.8.8.8 # Server used to check if network is up or not. It can be an Ip adress or a name. Default: 8.8.8.8
 server=8.8.8.8 server=8.8.8.8
-#server="google.com"+#​server=google.com
 # Protocol used to check if server is reachable. Possible values are : # Protocol used to check if server is reachable. Possible values are :
 # - ping: will send ICMP ping to given server. Port is useless # - ping: will send ICMP ping to given server. Port is useless
Line 229: Line 229:
 # Actions is taken after a number of consecutive failure. # Actions is taken after a number of consecutive failure.
 # If parameter is 0, corresponding action will never be taken. # If parameter is 0, corresponding action will never be taken.
-# Number of failed ping before reconnecting service (using ​ConnMan ​command). Default is 3.+# Number of failed ping before reconnecting service (using ​connman ​command). Default is 3.
 ping_error_before_service_reconnect=3 ping_error_before_service_reconnect=3
-# Number of failed ping before restarting Ofono and ConnMan ​servers. Default is 5. +# Number of failed ping before restarting Ofono and Connman ​servers. Default is 5. 
-ping_error_before_servers_restart=5 +ping_error_before_servers_restart=20 
-# Number of failed ping before restarting Ofono and ConnMan ​servers and eth and modems hardware. Default is 10 +# Number of failed ping before restarting Ofono and Connman ​servers and eth and modems hardware. Default is 10 
-ping_error_before_network_hardware_reboot=10+ping_error_before_network_hardware_reboot=50
 # Number of failed ping before restarting board. Default is 20 # Number of failed ping before restarting board. Default is 20
-# If not 0, this parameter should be more than all other action parameters +# If not 0, this parameter should be more than all previous ​action parameters 
-ping_error_before_board_reboot=20+ping_error_before_board_reboot=100 
 +# Number of failed ping before actions are retried. Default is 0 (not done) 
 +ping_error_before_reset_to_first_action=0 
 </​code>​ </​code>​
  
Line 245: Line 248:
  
 If ''​ping_error_before_board_reboot''​= 0, then there will be no board reboot. Once all actions will be finished, the script will stop. If ''​ping_error_before_board_reboot''​= 0, then there will be no board reboot. Once all actions will be finished, the script will stop.
-It means that without reboot, ​no more actions will be takenWhen disabling ​the reboot of ''​networkmonitoring.py'',​ it is expected that the reboot comes from the user's application.+In that case, it is advised to set parameter ''​ping_error_before_reset_to_first_action''​ to a value greater than all previous action parameters. This will allow to reset to the first action and perform actions in loop without reboot
 + 
 +By defaultthe script is **enabled**It takes the first action after 20 minutes and check the connectivity by pinging ​''​8.8.8.8''​. Make sure that the network in which the gateway is installed allow this pingotherwise the gateway may reboot because of this script. If it is not the case, change ​the configuration of the server in this file, or disable it.
  
 ==== actions execution ==== ==== actions execution ====
wiki/network_mana/networkmonitoring.1569419496.txt.gz · Last modified: 2019/09/25 15:51 by ghi