Commit Graph

4544 Commits

Author SHA1 Message Date
lifeofguenter 375d3643ec remove failing test? 2021-03-10 12:42:29 +01:00
lifeofguenter 58c7801fd2 beanstalkd python3 2021-03-10 12:42:29 +01:00
Alois b6912e7649 Update kvm_cpu
the line length change doesn't make the world better... without pyflakes I already wondered, why there is an additional linebreak. now it needs two additional one to stay below 99 
changes here are tested and work on Python 3.7.3 (debian buster).
2021-03-10 12:19:28 +01:00
Alois acdaeb6d11 Update kvm_cpu
in python3 filter returns an object, not an list. I think a list is required here? at least the plugin works as soon as list(...) is added.
need to change from pid to pid.decode, as pid is binary and not a string.
2021-03-10 12:19:28 +01:00
Alois 9ecd634f86 Update munin-libvirtpy
if config has sys.exit(1) the plugin config does not work.
2021-03-04 16:07:02 +01:00
Lars Kruse 98aeca5f7b Plugin docker_: fix indentation 2021-02-23 14:34:39 +01:00
Lars Kruse be4ad90df3 Plugin docker_: use clean fieldname instead of literal container name 2021-02-23 14:33:14 +01:00
Lars Kruse 7ac850853d Plugin docker_: reduce permissions of plugin
root privileges are not required for sending queries to the docker socket.
Instead the group "docker" should be sufficient.

Additionally replace /var/run with /run (following updates of FHS).
2021-02-23 00:13:30 +01:00
Ricardo Sanz 807f15b931 Add 'containers' to the supported series
Apparently, the code support that serie, as the docs say.
2021-02-23 00:02:43 +01:00
Lars Kruse c5daa06dde Plugin prosody_: interprete input as utf-8
Previously only ascii was accepted.

See: https://github.com/munin-monitoring/contrib/pull/1040#issuecomment-780824064

Thanks, msebald!
2021-02-22 02:10:41 +01:00
Tim Düsterhus d5dffef840 Use exact values in zfs/zpool_capacity#allocated
As per the zpool(8) man page:

> zpool list [-HgLpPv] [-o property[,property]...] [-T u|d] [pool]... [interval [count]]
>         Lists the given pools along with a health status and space usage.  If no pools are specified, all pools in the system are listed.  When given an interval, the information is printed every
>         interval seconds until ^C is pressed.  If count is specified, the command exits after count reports are printed.
> [...]
>         -p      Display numbers in parsable (exact) values.
2021-02-17 20:10:49 +01:00
Lars Kruse ed61eab13a Plugin tor_: fix "tor_countries" in case of missing cache location
Closes: #1176
2021-02-17 15:10:12 +01:00
Sam Darwin 0b7a005eb2
cpu and memory plugins for OSX (#1173) 2021-02-16 17:57:03 +01:00
Steve Schnepp 0d13497ed8
Merge pull request #1174 from steveschnepp/plugin/smart_
Adding a new C plugin : smart_
2021-02-07 12:27:56 +01:00
Steve Schnepp b86f1d0ffe smart_: port to openbsd & macos 2021-02-07 12:19:39 +01:00
Steve Schnepp 6eff786eef smart: importing common.{h,c} from munin-c
The compilation is very easy, a simple `make` should work, as I provided
a convenient `Makefile`
2021-02-07 12:17:14 +01:00
Steve Schnepp a420c4eb58 smart_: renaming the file
The destination file is a wildcard one. Therefore the C file should be
named with a trailing `_`.
2021-02-07 12:15:07 +01:00
Bastiaan van Kesteren 2fd3eec87c Hacked together a smart_ plugin in C
There is some trickery going on to not wakeup the disk when it's in standby

Note: this was aimed at munin-c, but was rejected since it uses a
subprocess that calls the `smartctl` tool.
2021-02-07 12:03:41 +01:00
Klaus Sperner ad3351cadc make plugin http_response executable 2021-02-07 03:36:04 +01:00
Klaus Sperner 60a077a67c Add multigraph plugin for http response codes and times
In contrast to using http_responsecode and http_loadtime with the same
configuration, this plugin performs only one request per site and munin
run to gather its statistics.
2021-02-07 03:36:04 +01:00
ruliane 7046ba801c typo 2021-02-05 21:53:37 +01:00
ruliane 63505c5060 Add support for multi-domain check 2021-02-05 21:53:37 +01:00
ruliane f2261ed9d4 Rename whois_ to whois 2021-02-05 21:53:37 +01:00
Lars Kruse 179f04721a Plugin tor_: handle missing dependency during "fetch" or "config" 2021-02-05 00:06:48 +01:00
ruliane f06ee36a05
Use an environment variable for CACHE_EXPIRY (#1169)
Use an environment variable for CACHE_EXPIRY in whois plugin.
2021-01-31 16:56:43 +01:00
Olivier Mehani 52898ef50c [file_length_] List full file path in info
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-31 14:59:10 +01:00
Paul Alexandrow 11c6d82791
initial commit of systemd_mem (v1.0) (#1165)
systemctl calculates memory consumption quite differently than existing plugins, which usually query /proc/.
This plugin monitors what memory a service uses according to systemctl.
2021-01-31 14:56:01 +01:00
Andreas Perhab 82644213e3 during DELAYED/PENDING resyncs mark reshape/recovery percent as unknown instead of 0 2021-01-29 16:22:34 +01:00
Olivier Mehani 1fa5558afd [docker_] add multigraph support
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Olivier Mehani 2482518826 [docker_] status: report and warn on unhealthy containers
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Olivier Mehani d3a7b794bc [docker_] expose APIClient from Wrapper
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Olivier Mehani 3a20ae41e9 [docker_] memory: report `usage` if `total_rss` is not available
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Olivier Mehani b09fa4a73f [docker_] Add support for custom attributes reporting in extinfo
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-01-29 16:21:22 +01:00
Lars Kruse 04ded0c6f5 Plugin tor_: fix autoconf issues
Closes: #1166
2021-01-26 15:39:28 +01:00
ToM 069255eee2 mpdstat_: unquote $NCARGS. 2021-01-17 19:51:22 +01:00
ToM 9ad3b1ff18 mpdstats_: allow to pass options to nc(1).
Different nc(1) implementations will use different flags, as highlighted
in #576. This environment variable allows one to pass any option to the
nc binary.
2021-01-17 19:51:22 +01:00
ToM 829bab4814 mdpstats_: use 'stats' instead of 'version' in autoconf.
As of v0.21.4 version of the MPD command protocol, it seems that the
`version` command is not valid:

    $ echo version | /bin/nc localhost 6600
    OK MPD 0.21.4
    ACK [5@0] {} unknown command "version"

Use `stats` instead.

https://www.musicpd.org/doc/html/protocol.html#querying-mpd-s-status
2021-01-17 19:51:22 +01:00
Kim B. Heino a45257a64a stratis: code cleanup and use perlpod format for documentation 2021-01-10 17:47:54 +01:00
Kim B. Heino 7d31b4ce25 stratis: new plugin to monitor stratis filesystem 2021-01-10 17:47:54 +01:00
Samuel Smith f90427c32a Update for extra fields in newer kernels
The fields have changed from 11 or 15 on recent kernels but does not effect what the plugin gathers. 
See 5.4 https://www.kernel.org/doc/html/v5.4/block/stat.html versus 4.16 https://mjmwired.net/kernel/Documentation/block/stat.txt
2021-01-08 15:33:58 +01:00
Ondřej Nový c10eaf60d2 Plugin timesync_status: Fix KeyError when time is not synced 2021-01-06 17:37:24 +01:00
Ondřej Nový 3e01588570 Plugin timesync_status: Handle value 0 correctly 2021-01-06 17:37:24 +01:00
Andreas Perhab 9c995590b2 certificate_file_expiry: add pattern support for CERT env variable 2020-12-28 20:42:30 +01:00
Olivier Mehani 5c983dbc7d [plugin/nextcould] Fix incorrect data output
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-12-16 14:16:03 +01:00
Simone Rossetto 493b71d9f0 Plugin timesync_status: use common pattern to check input args 2020-12-10 04:40:10 +01:00
Simone Rossetto 0e43e7790f Plugin timesync_status: add support for 'fetch' command 2020-12-10 04:40:10 +01:00
Kim B. Heino 0791c99e74 systemd_status: fix autoconf to check if systemd is running 2020-12-05 16:02:56 +01:00
Kim B. Heino f8fef4cf73 systemd_status: reformat docstring to perlpod format 2020-12-05 16:02:56 +01:00
Kim B. Heino ca27b12937 systemd_status: yet another plugin to monitor systemd status
Similar to systemd_units, but more states and ignores scopes and user
services. They must be allowed to fail.
2020-12-05 16:02:56 +01:00
JTSage eb7a1e7276 Add some sane defaults, some enviromental variable overrides, fix autoconf, and add more error trapping 2020-11-28 20:31:45 +01:00