Age | Commit message (Collapse) | Author |
|
|
|
This improves the durability of reading the statusfile. Previously,
the read process expected the file fields to be ordered in exactly the
right way or the read process would fail.
Now it reads the file line by line, selecting the correct string scan
based on the field the line starts with. Not that for efficiency, this
also checks to see if the value has already been read in and skips all
subsequent references to it.
|
|
|
|
This adds the `diskreadkb` and `diskwritekb` values to the status file
and updates relevant main code to pull this data.
Note that the default disk to pull metrics for is `sda`, but this can be
overridden at runtime with the environment variable `CMON_DISKDEV`.
Another useful value might be `nvme0n1`. For available options, check
`/sys/block/`.
|
|
This renames `memmax` to `memusedmax`, and `memavg` to `memusedavg` and
adds an additional data point `memtotal`.
|
|
The default net device was `wlan0`, and it was not previously
overrideable. Now it can be overridden by the `CMON_NETDEV` environment
variable.
|
|
This is set up to check for memory leaks verbosely, as well as notify of
leaked file descriptors.
|
|
|
|
|
|
This updates the relevant code to move the status struct from the heap
into the stack. This simplifies memory management and code.
|
|
This rewrites the meminfo constructor to take the struct as an input
argument so it can be allocated in the stack.
|
|
Currently monitors average and max values for cpu load and memory usage,
as well as network bytes transmitted and received, uptime, and overall
measurement counts. Stores state file at /tmp/cmon.status.
|