]> git.ipfire.org Git - oddments/collecty.git/log
oddments/collecty.git
3 years agoprocessors: Collect usage for all individual cores
Michael Tremer [Mon, 21 Sep 2020 09:50:03 +0000 (09:50 +0000)] 
processors: Collect usage for all individual cores

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agodaemon: Collect every plugin immediately after daemon launched
Michael Tremer [Mon, 21 Sep 2020 09:27:19 +0000 (09:27 +0000)] 
daemon: Collect every plugin immediately after daemon launched

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoplugins: Add a simple helper function to read integers from files
Michael Tremer [Sun, 20 Sep 2020 15:07:13 +0000 (15:07 +0000)] 
plugins: Add a simple helper function to read integers from files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoOpen all files in a with statement block
Michael Tremer [Sun, 20 Sep 2020 14:47:40 +0000 (14:47 +0000)] 
Open all files in a with statement block

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoTidy up imports of other modules
Michael Tremer [Sun, 20 Sep 2020 14:40:05 +0000 (14:40 +0000)] 
Tidy up imports of other modules

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agocolours: Fix importing functions
Michael Tremer [Sun, 20 Sep 2020 14:32:56 +0000 (14:32 +0000)] 
colours: Fix importing functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoloadavg: Fix legend alignment
Michael Tremer [Sun, 20 Sep 2020 14:27:09 +0000 (14:27 +0000)] 
loadavg: Fix legend alignment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agodaemon: Add plugins to scheduler when the daemon launches
Michael Tremer [Sun, 20 Sep 2020 14:23:19 +0000 (14:23 +0000)] 
daemon: Add plugins to scheduler when the daemon launches

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoDo not load util submodule in __init__.py
Michael Tremer [Sun, 20 Sep 2020 14:19:40 +0000 (14:19 +0000)] 
Do not load util submodule in __init__.py

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoRemove unused list
Michael Tremer [Sun, 20 Sep 2020 14:15:17 +0000 (14:15 +0000)] 
Remove unused list

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agore: Avoid pre-compiling regular expressions
Michael Tremer [Sun, 20 Sep 2020 14:10:13 +0000 (14:10 +0000)] 
re: Avoid pre-compiling regular expressions

Python has a cache for these

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoDrop unused Timer class
Michael Tremer [Sun, 20 Sep 2020 14:05:27 +0000 (14:05 +0000)] 
Drop unused Timer class

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agolatency: Give plugin a lower priority
Michael Tremer [Sun, 20 Sep 2020 14:02:06 +0000 (14:02 +0000)] 
latency: Give plugin a lower priority

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agodaemon: Allow launch without any plugins
Michael Tremer [Sun, 20 Sep 2020 13:59:57 +0000 (13:59 +0000)] 
daemon: Allow launch without any plugins

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoDo not log supported locales
Michael Tremer [Sun, 20 Sep 2020 13:58:49 +0000 (13:58 +0000)] 
Do not log supported locales

This does not seem to be very helpful to me

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agodaemon: Drop our own scheduler and use sched
Michael Tremer [Sun, 20 Sep 2020 13:54:54 +0000 (13:54 +0000)] 
daemon: Drop our own scheduler and use sched

Our own implementation was trying to be very accurate which
comes with a large overhead and is largely unnecessary.

This patch removes the threading approach which kept multiple
timers and replaces it with one simple deadline scheduler.

Plugins will have to ensure that they are not blocking the
collection.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agocolours: Fix string formatting for transparency
Michael Tremer [Sun, 20 Sep 2020 13:11:51 +0000 (13:11 +0000)] 
colours: Fix string formatting for transparency

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agologging: Tidy up code and align with other projects
Michael Tremer [Sun, 20 Sep 2020 12:56:27 +0000 (12:56 +0000)] 
logging: Tidy up code and align with other projects

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoFix import of _collecty module
Michael Tremer [Sun, 20 Sep 2020 12:53:11 +0000 (12:53 +0000)] 
Fix import of _collecty module

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoMove color functions into the color module
Michael Tremer [Sun, 20 Sep 2020 12:50:46 +0000 (12:50 +0000)] 
Move color functions into the color module

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 years agoDrop entropy plugin
Michael Tremer [Sun, 10 May 2020 18:41:27 +0000 (19:41 +0100)] 
Drop entropy plugin

