collecty.git
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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.

5 years agoExpand RRD files to hold data up to five years
Michael Tremer [Wed, 27 May 2015 23:02:54 +0000 (23:02 +0000)] 
Expand RRD files to hold data up to five years

5 years agoMigrate to Python 3
Michael Tremer [Wed, 27 May 2015 15:46:20 +0000 (15:46 +0000)] 
Migrate to Python 3

5 years agoAdd cpufreq plugin
Michael Tremer [Tue, 26 May 2015 23:14:00 +0000 (23:14 +0000)] 
Add cpufreq plugin

5 years agoImplement worker thread concept
Michael Tremer [Tue, 26 May 2015 17:18:38 +0000 (17:18 +0000)] 
Implement worker thread concept

The threading model has been move from the plugins into
a worker thread model that has a constant number of threads
and should therefore waste even less resources.

5 years agoDo not crash write queue when a RRD file could not be written
Michael Tremer [Mon, 25 May 2015 21:54:27 +0000 (21:54 +0000)] 
Do not crash write queue when a RRD file could not be written

5 years agoconfigure: Call python just python
Michael Tremer [Mon, 25 May 2015 21:14:42 +0000 (21:14 +0000)] 
configure: Call python just python

5 years agoAdd sensors.py to POTFILES.in
Michael Tremer [Mon, 25 May 2015 21:13:05 +0000 (21:13 +0000)] 
Add sensors.py to POTFILES.in

5 years agodisk: Convert temperatures to Kelvin
Michael Tremer [Mon, 25 May 2015 21:08:11 +0000 (21:08 +0000)] 
disk: Convert temperatures to Kelvin

5 years agoCreate the object table only once and cache it
Michael Tremer [Mon, 25 May 2015 20:58:12 +0000 (20:58 +0000)] 
Create the object table only once and cache it

5 years agoNormalise the filenames of the RRDs
Michael Tremer [Mon, 25 May 2015 20:57:49 +0000 (20:57 +0000)] 
Normalise the filenames of the RRDs

5 years agoAdd sensors plugin
Michael Tremer [Mon, 25 May 2015 20:56:09 +0000 (20:56 +0000)] 
Add sensors plugin

This plugin uses the lm_sensors library to monitor
all sorts of internal sensors of a system. Those
could be temperature sensors, fan sensors or
voltage sensors.

5 years agoconfigure: Fix systemd detection
Stefan Schantl [Sun, 24 May 2015 10:53:40 +0000 (10:53 +0000)] 
configure: Fix systemd detection

5 years agoAllow the plugins to return the results as a tuple or list
Michael Tremer [Sun, 24 May 2015 10:48:53 +0000 (10:48 +0000)] 
Allow the plugins to return the results as a tuple or list

Therefore we do not have the necessity to format the result
into a format that rrdtool can parse later.

5 years agoAdd disk plugin
Michael Tremer [Sun, 24 May 2015 10:38:05 +0000 (10:38 +0000)] 
Add disk plugin

The disk plugin collects information about read and written
sectors, IO operations, bad sectors and the temperature of
the disks.

It uses libatasmart to collect that information.

5 years agoRemove translation template
Michael Tremer [Sun, 24 May 2015 10:33:37 +0000 (10:33 +0000)] 
Remove translation template

This is automatically created when make is executed.

5 years agoBump version to 002 002
Michael Tremer [Wed, 20 May 2015 12:20:48 +0000 (14:20 +0200)] 
Bump version to 002

5 years agoUpdate POTFILES
Michael Tremer [Tue, 19 May 2015 11:07:30 +0000 (11:07 +0000)] 
Update POTFILES

5 years agointerface: Show the correct interface name in graph
Michael Tremer [Tue, 19 May 2015 11:03:06 +0000 (11:03 +0000)] 
interface: Show the correct interface name in graph

5 years agoconntrack: Add graph templates
Michael Tremer [Tue, 19 May 2015 11:00:23 +0000 (11:00 +0000)] 
conntrack: Add graph templates

5 years agograph templates: Make some atttibutes easier to set
Michael Tremer [Tue, 19 May 2015 10:11:51 +0000 (10:11 +0000)] 
graph templates: Make some atttibutes easier to set

Often used configuration settings like the title of the
graph and similar are now properties of the class and
can therefore be easier changed.

5 years agoSilence non-debugging output a bit
Michael Tremer [Sun, 10 May 2015 19:21:01 +0000 (19:21 +0000)] 
Silence non-debugging output a bit

