Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
/ mp-activityFile Public archive

MAD plugin to touch a .active file when there is an active connection to RGC on a device, write devices IPs to a file

License

Notifications You must be signed in to change notification settings

crhbetz/mp-activityFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mp-activityFile

MAD plugin to touch a .active file when there is an active connection to RGC on a device and/or write device IPs to a .ips file.

Attention - 3.0 breaking change (MAD scalability / asyncio)

Version 3.0+ of this plugin has been reworked to operate on the MAD scalability update (currently as of Nov. 2021 on MAD branch redis_mitm_mapper), which relies on asyncio. I have no plans for backwards compatability.

Description

This very simple plugin will touch a file called $origin.active in the folder you configured as files-folder in MAD (default: files/ inside your MAD folder) for every device that currently has RGC connected to MAD. Thus, you can identify a devices RGC connection status by looking at the last-modified time of the corresponding .active file.

This differs from the info you can get from the MADmin status page, as the status page only denotes the last time of successful data transmission from PogoDroid.

In another file called $origin.ips, it will store internal and external IPs of your devices separated by a comma.

Setup

The plugin should work out of the box. In the plugin.ini file, you can set the check interval in seconds and disable the logline showing all "touched" device-files with the time of the last data from RGC. Either mode can be disabled by setting the corresponding interval to 0. You can add a new section - where the name of the section is the status-name you set in MADs config - to configure the following values per instance (showing the default values):

[settings]
activityinterval = 60
ipinterval = 1800
successlog = True
iplog = False

About

MAD plugin to touch a .active file when there is an active connection to RGC on a device, write devices IPs to a file

Topics

Resources

License

Stars

Watchers

Forks