This is no longer useful.

The Linux kernel has changed to only use the its internal PRNG
for /dev/random and /dev/urandom.

Once it is seeded, it will spit out as many random data as you
would like, but would not require an entropy pool being filled
up as much.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
6 years agoMakefile: Fix generating man-pages only
Michael Tremer [Fri, 2 Jun 2017 11:36:42 +0000 (12:36 +0100)] 
Makefile: Fix generating man-pages only

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoRemove TODO list
Michael Tremer [Fri, 21 Oct 2016 21:11:16 +0000 (23:11 +0200)] 
Remove TODO list

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agolatency: Show "Default Gateway" in headline for gateway
Michael Tremer [Fri, 21 Oct 2016 21:04:19 +0000 (23:04 +0200)] 
latency: Show "Default Gateway" in headline for gateway

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoprocessor: Show processor usage in percent instead of jiffies
Michael Tremer [Fri, 21 Oct 2016 20:41:31 +0000 (22:41 +0200)] 
processor: Show processor usage in percent instead of jiffies

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agodisk: Fix exporting graphs
Arne Fitzenreiter [Thu, 20 Oct 2016 19:55:52 +0000 (19:55 +0000)] 
disk: Fix exporting graphs

Colour module was not included

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agodisk: Catch error for SMART devices w/o tmp sensors
Arne Fitzenreiter [Wed, 19 Oct 2016 20:55:23 +0000 (20:55 +0000)] 
disk: Catch error for SMART devices w/o tmp sensors

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agolatency: Silence "no replies received" when no IPv6 connectivity
Michael Tremer [Mon, 5 Sep 2016 11:40:20 +0000 (13:40 +0200)] 
latency: Silence "no replies received" when no IPv6 connectivity

This will just clutter the log files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
7 years agoReplace Nones with UNKNOWN instead of NaN
Michael Tremer [Mon, 5 Sep 2016 11:19:35 +0000 (13:19 +0200)] 
Replace Nones with UNKNOWN instead of NaN

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agolatency: Ping 'gateway'
Michael Tremer [Sat, 19 Dec 2015 22:32:44 +0000 (23:32 +0100)] 
latency: Ping 'gateway'

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconntrack: Reformat now/avg/min/max values below graph
Michael Tremer [Fri, 18 Dec 2015 21:51:20 +0000 (22:51 +0100)] 
conntrack: Reformat now/avg/min/max values below graph

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoSplit the C module into multiple smaller files
Michael Tremer [Fri, 18 Dec 2015 21:27:55 +0000 (22:27 +0100)] 
Split the C module into multiple smaller files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMerge branch 'master' of ssh://git.ipfire.org/pub/git/collecty
Michael Tremer [Fri, 18 Dec 2015 20:46:14 +0000 (21:46 +0100)] 
Merge branch 'master' of ssh://git.ipfire.org/pub/git/collecty

Conflicts:
src/collecty/plugins/base.py
src/collecty/plugins/cpufreq.py
src/collecty/plugins/sensors.py

8 years agoIntroduce a colour scheme and fix design of the graphs
Michael Tremer [Fri, 18 Dec 2015 20:38:38 +0000 (21:38 +0100)] 
Introduce a colour scheme and fix design of the graphs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocpufreq: Fix graph generation
Michael Tremer [Tue, 15 Dec 2015 23:04:35 +0000 (23:04 +0000)] 
cpufreq: Fix graph generation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agosensors: Make the lines less fat
Michael Tremer [Tue, 15 Dec 2015 22:53:37 +0000 (22:53 +0000)] 
sensors: Make the lines less fat

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agosensors: Fall back to ACPI temperature sensor to processor temperature
Michael Tremer [Tue, 15 Dec 2015 22:51:29 +0000 (22:51 +0000)] 
sensors: Fall back to ACPI temperature sensor to processor temperature

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRefectoring of the main classes
Michael Tremer [Tue, 15 Dec 2015 21:51:02 +0000 (22:51 +0100)] 
Refectoring of the main classes