5 years agoRemove unused error class
Michael Tremer [Sun, 10 May 2015 19:09:54 +0000 (19:09 +0000)] 
Remove unused error class

5 years agoconntrack: Show protocol in object representation
Michael Tremer [Sun, 10 May 2015 19:07:50 +0000 (19:07 +0000)] 
conntrack: Show protocol in object representation

5 years agoUpdate TODO
Michael Tremer [Sun, 10 May 2015 19:04:47 +0000 (19:04 +0000)] 
Update TODO

5 years agoChange default image format to SVG
Michael Tremer [Sun, 10 May 2015 18:46:20 +0000 (18:46 +0000)] 
Change default image format to SVG

SVG is much better scalable and much faster to generate.
It can be resized and exported very well and therefore is
our preferred choice for graph images for now.

The image format can be requested when generating a graph
image.

5 years agoAdd dbus interface
Michael Tremer [Sun, 10 May 2015 18:30:48 +0000 (18:30 +0000)] 
Add dbus interface

Collecty will be able to generate graph images and send them
to the collecty-client via dbus.

5 years agoAdd conntrack plugin
Michael Tremer [Sat, 9 May 2015 12:46:53 +0000 (12:46 +0000)] 
Add conntrack plugin

This plugin monitors the connection table and collects
statistics about the usage of layer 3 protocols and uppper
layers. For stateful protocols like TCP, statistics about
the states are collected as well.

5 years agoRewrite plugin architecture
Michael Tremer [Fri, 8 May 2015 14:20:02 +0000 (14:20 +0000)] 
Rewrite plugin architecture

The plugin architecture has been rewritten so that there
is now one thread for each plugin and not for each object
any more. The objects are now processed in a queue and
the results are stored in a write cache module that writes
data to the RRD databases regularly or when needed.

This enables us to achieve our goal for a zeroconf approach
much better because every time data is collected it is scanned
for the available disks or interfaces or what ever is monitored
again.

5 years agoChange DataSources to be called Plugins
Michael Tremer [Thu, 7 May 2015 11:32:12 +0000 (11:32 +0000)] 
Change DataSources to be called Plugins

5 years agoImprove logging by using the native journal module
Michael Tremer [Tue, 5 May 2015 17:58:58 +0000 (17:58 +0000)] 
Improve logging by using the native journal module

5 years agoRemove support for reading configuration files
Michael Tremer [Tue, 5 May 2015 17:16:33 +0000 (17:16 +0000)] 
Remove support for reading configuration files

We are trying for a zero-conf approach here because we
assume that a system is constantly changing and therefore
is a static configuration almost a hundred percent useless.

5 years agoUse autotools 001
Michael Tremer [Tue, 5 May 2015 14:58:41 +0000 (14:58 +0000)] 
Use autotools

7 years agoUpdate translations - i.e. import pt_BR.
Michael Tremer [Wed, 5 Sep 2012 20:16:22 +0000 (20:16 +0000)] 
Update translations - i.e. import pt_BR.

7 years agoInstall daemon to /usr/sbin.
Michael Tremer [Sat, 1 Sep 2012 18:56:19 +0000 (18:56 +0000)] 
Install daemon to /usr/sbin.

7 years agoUpdate translation.
Michael Tremer [Sat, 1 Sep 2012 18:34:04 +0000 (18:34 +0000)] 
Update translation.

7 years agoBump version to 0.0.2. 0.0.2
Michael Tremer [Sat, 1 Sep 2012 18:23:48 +0000 (18:23 +0000)] 
Bump version to 0.0.2.

7 years agoUpdate plugins to adapt the recent changes.
Michael Tremer [Sat, 1 Sep 2012 18:19:59 +0000 (18:19 +0000)] 
Update plugins to adapt the recent changes.

7 years agoSimplify RRD descriptions.
Michael Tremer [Sat, 1 Sep 2012 18:18:05 +0000 (18:18 +0000)] 
Simplify RRD descriptions.

7 years agoTake running time of plugins into account when calculating interval.
Michael Tremer [Sat, 1 Sep 2012 18:00:58 +0000 (18:00 +0000)] 
Take running time of plugins into account when calculating interval.

7 years agoRemove redundant --step argument.
Michael Tremer [Sat, 1 Sep 2012 17:57:12 +0000 (17:57 +0000)] 
Remove redundant --step argument.

