geonode.monitoring.probes

Classes

BaseProbe

Functions

get_probe()

Module Contents

class geonode.monitoring.probes.BaseProbe[source]
static get_loadavg()[source]
static get_uname()[source]

returns list similar to https://docs.python.org/2/library/os.html#os.uname

static get_uptime()[source]

Get uptime in seconds

static get_mem()[source]
Returns dictionary with memory information (in MB) with keys:

all usage buffers free percent

static get_cpu()[source]
static get_disk()[source]

Returns a list of drives with capacity and utilization. Each list item contains:

  • Block device (e.g., /dev/sXX)

  • Total capacity (in bytes)

  • Used space

  • Free space

  • Utilization (as a percentage)

  • Mount point

static get_network()[source]

Returns a dictionary with IP information:

{
    ifname: {
        'mac': mac,
        'ip': ip,
        'traffic': {
            'in': txin,
            'out': txout
        }
    }
}
geonode.monitoring.probes.get_probe()[source]