This is supposed to remove some too complicated and
redundant code.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRefectoring of the main classes test
Michael Tremer [Tue, 15 Dec 2015 21:51:02 +0000 (22:51 +0100)] 
Refectoring of the main classes

This is supposed to remove some too complicated and
redundant code.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRemove some unused code
Michael Tremer [Mon, 14 Dec 2015 23:44:50 +0000 (00:44 +0100)] 
Remove some unused code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconntrack: Sort graph areas by standard deviation
Michael Tremer [Mon, 14 Dec 2015 23:31:59 +0000 (00:31 +0100)] 
conntrack: Sort graph areas by standard deviation

This makes the graphs more readable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAllow getting the standard deviation of the plotted values
Michael Tremer [Mon, 14 Dec 2015 22:50:19 +0000 (23:50 +0100)] 
Allow getting the standard deviation of the plotted values

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMake RRD key names accessible as a list
Michael Tremer [Mon, 14 Dec 2015 22:01:46 +0000 (23:01 +0100)] 
Make RRD key names accessible as a list

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd some magic to collecty that makes the graph templates smaller
Michael Tremer [Mon, 14 Dec 2015 21:54:47 +0000 (22:54 +0100)] 
Add some magic to collecty that makes the graph templates smaller

This patch will automatically add DEFs for all DSes in a
RR database. For all DEFs and CDEFs will be VDEFs generated
with the current, minimum and maximum values.

That reduces the size of the RRD graph templates massively
and makes them better readable and editable.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoentropy: Remove trend line
Michael Tremer [Mon, 14 Dec 2015 00:19:00 +0000 (01:19 +0100)] 
entropy: Remove trend line

This does not add any useful information

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAllow generating thumbnails of graph images
Michael Tremer [Mon, 14 Dec 2015 00:11:58 +0000 (01:11 +0100)] 
Allow generating thumbnails of graph images

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMake the graph title optional
Michael Tremer [Sun, 13 Dec 2015 00:06:12 +0000 (01:06 +0100)] 
Make the graph title optional

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoBump version to 004 004
Michael Tremer [Sat, 12 Dec 2015 23:37:53 +0000 (23:37 +0000)] 
Bump version to 004

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoCommit all collected data in the write cache to disk when generating a graph
Michael Tremer [Sat, 12 Dec 2015 23:27:25 +0000 (00:27 +0100)] 
Commit all collected data in the write cache to disk when generating a graph

Therefore we will always get the latest data drawn
in the graph image even when writing data to disk
is happening delayed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd graphs for IP fragmentation
Michael Tremer [Sat, 12 Dec 2015 22:26:22 +0000 (22:26 +0000)] 
Add graphs for IP fragmentation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfigure: Check for all headers we use
Michael Tremer [Sat, 12 Dec 2015 18:09:52 +0000 (18:09 +0000)] 
configure: Check for all headers we use

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd df plugin
Michael Tremer [Sat, 12 Dec 2015 18:05:28 +0000 (18:05 +0000)] 
Add df plugin

The df plugin collects data about the filesystem and
inode usage.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoUpdate translations
Michael Tremer [Tue, 24 Nov 2015 02:41:47 +0000 (02:41 +0000)] 
Update translations

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years ago.gitignore: Ignore any graph files in the source directory
Michael Tremer [Tue, 24 Nov 2015 02:25:17 +0000 (02:25 +0000)] 
.gitignore: Ignore any graph files in the source directory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd system interrupts plugin
Michael Tremer [Tue, 24 Nov 2015 02:24:06 +0000 (02:24 +0000)] 
Add system interrupts plugin

This will graph all system interrupts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAutomatically guess image format when generating graphs
Michael Tremer [Tue, 24 Nov 2015 02:02:50 +0000 (02:02 +0000)] 
Automatically guess image format when generating graphs

This allows us to omit the --format parameter.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd lastupdate()
Michael Tremer [Mon, 23 Nov 2015 03:19:04 +0000 (03:19 +0000)] 
Add lastupdate()

Allow to request the latest dataset of the database so
that sensory data can be shown at various other places, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agosensors: Fix typo in property name
Michael Tremer [Mon, 23 Nov 2015 01:07:02 +0000 (01:07 +0000)] 
sensors: Fix typo in property name