7 years agoAdd some more verbose logging when creating/updating RRDs.
Michael Tremer [Sat, 1 Sep 2012 17:49:28 +0000 (17:49 +0000)] 
Add some more verbose logging when creating/updating RRDs.

7 years agoFix stepsize/heartbeat when creating RRDs.
Michael Tremer [Sat, 1 Sep 2012 17:47:03 +0000 (17:47 +0000)] 
Fix stepsize/heartbeat when creating RRDs.

7 years agoAdd delay option to Timer().
Michael Tremer [Sat, 1 Sep 2012 17:45:23 +0000 (17:45 +0000)] 
Add delay option to Timer().

7 years agoAdd latency plugin.
Michael Tremer [Sat, 1 Sep 2012 17:44:39 +0000 (17:44 +0000)] 
Add latency plugin.

7 years agointerface: Add graph templates.
Michael Tremer [Sat, 25 Aug 2012 21:24:48 +0000 (21:24 +0000)] 
interface: Add graph templates.

7 years agoSplit plugins into data sources and graph templates.
Michael Tremer [Sat, 25 Aug 2012 18:47:50 +0000 (18:47 +0000)] 
Split plugins into data sources and graph templates.

7 years agoAdd plugin to collect traffic data from interfaces.
Michael Tremer [Sat, 25 Aug 2012 16:02:50 +0000 (16:02 +0000)] 
Add plugin to collect traffic data from interfaces.

7 years agoplugins: Automatically create RRAs.
Michael Tremer [Sat, 25 Aug 2012 15:40:30 +0000 (15:40 +0000)] 
plugins: Automatically create RRAs.

7 years agoplugins: Filenames should contain the ID.
Michael Tremer [Sat, 25 Aug 2012 15:39:57 +0000 (15:39 +0000)] 
plugins: Filenames should contain the ID.

7 years agoplugin: Pass kwargs to custom init method.
Michael Tremer [Sat, 25 Aug 2012 15:37:50 +0000 (15:37 +0000)] 
plugin: Pass kwargs to custom init method.

7 years agoAdd CollectyClient to generate graph images.
Michael Tremer [Sat, 25 Aug 2012 11:22:31 +0000 (11:22 +0000)] 
Add CollectyClient to generate graph images.

7 years agocollectyd: Accept -d for debugging mode. Read configuration files.
Michael Tremer [Tue, 21 Aug 2012 18:05:55 +0000 (18:05 +0000)] 
collectyd: Accept -d for debugging mode. Read configuration files.

7 years agoAdd systemd unit file.
Michael Tremer [Tue, 21 Aug 2012 17:38:06 +0000 (17:38 +0000)] 
Add systemd unit file.

7 years agoAdd transifex configuration.
Michael Tremer [Wed, 8 Aug 2012 09:40:28 +0000 (09:40 +0000)] 
Add transifex configuration.

7 years agoAvoid unnecessary updates of the pot file.
Michael Tremer [Wed, 8 Aug 2012 09:40:00 +0000 (09:40 +0000)] 
Avoid unnecessary updates of the pot file.

7 years agoImport German translation.
Michael Tremer [Wed, 8 Aug 2012 09:38:43 +0000 (09:38 +0000)] 
Import German translation.

7 years agoAdd translation stuff.
Michael Tremer [Wed, 8 Aug 2012 08:55:25 +0000 (08:55 +0000)] 
Add translation stuff.

7 years agoWrite all data to disk on SIGUSR1.
Michael Tremer [Sun, 5 Aug 2012 19:07:11 +0000 (19:07 +0000)] 
Write all data to disk on SIGUSR1.

7 years agoentropy: New plugin.
Michael Tremer [Sun, 5 Aug 2012 10:36:49 +0000 (10:36 +0000)] 
entropy: New plugin.

Collects the amount of kernel entropy.

7 years agoReplace those complicated wait construct by a efficient Timer class.
Michael Tremer [Sat, 4 Aug 2012 17:13:20 +0000 (17:13 +0000)] 
Replace those complicated wait construct by a efficient Timer class.

Timer is a low-resolution timeout system that lets us have
long timeouts very energy-efficient and interuptable.

7 years agoLet the main thread regularly submit all data to disk.
Michael Tremer [Sat, 4 Aug 2012 16:20:50 +0000 (16:20 +0000)] 
Let the main thread regularly submit all data to disk.

7 years agomemory: Update plugin.
Michael Tremer [Sat, 4 Aug 2012 15:51:55 +0000 (15:51 +0000)] 
memory: Update plugin.