Doubt on where Data hitting to the database: reg

51 views
Skip to first unread message

Logunath K

unread,
Apr 21, 2023, 8:17:36 AM4/21/23
to open...@googlegroups.com
Ggretings...
                   Dear Federico,
                                           The devices are working fine in my  public server it's awesome, just I wanted to know, where exactly the code, the  data is hitting to the database when device push the data to the server. I know that information collected from the router/device is not directly pushed to the database like influxdb and sqlite.db. In the openwisp2 somewhere the code is written to push the data to the database. I couldn't see that code after researching also. Please let me know where I can see that.

Thanks in advance.

Federico Capoano

unread,
Apr 24, 2023, 9:21:38 AM4/24/23
to open...@googlegroups.com
The entry point for metric collection is here: https://github.com/openwisp/openwisp-monitoring/blob/master/openwisp_monitoring/device/api/views.py#L47-L140

From there on you can follow the imports to find how the data is written.

F.

--
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/CAJy2ivp38DHx2u%2BiYPn93KxG1yLkJc-pAWGw6VEu4HXAv%3D3xGA%40mail.gmail.com.

Manukumar NM

unread,
Apr 25, 2023, 7:50:16 AM4/25/23
to open...@googlegroups.com
oh okay...Thank you very much, Federico.

Logunath K

unread,
Apr 25, 2023, 11:45:28 AM4/25/23
to open...@googlegroups.com
Hi Federico, it's a bug or else how can i fix this local time issue in status bar. It's adding +5:30 hours to our local time. 
image.png

Now the time is 9:14PM but it's showing at 2:40 AM on the openwisp2 server.
Thanks in advance.

Federico Capoano

unread,
Apr 26, 2023, 8:41:06 AM4/26/23
to open...@googlegroups.com
Look at the timezone that it's set on OpenWrt.

Federico

Logunath K

unread,
May 2, 2023, 9:17:09 AM5/2/23
to open...@googlegroups.com
Hii Federico,
                     How to change the port number for the  "Send_Command" option. If I change the port number inside the server path "etc/ssh/sshd_config" it will change only for the server ssh port but it does not change it for "Send_Command" and "Firmware_Upgrade". Where I can change the port number for that. Because If my devices/router has a port 52421 it will through an error called connection refused. How can I solve this problem?

Thanks in advance

Federico Capoano

unread,
May 3, 2023, 8:01:41 AM5/3/23
to open...@googlegroups.com
Configuration, Access Credentials, select the main SSH credential used on all the devices and there you can change the SSH port.

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


Manukumar NM

unread,
May 3, 2023, 8:35:52 AM5/3/23
to open...@googlegroups.com
I have changed the number in Paramiko module of config.py file. It may work now.

Thanks for your valuable feedback Federico

Federico Capoano

unread,
May 3, 2023, 9:03:22 AM5/3/23
to open...@googlegroups.com
I do not recommend that solution as you will lose this whenever you upgrade your system.

Federico

Manukumar NM

unread,
May 3, 2023, 11:57:09 PM5/3/23
to open...@googlegroups.com
Oh I didn't know this...Thank you very much for info Federico

Reply all
Reply to author
Forward
0 new messages