Caused an exception when "minimum" did not yield anything

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoChange the background colour to white
Michael Tremer [Mon, 23 Nov 2015 01:04:37 +0000 (01:04 +0000)] 
Change the background colour to white

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd context switches plugin
Michael Tremer [Mon, 23 Nov 2015 00:56:23 +0000 (00:56 +0000)] 
Add context switches plugin

This monitors the number of context switches of the entire system.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomemory: Remove too much whitespace
Michael Tremer [Mon, 23 Nov 2015 00:26:13 +0000 (00:26 +0000)] 
memory: Remove too much whitespace

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRemove left-over variables from overlayed methods
Michael Tremer [Tue, 27 Oct 2015 00:52:14 +0000 (01:52 +0100)] 
Remove left-over variables from overlayed methods

These should not be there and caused a runtime error
that made rendering the conntrack graphs impossible.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoprocessor: Fix title
Michael Tremer [Tue, 27 Oct 2015 00:18:34 +0000 (01:18 +0100)] 
processor: Fix title

We shouldn't use useless abbreviations and words in headlines
should start with a capital letter.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocpufreq: Fix graph title
Michael Tremer [Tue, 27 Oct 2015 00:17:41 +0000 (01:17 +0100)] 
cpufreq: Fix graph title

There was an old title from the processor graph

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd graph info functionality
Michael Tremer [Mon, 26 Oct 2015 23:57:58 +0000 (00:57 +0100)] 
Add graph info functionality

The GraphInfo interface will return some basic information about
a graph (like title, etc.) and can be extended in the future.

This patch also changed the return value of the GenerateGraph
interface which is now a dictionary which is more extensible
and comes with some metrics about the graph now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agolocale: Fix fallback to default locale
Michael Tremer [Mon, 26 Oct 2015 23:57:15 +0000 (00:57 +0100)] 
locale: Fix fallback to default locale

A typo caused an exception.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoFix import of processor plugin
Michael Tremer [Mon, 26 Oct 2015 23:56:50 +0000 (00:56 +0100)] 
Fix import of processor plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoSync translations
Michael Tremer [Mon, 26 Oct 2015 17:55:55 +0000 (18:55 +0100)] 
Sync translations

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRename cpu plugin to 'processor'
Michael Tremer [Mon, 26 Oct 2015 17:18:16 +0000 (18:18 +0100)] 
Rename cpu plugin to 'processor'

It is internally called like that and the file should
have the same name.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agosensors: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:16:12 +0000 (18:16 +0100)] 
sensors: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agomemory: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:16:01 +0000 (18:16 +0100)] 
memory: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoloadavg: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:15:49 +0000 (18:15 +0100)] 
loadavg: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agolatency: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:15:38 +0000 (18:15 +0100)] 
latency: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agointerface: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:15:25 +0000 (18:15 +0100)] 
interface: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoentropy: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:15:12 +0000 (18:15 +0100)] 
entropy: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agodisk: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:15:00 +0000 (18:15 +0100)] 
disk: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocpufreq: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:14:44 +0000 (18:14 +0100)] 
cpufreq: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocpu: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:14:31 +0000 (18:14 +0100)] 
cpu: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconntrack: Localise plugin
Michael Tremer [Mon, 26 Oct 2015 17:14:09 +0000 (18:14 +0100)] 
conntrack: Localise plugin

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd code to localise graph templates
Michael Tremer [Mon, 26 Oct 2015 15:49:12 +0000 (16:49 +0100)] 
Add code to localise graph templates

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agolatency: Don't show full packet loss in background
Michael Tremer [Mon, 26 Oct 2015 13:26:22 +0000 (14:26 +0100)] 
latency: Don't show full packet loss in background

If a system has no connectivity to either IPv6 or IPv4 the background
will turn dark because 100% packet loss is detected.

We will now only paint the background dark for packet loss up to
99% and for 100% packet loss the line will not be continued so that
this is easily readable, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd options to generate localised graphs
Michael Tremer [Mon, 26 Oct 2015 12:04:29 +0000 (13:04 +0100)] 
Add options to generate localised graphs

This patch adds options to generate localised graphs
(in the right timezone and correct number formatting) from
command line and the dbus API.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoEnforce running with UTC
Michael Tremer [Fri, 23 Oct 2015 20:09:56 +0000 (22:09 +0200)] 
Enforce running with UTC

