Commit Graph

4361 Commits

Author SHA1 Message Date
Lars Kruse 758c3ecdd7 Tests: add ruby style and code checks via rubocop
At the moment all plugins fail the test out of various reasons.
Thus they are exempted from causing test failures.

But future (new) plugins will fail the test and thus indicate the
relevant steps to fix issues before a plugin is included.
2020-08-25 17:44:17 +02:00
Lars Kruse 809639ab65 Ruby plugins: apply code changes as suggested by "rubocop --auto-correct" 2020-08-25 17:44:17 +02:00
Lars Kruse b0b39b018e Ruby plugins: apply style changes as suggested by "rubocop --fix-layout" 2020-08-25 17:44:17 +02:00
Lars Kruse 26c29daa2b t/test-exception-wrapper: fix documentation 2020-08-25 17:44:17 +02:00
Lars Kruse 40827a051a Python plugins: fix style issues 2020-08-25 17:44:17 +02:00
Lars Kruse 3bc9396918 Unify file encodings to UTF8 2020-08-25 17:44:17 +02:00
Lars Kruse 3674882662 Fix spelling mistakes 2020-08-25 17:44:17 +02:00
Lars Kruse d1a69fe25b lint: ignore python's compiled files for codespell 2020-08-25 17:44:16 +02:00
Lars Kruse 72eeb4155f spelling: change "licenced" to "licensed"
Even though "licenced" is proper (British English) spelling,
"spellcheck" complains about it (probably being focused on American
English).
The change should just clean up the output of the spelling linter and
should not be interpreted as a language preference.
Sorry, (British) folks!
2020-08-25 17:44:16 +02:00
Olivier Mehani 13d5b23442
[plugin/docker_] Improvements to docker_ plugin (#1094)
* Add support for docker_network
* Actually show non running containers counts
* Show intermediate and dangling images counts
* Add warnings on dangling images and dead containers
* Fully support autoconf and suggest
* Add graph_total to the status (thereby making the containers graph
  redundant), CPU and Memory graphs
* Show most graphs as AREASTACK, this allows to get a clearer view of
  both individual and total use
* Use LINESTACK1 to work around munin-contrib/munin#1343
* Include all containers in CPU/Memory/Network config, so data from
  non-running containers is still displayed
* Sprinkle some info and extinfo
* Add ClientWrapper around docker module, providing caching and sorting
* Reverse-engineer author list from git log
2020-08-25 16:17:18 +02:00
Kenyon Ralph 6052c56d94 plugins/puppet/puppet_runtime: fix formatting
Used rufo https://github.com/ruby-formatter/rufo
2020-08-23 14:21:37 +02:00
Lars Kruse 852aa41ab7 Remove global flake8 override 2020-08-19 22:47:03 +02:00
pcy 10ca12569a [plugins/mysql/mysql_audit] Added plugin for monitoring the audit log
Shows the number of active over time
2020-08-19 22:44:06 +02:00
pcy 271e21d34e [plugin/user/cronjobs] added plugin to monitor cronjobs
Graphs the number of cronjobs active at a certain moment, per user
2020-08-19 22:43:40 +02:00
pcy 7761514c09 [plugins/git/gitlab_statistics] added plugin to display GitLab stats
Graphs common GitLab statistics (user, repo, fork, ... count) using its
HTTP API statistics endpoint (requires a token to be set and passed to
the plugin)
2020-08-19 22:42:40 +02:00
Andreas Perhab 260c8c8ff4 docker_cpu: fix warnings when docker ps has empty list 2020-08-18 04:15:35 +02:00
Andreas Perhab 0853d409f3 docker_cpu: fix data for container names starting with numbers 2020-08-18 04:15:35 +02:00
pcy a1cff256cd [plugins/dovecot/dovecot] make 'connected users' graph DERIVEable 2020-08-18 04:12:40 +02:00
Lars Kruse 06919f1801 Plugin mysql_disk_by_prefix: remove flake8 override and unused import
The flake8 line was interpreted as "ignore this file".
2020-08-17 16:20:47 +02:00
pcy ee226a609e [plugins/mysql/mysql_disk_by_prefix] Add plugin for DB size by user 2020-08-17 15:51:08 +02:00
pcy 6fdf699575 [plugins/user/procbyuser] added plugin to monitor processes of a user
Graphs the number of processes owned by a user over time
2020-08-17 03:05:11 +02:00
pcy 0031acd637 [plugins/user/cpubyuser] Bugfixes and enhancements
- Fix USERS=ALL only enumerating processes with a tty or pty attached
  (and thus not eg. user-owned FastCGI processes, owned by eg. Apache)
- ps(1) is used to make process list parsing easier and more robust
- OTHERS_FIELD now defaults to disabled
2020-08-17 03:02:52 +02:00
pcy a1c4bcb25a [plugins/user/membyuser] Minor enhancements
Don't use a fixed scale
Use resident set size as measure for a process' memory usage instead
of vsz
More robust username enumeration
2020-08-17 02:46:03 +02:00
pcy 0d6b938c7b [plugins/systemd/systemd_units] Optionally hide extinfo of active services
These services are running fine, so the extinfo would mostly just clutter
the webui while making the extinfo of relevant (i.e. down) services
harder to find.
2020-08-17 02:44:57 +02:00
Michael Fritscher aee6a15240 Fixes quota für zvols. Without this, the log gets spammed with
> 2020/08/16 04:45:24 [ERROR] In RRD: Error updating /var/lib/munin/localdomain/localhost.localdomain-zfs_list_rpool__name-quota-g.rrd: /var/lib/munin/localdomain/localhost.localdomain-zfs_list_rpool__name-quota-g.rrd: Function update_pdp_prep, case DST_GAUGE - Cannot convert '-' to float
2020-08-17 02:41:54 +02:00
Bianco Veigel 225a9156df add proxmox comment 2020-08-17 02:41:02 +02:00
Bianco Veigel 00f8fce4f8 prevent duplicate graphs and unify line style 2020-08-17 02:41:02 +02:00
Bianco Veigel 113008b06d use name from commandline parameter for kvm 2020-08-17 02:41:02 +02:00
Lars Kruse 8cff506f07 Plugin multi_tcp_ping: gracefully handle DNS resolution problems
Previously the plugin exited with an error, if the target name could not
be resolved.  Now this problem is handled just like an "unreachable"
situation.

Thanks, nitram2342!

Closes: #1091
2020-08-14 22:30:43 +02:00
Rowan Wookey 9e2b918229 Added env to exclude containers from cpu/memory docker graphs
It maybe desirable to not generate stats for ephemeral containers.
This commit adds an env variable EXCLUDE_CONTAINER_NAME which is a regex, if it matches
then the container is excluded from the cpu and memory graphs.
2020-08-14 22:24:56 +02:00
zivillian ca2484b357 extend workaround for multiple dashes 2020-08-14 01:11:08 +02:00
zivillian 58e371308a extend workaround for multiple dashes 2020-08-14 01:11:08 +02:00
Lars Kruse 21379f5841 Add plugin "rsnapshot_duration"
The plugin monitors the duration of rsnapshot backups for each single
backup source.

The duration is parsed from rsnapshot's log file.  The rsnapshot
configuration setting "loglevel 3" is required.
2020-08-07 02:47:10 +02:00
Anton Shestakov ce29a0f7ae hwmon: recognize frequencies
Discovered thanks to an RX 570, which can show sclk and mclk via /sys/class/hwmon.
2020-07-19 18:08:28 +02:00
Lars Kruse bd1302c3f2 Plugin unifi_api: handle missing error fields in response
It seems to be possible, that the response lacks the values for
`rx_errors` and `tx_errors`.  This should not result in warnings due to
undefined values.

Thanks, kboenke!

Closes: #1095
2020-07-12 19:16:31 +02:00
Olivier Mehani 83737c4fe0 [plugins/solar/fronius] Monitor Solar Inverters using the Fronius Solar API
This includes caching of the inverter info with a 12h TTL, so the graph
still renders when the inverter has gone to sleep at night.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>

squash! [plugins/solar/fronius] Monitor Solar Inverters using the Fronius Solar API

Use generic caching function to also cache real-time data. This allows
to avoid N/As overnight, which don't aggregate nicely on the yearly
graph.
2020-07-12 18:30:04 +02:00
Olivier Mehani a731424cf0 [plugins/weather/wunderground] Add plugin to query station data from Weather Underground
It's a bit backwards, but works a treat when you don't own the station
but want the data in a better format.

Includes warnings on UV and heat indices, and visible lines for wind
direction and indices.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-07-12 18:28:14 +02:00
Gunnsteinn Þórisson 7dc76c873f Replace split with explode
`split` was deprecated in PHP 5.3.0 and removed in PHP 7.0.0, `explode`
is a drop-in replacement.
2020-07-08 21:34:22 +02:00
Rowan Wookey 54c9563274 Modified http_request_time to allow specifying a user agent
Similar to other settings for this plugin, there is a new
env.urlN_agent setting which allows specifying a user agent
2020-07-08 21:23:15 +02:00
Lars Kruse 31f64337b6 Plugin sabnzbd_*: fix compatbility with SABnzbd 3.x
The change is probably compatible with SABnzbd 2.x, as well.

Thanks, waywit for the change proposal.

Closes: #1082
2020-05-16 17:05:00 +02:00
Doctor 24f4883777 Change regex to match "prepend" pattern 2020-04-29 18:00:24 +02:00
Rowan Wookey 8939111823 Fixed autoconf on http_request_time
Previously it would error since the $url variable is
the array key isn't the url to check it's a santized version
2020-04-27 20:02:43 +02:00
Alejandro Suarez 699158fd17 Requirements workaround due to #1073 2020-04-25 05:55:08 +02:00
Alejandro Suarez 475fe56df2 Removed requirement
Some routers doesn't have temperature sensors
2020-04-25 05:55:08 +02:00
Alejandro Suarez 3032db4890 Added monitoring of router temperature 2020-04-25 05:55:08 +02:00
Romain MAZIERE 0cfcf2ccbf Fix geowebcache-bandwidth 2020-04-25 05:33:53 +02:00
Romain MAZIERE 46f383f92c Fix geowebcache-blankitems 2020-04-25 05:33:31 +02:00
Romain MAZIERE 5a37346602 Fix geowebcache-cache-hits-ratio 2020-04-25 05:25:17 +02:00
Lars Kruse f6738f415e Plugin apache_memory: fix title description formatting
The plugin gallery and "munin-run" relies on a space after the hyphen.
2020-04-21 20:14:04 +02:00
Lars Kruse dbaeb0253c Plugins apache_tmemory and apache_servers: multiple changes
* use base SI units for memory consumption
  (breaks graph values compared to older version)
* fix quoting for regular expressions
* use common defaults for configuration settings
2020-04-21 20:11:27 +02:00