Changes for page Monitor Gateway
Last modified by Xiaoling on 2022/07/14 15:37
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -3,20 +3,26 @@ 3 3 {{toc/}} 4 4 5 5 6 -= 1. Introduction = 6 += **1. Introduction** = 7 7 8 +((( 8 8 This introduction shows how to use a script to monitor the gateway. The video link for this instruction is: [[https:~~/~~/youtu.be/8PieIwfSF_g>>url:https://youtu.be/8PieIwfSF_g]] 10 +))) 9 9 10 -[[image: https://wiki.dragino.com/images/thumb/d/dc/Monitor_gateway.png/600px-Monitor_gateway.png||height="456" width="600"]]12 +[[image:image-20220527111742-1.png]] 11 11 12 12 Monitor Gateway 13 13 14 14 15 -= 2. Steps = 17 += **2. Steps** = 16 16 19 +((( 17 17 ~1. Create account in ThingsSpeak and creat channel. 21 +))) 18 18 23 +((( 19 19 2. Download script from dragino site and move it to properly directory 25 +))) 20 20 21 21 (% class="box" %) 22 22 ((( ... ... @@ -31,7 +31,9 @@ 31 31 root@dragino-1baf44:~~# 32 32 ))) 33 33 40 +((( 34 34 3. change the script monitor_gateway.sh with properly users setting: 42 +))) 35 35 36 36 (% class="box" %) 37 37 ((( ... ... @@ -45,9 +45,13 @@ 45 45 CHAN_KEY='xxxxx' #Channel Write API of the channel for this gateway 46 46 ))) 47 47 56 +((( 48 48 ~1. run **/usr/bin/monitor_gateway.sh** to test if upload is good. 58 +))) 49 49 60 +((( 50 50 2. Add monitor_gateway.sh to cron work **/etc/crontabs/root** to make this script runs perdiocally, below is an example to update every 20 minutes 62 +))) 51 51 52 52 (% class="box" %) 53 53 ((( ... ... @@ -65,8 +65,11 @@ 65 65 */20 * * * * /usr/bin/monitor_gateway.sh 66 66 ))) 67 67 80 +((( 68 68 3. Reboot device. 82 +))) 69 69 84 + 70 70 = 3. Monitor Public IP = 71 71 72 72 The monitor_gateway.sh has been updated to upload the public ip of the device as well. ... ... @@ -75,6 +75,6 @@ 75 75 User can find the public ip in field7, the chart is not able to show the complete public ip, user can check that in the export. 76 76 ))) 77 77 78 -[[image: https://wiki.dragino.com/images/thumb/8/8f/Monitor_gateway_1.png/600px-Monitor_gateway_1.png||height="340" width="600"]]93 +[[image:image-20220527111850-2.png]] 79 79 80 80 Find Public IP
- image-20220527111742-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +58.8 KB - Content
- image-20220527111850-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +129.5 KB - Content