SUSE / rmt

RPM repository mirroring tool and registration proxy for SUSE Customer Center.
Other
37 stars 46 forks source link

WIP: Collect uptime tracking data in daily heartbeat from connect-ng #1090

Closed chajain closed 4 months ago

chajain commented 4 months ago

Description

Uptime data is included in the data sent to SCC via RMT https://jira.suse.com/browse/CSE-504

Fixes # (issue)

Change Type

Please select the correct option.

Checklist

Please check off each item if the requirement is met.

Other Notes

Please use this space to provide notes or thoughts to the team, such as tips on how to review/demo your changes.

How to test this PR

On the client system clone https://github.com/SUSE/connect-ng/pull/202 ( this PR has the connect-ng changes for uptime tracking feature ) Also clone https://github.com/SUSE/uptime-tracker On the RMT system, clone this code Execute rails db:migrate to create the system_uptimes table Start the server bin/rails server -b 0.0.0.0 Register the system on client system using command suseconnect --url , it should populate the system_uptimes table with the entries from /etc/zypp/suse-uptime.logs on client system