collecty records all data in UTC and writes them to the database
in UTC as well. When the system uses a different timezone the database
"corrects" the timestamps what we don't want here. Hence we force
resetting the timezone to UTC.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agolatency: Improve logging when host could not be reached
Michael Tremer [Tue, 11 Aug 2015 23:00:19 +0000 (01:00 +0200)] 
latency: Improve logging when host could not be reached

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoCatch exception when cpufreq is not supported on a system
Michael Tremer [Tue, 11 Aug 2015 22:11:50 +0000 (00:11 +0200)] 
Catch exception when cpufreq is not supported on a system

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agolatency: Rewrite latency module
Michael Tremer [Mon, 29 Jun 2015 20:49:02 +0000 (20:49 +0000)] 
latency: Rewrite latency module

This patch replaces the builtin python implementation
that pinged hosts by a Python C module that uses liboping.

liboping is able to ping IPv6 hosts as well and should
implement the ICMP protocol more appropriately.

The graph has been extended so that hosts will have a
line for latency over IPv6 and IPv4 if available and
the packet loss is merged from both protocols, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoplugins: Automatically replace None by NaN
Michael Tremer [Mon, 29 Jun 2015 20:44:18 +0000 (20:44 +0000)] 
plugins: Automatically replace None by NaN

rrdtool uses NaN to represent no value. Python uses None.
This patch automatically translates from None to NaN.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoBump version to 003 003
Michael Tremer [Sat, 6 Jun 2015 11:53:09 +0000 (11:53 +0000)] 
Bump version to 003

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agodaemon: Don't wait until the worker thread has finished after sending shutdown signal
Michael Tremer [Sat, 6 Jun 2015 11:47:18 +0000 (11:47 +0000)] 
daemon: Don't wait until the worker thread has finished after sending shutdown signal

There is no need to wait for each worker thread individually.
Instead we send all worker threads the shutdown signal and
wait after that until they all have finished.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agodaemon: Decrease minimum number of worker threads to two
Michael Tremer [Sat, 6 Jun 2015 11:45:12 +0000 (11:45 +0000)] 
daemon: Decrease minimum number of worker threads to two

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAdd version information
Michael Tremer [Sat, 6 Jun 2015 11:37:31 +0000 (11:37 +0000)] 
Add version information

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoclient: Allow better escaping for custom intervals
Michael Tremer [Sat, 6 Jun 2015 10:53:00 +0000 (10:53 +0000)] 
client: Allow better escaping for custom intervals

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoclient: Return the graph as a bytes object
Michael Tremer [Sat, 6 Jun 2015 10:52:05 +0000 (10:52 +0000)] 
client: Return the graph as a bytes object

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agographs: Add interval "month"
Michael Tremer [Sat, 6 Jun 2015 10:40:53 +0000 (10:40 +0000)] 
graphs: Add interval "month"

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoFix shebang of collectyd and collecty-client
Michael Tremer [Sat, 6 Jun 2015 10:39:49 +0000 (10:39 +0000)] 
Fix shebang of collectyd and collecty-client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocpu: Collect CPU stats once a minute
Michael Tremer [Sat, 6 Jun 2015 09:40:48 +0000 (09:40 +0000)] 
cpu: Collect CPU stats once a minute

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agointerface: Collect interface stats twice a minute
Michael Tremer [Sat, 6 Jun 2015 09:40:29 +0000 (09:40 +0000)] 
interface: Collect interface stats twice a minute

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agolatency: Remove default interval
Michael Tremer [Sat, 6 Jun 2015 09:40:02 +0000 (09:40 +0000)] 
latency: Remove default interval

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoloadavg: Collect data only once a minute
Michael Tremer [Sat, 6 Jun 2015 09:39:36 +0000 (09:39 +0000)] 
loadavg: Collect data only once a minute

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoGenerate graphs in memory
Michael Tremer [Wed, 27 May 2015 23:07:55 +0000 (23:07 +0000)] 
Generate graphs in memory

Remove Python 2 hack that created a temporary file on disk
in which the graph was written and then read the file content
back in. The Python 3 module allows us to write the graph
directly into a buffer.