Commit Graph

4328 Commits

Author SHA1 Message Date
Andreas Perhab 8dcc914938 du-2: fix resource consumption when first running the plugin
when installing / first running the plugin, it can take longer than
one munin-update call to create the $TIMEFILE. so until it is created
we assume the $LOCKFILE is not too old yet and let the first run finish
before we spawn additional processes.
2022-06-01 13:29:53 +02:00
Andreas Perhab a620b1a507 smtp_hello_: reformat metadata 2022-05-30 19:09:40 +02:00
Andreas Perhab f676ff11e9 smtp_hello_: enable monitoring multiple ports at once 2022-05-30 19:09:40 +02:00
Andreas Perhab 9bf3b9a299 smtp_hello_: improve compatibility
* support systems without time executable
  (if we can use bash time keyword)
* use curl as smtp client if available
* enable specifying different ports from 25
* enable specifying other test commands than "HELO localhost"
  (e.g. HELP, QUIT can also be used to test connections)
2022-05-30 19:09:40 +02:00
xkill 72d1198553 Update vsftpd-rel: use mktemp
Use mktemp instead tempfile, as tempfile is deprecated.
2022-05-24 23:13:14 +02:00
Codimp 84def98b95
[irc2] Add port and SSL/TLS support, add IPv6 env variable (#1308) 2022-05-24 23:06:55 +02:00
Tim Connors 14a744fc5c Created tasmota plugin that reads power monitoring devices such as tasmota switches 2022-05-24 16:11:28 +10:00
Michael Grote 9c17efc39b
Fix mikrotik_system - temp + voltage (#1307)
* Fix awk search-term for ROS7*

Value could be named "temperature" or "cpu-temperature". Tested with 
RB5009, hex, CRS309, CRS305.

Search value without :.
Check different values in different ROS-Versions.
Tested with RB5009, hex, CRS309, CRS305.
2022-04-24 20:15:57 +02:00
Lars Kruse eba742cea2 Plugin olsrd: port to python3 and support micropython without micropython-lib
The code was python3-compatible before, thus it was just a matter of
changing "python" to "python3".

The micropython approach previously relied on micropython-lib being
installed.  Now the basic micropython package (on OpenWrt) is
sufficient.
2022-04-13 05:11:57 +02:00
sdarwin 76d875fd55 Use AREASTACK parameter 2022-04-12 23:59:44 +02:00
sdarwin cdccc5aef6 Update memory_osx plugin 2022-04-12 23:59:44 +02:00
Nathaniel Clark 04c0dc3ca5 [arris-sb8200] Add plugin to support Arris SB8200 cable modem
This adds a plugin that supports the Arris SB8200 cable modem
- Uptime
- Downstream error counts
- Downstream Signal-to-Noise ratio (dB)
- Downstream & Upstream Power (dBmV)

Signed-off-by: Nathaniel Clark <Nathaniel.Clark@misrule.us>
2022-04-05 13:13:26 +02:00
HaseHarald bdec9c4a33 [system/linux-psi] Rename pressure plugin to linux_psi and minor improvements
Address several issues regarding the psi-plugin (pressure stall information).

Fixes:
- Use local for variables in functions.
- Add fetch as a valid parameter and remove auto.
- Remove double slash in path for get_pressure_value() and quote it.
- Remove line break in return value of get_printable_name().
- Quote variables to avoid splitting/globbing.
- Rename pressure plugin to linux_psi.

References:
- https://github.com/munin-monitoring/contrib/pull/1302
2022-04-01 23:07:42 +02:00
HaseHarald 5389b09abe [system/pressure] Add plugin to monitor pressure stall information (psi)
Adds a plugin to monitor the pressure stall information (psi) as reported by the Linux kernel.

- groups averages per resource
- rate/derive totals for ease of reading
- resources, intervals and scopes configurable

See: https://www.kernel.org/doc/html/latest/accounting/psi.html
2022-04-01 23:07:42 +02:00
Lars Kruse c293e35216 kvm_io: fix graph failure for specific VM names
Thanks, Michael Grote!

Closes: #1291
2022-04-01 22:55:52 +02:00
Anton Shestakov e12c8afdb7 chrony: don't resolve IP addresses to hostnames
If we don't want to show any host names in graphs/legend, it makes sense to not resolve them.

I occasionally notice the issue with name resolution of IPv6 addresses on certain networks, which makes `chronyc tracking` take 20+ seconds. Adding -n makes it almost instantaneous.
2022-03-27 20:10:06 +02:00
Lars Kruse 37279214d1
Merge pull request #1298 from coacx/more-dynamic
Improve puppet_runtime plugin.
2022-03-23 02:50:19 +01:00
Kim B. Heino 0b17412c6e nginx_unit: use more human readable scale
Value "2.34M seconds" doesn't mean anything  but "27 days" does.  Use days for process age.
2022-03-23 02:41:14 +01:00
Christian Weiske 87a664e5e6 Add example graphs for dd-wrt-wifi-devices_ plugin 2022-03-20 15:13:04 +01:00
Martin Gebhardt 1f61b7235a
Update DOP and code cleanup 2022-03-12 00:52:12 +01:00
Christian Weiske 99763204d5 Add dd-wrt-wifi-devices plugin
.. to monitor the number of connected WiFi devices on a DD-WRT based router
2022-03-11 13:19:09 +01:00
Lars Kruse 3ac71f4c23
Merge pull request #1284 from shtrom/snmp__fixes
Snmp  fixes
2022-03-11 13:17:26 +01:00
Lars Kruse 0781145f49
Merge pull request #1296 from cweiske/http_responsecode-host_name
[http/http_responsecode] Add support for host_name
2022-03-09 15:53:24 +01:00
Olivier Mehani ada3160e9c snmp__if_combined: use instance name in graph titles
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2022-03-08 21:34:55 +11:00
Martin Gebhardt ba142817c7
Add example graph 2022-02-27 17:50:13 +01:00
Martin Gebhardt 452f3f2f4f
Enable dynamic reading of puppet report, independent of operating system and puppet version 2022-02-27 17:49:45 +01:00
Lars Kruse a92de3b8dd
Merge pull request #1293 from ap-wtioit/master-improve_certificate_file_expiry_github
certificate_file_expiry: enable monitoring inline openvpn certificates
2022-02-26 23:12:09 +01:00
Tim Bond fede598cb8 Update apt_ubuntu to display integers instead of floats 2022-02-26 20:01:02 +01:00
Andreas Perhab d9701b4f6a certificate_file_expiry: add option to ignore unexpanded patterns
this helps use the same configs on multiple nodes where not all the
patterns expand to existing files on all of them or when files are not
yet existing
2022-02-21 10:34:31 +01:00
Andreas Perhab 4b8b098288 certificate_file_expiry: enable checking openvpn in config certificates 2022-02-21 10:34:31 +01:00
Andreas Perhab f0d5df2902 certificate_file_expiry: re-enable old defaults for warning and critical
those were accidentially removed in
76170d2745
2022-02-21 10:19:41 +01:00
Christian Weiske 7d381e70f3 [http/http_responsecode] Add support for host_name 2022-02-19 06:25:34 +01:00
Christian Weiske 3c4321327c Use user-agent and proxy for http_request_time autoconf
Otherwise autoconf might not succeed.
2022-02-18 16:15:41 +01:00
Doctor c909c07561 Add documentation 2022-01-26 18:35:51 +01:00
Doctor 38a07950d4 Add environment for variables with default values 2022-01-26 18:35:51 +01:00
Michael Grote f3c8d9519f Expanded Docs for dnsresponse_ 2022-01-23 13:53:12 +01:00
Olivier Mehani b14e2347f4 snmp__if_combined: add env.stackedMax to work around sum spikes
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2022-01-18 22:35:54 +11:00
Olivier Mehani baf24f9c94 snmp__if_combined: don't set max speed if reported as 0
Some SNMP implementations actively report the interface speed as 0 (e.g., when disconnected). This led the plugin to report both min and max to be 0, which later confuses RRDTool, with errors such as

    [ERROR] Unable to create '/var/lib/munin/example.net/192.2.0.1-snmp_if_combined_vlan-37-send-d.rrd': failed to parse data source 600:0:0: min must be less than max in DS definition

when trying to creates the RRDs. Ultimately, this would prevent the graph creation from suceeding with errors such as

    [ERROR] In RRD: Error updating /var/lib/munin/example.net/192.2.0.1-snmp_if_combined_vlan-37-send-d.rrd: opening '/var/lib/munin/example.net/192.2.0.1-snmp_if_combined_vlan-37-send-d.rrd': No such file or directory

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2022-01-18 22:35:54 +11:00
Olivier Mehani 4262dc8564 snmp__if_combined: add support for multiple instances
This allows to split the data into smaller groups, e.g., per ifType.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2022-01-18 22:35:53 +11:00
Olivier Mehani 387bb863f1 snmp__mikrotik: unify titles and category
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2022-01-18 22:35:53 +11:00
Doctor d212e1264d Fix chmod for exodus/exodus_ plugin 2022-01-09 23:16:06 +01:00
Codimp 3c20ac15f4
[exodus_] Add plugin to monitore number of applications, reports and trackers (#1286)
Add monitoring of count for applications, reports and trackers of an
exodus instance.
2022-01-09 16:30:37 +01:00
Olivier Mehani 38f3a4297e [wunderground_] Fix windChil and heatIndex in root graph
The data was incorrectly loaned from a `temp` subgraph, which should
have been `temperature`.

This led to errors during munin-graph, as follow

    [ERROR] Failed to find windChill source at temp.windChill, skipping field
    [ERROR] Failed to find heatIndex source at temp.heatIndex, skipping field
    [PERL WARNING] Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Munin/Master/Utils.pm line 1149, <GEN1> line 1728.
    [ERROR] filename is empty for $VAR1 = {
      '#%#name' => 'windChill',
      'graph_data_size' => 'normal',
      'label' => 'Wind chill [°C]',
      'update_rate' => '300'
    };
    , temp.windChill
    [PERL WARNING] Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Munin/Master/Utils.pm line 1149, <GEN1> line 1728.
    [ERROR] filename is empty for $VAR1 = {
      '#%#name' => 'heatIndex',
      'graph_data_size' => 'normal',
      'label' => 'Heat index [°C]',
      'update_rate' => '300'
    };
    , temp.heatIndex

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2022-01-06 21:47:29 +01:00
Michael Grote 8061bfcf2b
Add zswap Plugin 2021-12-31 19:31:32 +01:00
Olivier Mehani 94066132ce
[ssl-certificate-expiry] add env.skip_cert_hashes to skip certificates
This fix allows to skip validity checks on any intermediate certificate
which subject hash appears in the list.

Let's Encrypt certificates are cross-signed by both DST Root CA X3 and
ISRG Root X1. DST Root CA X3 has expired on 2021-09-30 [0], which causes
the plugin to incorrectly report some full-chain LE certificates as
expired.

[0] https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-12-31 19:26:58 +01:00
Olivier Mehani 02451d8f6e [whois] Allow to specificy whois server per domain
Also, clean up some old code that pre-dates multi-domain handling

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-12-31 03:13:12 +01:00
Michael Grote ca8ce74367 chmod +x for ksm 2021-12-28 17:59:43 +01:00
Sebastian L 0a13d5c2e4 murmur-stats: Enhancements
- python3 compatibility
- multigraph
- added muted/registered/unregistered users
2021-12-28 17:59:14 +01:00
Sebastian L 63f8552ae6 quake/qstat: enhancements
- dash
- bots
- configurable binary
2021-12-21 12:16:15 +01:00
Michael Grote adcc2f54e6
added new plugin: "kernel_same_page_merging" (#1271) 2021-12-21 12:13:42 +01:00
Michael Grote db27ad4597 repaired perldoc header: zfs_fragmentation 2021-12-13 14:40:48 +01:00
Michael Grote f63321c567 repaired perldoc header: zfs_pool_dataset_count 2021-12-13 14:40:48 +01:00
Michael Grote d41a94b184 repaired perldoc header: zfs_list 2021-12-13 14:40:48 +01:00
Michael Grote c39639b450 repaired perldoc header: mikrotik_system 2021-12-13 14:40:48 +01:00
Michael Grote 09d6135a6d repaired perldoc header: proxmox_vm_count 2021-12-13 14:40:48 +01:00
Younes Ichiche 3e83f451d0 fix get_ros_version function 2021-12-12 21:45:30 +01:00
Younes Ichiche f7282a83d4 fix missing quote 2021-12-12 21:45:30 +01:00
Younes Ichiche 7405ade2b1 regex grep didnt made sense 2021-12-12 21:45:30 +01:00
Younes Ichiche 79706f9da7 convert get_name to a fallback function where board-name is first selected and if the name is set, then tat one will be used + trimming 2021-12-12 21:45:30 +01:00
Michael Grote 38649d3179 translated comments form german to englisch 2021-12-12 21:45:30 +01:00
Younes Ichiche 74b7eb2a46 get the correct name from the routerboard and replace all special characters with _ 2021-12-12 21:45:29 +01:00
Younes Ichiche 3dd16cc568 represent the memory as a floating point with 0 after the dot so it will be rounded and not floored 2021-12-12 21:45:29 +01:00
Younes Ichiche 58dbb4d0b6 added the source for the catch function 2021-12-12 21:45:29 +01:00
Younes Ichiche 9c3855beb8 adapt awk with variable + fix memory and disk multigraph name to align 2021-12-12 21:45:29 +01:00
Younes Ichiche b43ec018dc use printf and pass variable to awk 2021-12-12 21:45:29 +01:00
Younes Ichiche 3790d20179 remove double catch function 2021-12-12 21:45:29 +01:00
Younes Ichiche 144f333cf0 use integers + fix bad blocks to be 5% max then the mikrotik needs to be reinstalled 2021-12-12 21:45:29 +01:00
Younes Ichiche ee4f4ce22f add catching of error code on ssh 2021-12-12 21:45:29 +01:00
Nathaniel Clark 8654230bb2 Fix review comments
Signed-off-by: Nathaniel Clark <Nathaniel.Clark@misrule.us>
2021-12-12 21:19:30 +01:00
Nathaniel Clark b85c9aec3b arris-sb6183: Fix int32 wrapping in WebUI
When error counts wrap they are displayed as int32 and negative.
Recast them to uint32 to fix math.

Signed-off-by: Nathaniel Clark <Nathaniel.Clark@misrule.us>
2021-12-12 21:19:30 +01:00
HaseHarald 1977235fd5 [minecraft-users-ram] Fix several bugs in plugin minecraft-users-ram_
Fixes:
- Make playercount work on non english systems
- Avoid getting an invalid PID if not run with sufficient permissions
- Fix getting CPU usage

Enhance:
- Clearify that CPU usage is in percent
2021-12-12 21:12:17 +01:00
Michael Grote 4612c1bc90
plugin zfs_list: add "ignore_datasets_pattern" configuration
Allow to ignore certain volumes.
2021-12-12 20:59:52 +01:00
Doctor 87280ed7c3 Fix urllib request decoding 2021-12-12 19:26:30 +01:00
HaseHarald 16d38264aa [btrfs_device_usage] fix division by zero when btrfs pool is unhealthy
During certain situations, a device in the btrfs pool can show a total
capacity of 0 bytes. This is aspecially true when replacing or removing a
failed disk.

This fix stops the plugin from crashing in that situation but just report
the devices percentage as unknown (U). That way other devices in the pool
stil can be monitored.
2021-12-12 13:20:43 +01:00
Andreas Perhab fea81596eb certificate_file_expiry: optional logarithmic view for long lived certs
logarithmic was removed in d885a314ad
but still has it's benefits for openvpn CA and CRL certs. when enabling
logarithmic we keep the SI units now instead of rrdtools default
scientific notation.
2021-12-04 02:30:02 +01:00
Andreas Perhab fd2fb560fb bind95_: report 0 values for not found lines 2021-12-02 17:16:51 +01:00
Kim B. Heino 31db64fefe certificate_file_expiry: label "50" instead of "5e+01"
Scale values were "4e+01, 5e+01, ...". Using linear scale and "48, 50, 52, ..." is much more readable.

Also use shorter vlabel, old one is too long.
2021-12-02 16:38:17 +01:00
HaseHarald 6f70cfc6f8 [sshd_log] Allow for configuration of warning and critical levels
Allows for configuring either general or specific warning or critical
levels, or any combination of that.

This should be backwards compatible, since it doesn't change a thing to
the output, unless specific variables are specified.
2021-11-26 20:54:19 +01:00
Younes Ichiche 6a79efee0a fixed file mode of mikrotik_system + added that it was rtested on RB493G 2021-11-26 18:05:33 +01:00
Sebastian L 0d2bef5ce6 add adguardhome plugin
Display blocking stats, dns queries, client protocols and average
processing time of AdGuardHome
2021-11-19 23:44:33 +01:00
Andreas Perhab f184607bbc munin_events: fix plugin having too much output
in 56cd2c926c "&> /dev/null" was converted
to posix in an invalid way, should have been ">/dev/null 2>&1"
2021-11-19 23:43:18 +01:00
Michael Grote 74c7fc3d86
add ssh-based mikrotik_system plugin (#1252) 2021-11-18 21:29:53 +01:00
Alois 367a4b3727
munin-libvirtpy now in python3 (#1258)
* works on debian bullseye
* flake8 compatiblity ckecked
* print errors to file=sys.stderr
2021-11-17 14:32:32 +01:00
Alois b76174718e
kvm_io now in python3 (#1254)
* works on debian bullseye with this modification.
* removed all codestyle issues, checked with "pycodestyle" on debian bullseye, besides two "line too long"
* "config" param must not have newlines to avoid a warning in munin-update.log
2021-11-16 23:13:03 +01:00
Kenyon Ralph 0866add183 chrony_status: fix fetch output for serverstats graph
Was not expecting #1255 to be merged so quickly 🤪. Now the new
serverstats graph has been fully tested and actually works 😉.

This change also doesn't needlessly convert all values to floating
point numbers, instead provides the values to munin in the same format
as they are originally output by chrony.

Also this adds some server stats found in chrony 4.0 (but still works
with 3.4 and probably earlier).
2021-11-15 14:38:20 +01:00
Kenyon Ralph 357c358669 chrony_status: add a serverstats graph
This graph shows packet rates for the chronyd server.
2021-11-14 23:53:33 +01:00
Michael Grote 02630d318c
add zfs plugins (#1250) 2021-11-13 19:53:54 +01:00
Michael Grote 86f2079144 added license to plugin: proxmox_vm_count_plugin 2021-11-13 19:50:40 +01:00
Michael Grote c1854c05aa
add proxmox_vm_count plugin (#1251)
Count the number of running virtual machines in a proxmox environment.
2021-11-11 11:39:02 +01:00
Dennis Paul a68ed9a1de
fix(issue #1247): ubiquiti - unifi_api spamming errors (#1248)
Closes: #1247
2021-11-08 15:20:49 +01:00
Tim Connors 60600d6b63 zfs list -t filesystem,volume to suppress snapshots
zfs list might list a bunch of transient snapshots if `zpool
listsnapshots=on` and something like zfs-auto-snapshot is used.  It's
also not useful to graph them since they're unchanging in time, and
the parent volume is graphed anyway.  Limit zfs list to
"filesystem,volume" instead of "all" including snapshots
2021-11-05 22:54:14 +01:00
Kim B. Heino d7c353b983 nginx_unit: rename from "unit", minor fixes 2021-10-30 00:56:33 +02:00
Kim B. Heino e6c47a3a4e unit: add new plugin to monitor nginx unit app server
This multigraph plugin does basic monitoring of unit's applications.
See: https://unit.nginx.org/
2021-10-30 00:56:33 +02:00
Andreas Perhab c6590b6715 letsencrypt_weekly: display by registered domain 2021-10-25 21:18:47 +02:00
Andreas Perhab b559571668 systemd_mem: fix handling unlimited number on debian stretch 2021-10-25 21:14:25 +02:00
Andreas Perhab b21206c68c systemd_mem: add env option to monitor all services 2021-10-25 21:14:25 +02:00
Andreas Perhab b44d8093b9 systemd_mem: add warning and critical from systemd config 2021-10-25 21:14:25 +02:00
Olivier Mehani 35c403ed64 [wunderground_] Allow to disable alerts with `env.alerts no`
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-10-25 21:12:10 +02:00
Kim B. Heino 520c436ca1 fronius: support jq builds without math library
"round" is part of jq's math support. Some distros (rhel8) don't enable it.
Fortunately round can be emulated with "floor" which is always present in
modern jq.
2021-10-14 19:06:46 +02:00
Andreas Perhab 6408924066 nvme: enable specifying warnings and criticals for serial numbers 2021-10-13 12:34:44 +02:00
Lars Kruse 502348577e Plugin dovecot: remove usage of "expr"
The usage of "expr" can be replaced easily with a shell builtin.
"expr" caused problems due to its hard-coded path.

Closes: #1240
2021-10-13 12:31:27 +02:00
K.Cima 4308f247af
Add switchbotmeterbt plugin 2021-09-22 20:31:26 +02:00
Lars Kruse d31406451a plugin rsnapshot_duration: avoid "broken pipe" errors from tac
Consume the complete input from "tac".  Otherwise spammy error messages
would appear in the log.
2021-09-19 06:03:06 +02:00
Lars Kruse 818886ba36
Merge pull request #1236 from shakemid/add_switchbotmeter
Add swichbotmeter plugin
2021-08-23 02:57:25 +02:00
shakemid dd96f1861b Fix switchbotmeter for pullreq https://github.com/munin-monitoring/contrib/pull/1236 2021-08-20 00:07:32 +09:00
shakemid c21acdf249 Fix switchbotmeter plugin to display deviceid at graph title 2021-08-19 08:59:18 +09:00
Kris-Mikael Krister b6cd969be0
Add example graphs for the deluge plugin 2021-08-17 20:59:18 +02:00
Kris-Mikael Krister edf886e0f8
Reformat deluge_ with black and flake8 2021-08-17 20:55:02 +02:00
shakemid 8f18f1f8bb Add swichbotmeter plugin 2021-08-17 22:48:18 +09:00
Kris-Mikael Krister 99c788031d
Improve code readability and consistency
This commit:

- Changes to Python 3 template string rather than the formatted string
  syntax.
- Calls the Deluge API once per plugin run for the "states" mode, rather
  than once per torrent. Lines of code are reduced. The readability is
  improved too, since the API call is similar to how the "peers" mode
  works.
- Updates the label for the "state" entry "paused" to match it's name in the
  libtorrent API: "stopped". "Queued" is split into "Queued seeding" and
  "Queued downloads" to match the libtorrent API too.
2021-08-11 14:41:27 +02:00
Lars Kruse 398a3ab289 Plugin pacman_pending_updates: switch to simple shell
The plugin did not use any bash-specific features.
2021-08-08 15:55:41 +02:00
Lars Kruse c2aa56531c Plugin pacman_pending_updates: handle absence of available updates properly
"checkupdates" returns the exit code 2, if no updates are pending.
Previously the plugin did not output anything in this case.

Closes: #1233
2021-08-08 15:55:41 +02:00
Kris-Mikael Krister 13b9078f76 Update the Deluge plugin to handle Deluge 2.x
Version 1.0.0 of this plugin requires version 1 of Deluge. Deluge 2 was
released in June 2019.

This commits bumps the plugin to version 2.0.0.

This plugin has three modes. The modes "bandwidth" and "states" are
working equally to the previous version.  The third mode, "connections",
is changed.

The connections mode previously printed one value: the total number of
connections.  That RPC call is removed in Deluge 2, and I'm instead
using `get_session_status`, which delegates the call to libtorrent [1].
libtorrent is much better documented, so it's easier to work with
compared to Deluge.

"Number of peers" replaces the previous "number of connections", and
I've added half open peers, and peers interested in download and upload
slots to the same graph.

[1]. https://libtorrent.org/manual-ref.html#session-statistics
2021-08-08 15:27:36 +02:00
Lars Kruse 49b4197670 Plugin rtom_allsessions_vol: remove unused fields
These fields were never used.

Thanks, Matt Merhar!
2021-08-08 15:08:18 +02:00
Matt Merhar 9c8415ef7e rtom_vol: remove unused config parameters
Since there are no associated values for 'hashing', 'seeding', and
'active', a warning is seen in munin-update.log every time this plugin
is fetched.
2021-08-08 15:07:06 +02:00
Christian Neumann d6ed84a784 nvidia_gpu: fix units of Rx/Tx throughput (multiple gpus) 2021-07-27 23:59:42 +02:00
Andreas Perhab 323f69fd86 bind9_*_stats: fix using env variable stat_file
previously only stat_file would only be used for data cleanup not for
fetching the data. also fixed some shellcheck warnings.
2021-07-25 06:06:46 +02:00
kaihen 07e747a1e8 Fix for docker_containers 2021-07-22 13:58:03 +02:00
Olivier Mehani ecb1d34814 [snmp__if_combined] Reindent 2021-07-20 11:08:49 +10:00
Olivier Mehani 6ac458ace1 [snmp__if_combined] Add support for stacked series in root graph
From a summary comment in the code:

    If a stacked graph is requested, plot the total. Rather than
    aggregating them with CDEFs of SUMs, we sum them in the script, which
    allows us to create real series than can be easily borrowed by other
    loaning graphs.

Those series are recv_bits and send_bits.

There are longstanding bugs with them (dating back to snmp__if). This
has been documented, as well as some potential ad hoc fixes for the
data.

Some outdated bug were also removed from the doc.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-20 11:08:49 +10:00
Olivier Mehani 61473dfdb0 [snmp__if_combined] fix error value
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-20 08:29:11 +10:00
Olivier Mehani 57965df514 [snmp__if_combined] Fix issue with extrainfo
It was not collected / shown in the right spot, resulting in incorrect
information being shown.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-20 08:29:11 +10:00
Olivier Mehani 6bb4a57983 [snmp__if_combined] Fix All interfaces titles so they are better grouped in category views
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-20 08:29:11 +10:00
Olivier Mehani 2f2ed4e41a [snmp__if_combined] use snmp v2 description for root traffic graph
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-20 08:29:10 +10:00
Olivier Mehani e3c5515532 [internode_usage] loan from other graphs in root
Also, don't use mathlib with `bc`, as it's not needed, and only adds
spurious fractional bytes to the computed ideal usage.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-19 13:26:35 +02:00
Olivier Mehani e612fbbd46 [wunderground_] loan from other graphs in root
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-19 13:26:35 +02:00
Olivier Mehani f018bada38 [upnpc_] loan from other graphs in root
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-19 13:26:35 +02:00
Lars Kruse c3a1679d2d
Merge pull request #1206 from kimheino/amavis-guap
amavis_multi: multigraph plugin to monitor amavis mail filter
2021-07-17 05:29:54 +02:00
Lars Kruse e8afee7d3a
Merge pull request #1159 from cortices/master
openstack_swift_stats_: Add openstack_swift_stats_ plugin
2021-07-17 05:29:13 +02:00
s0 181f3ed970 Fix pod doc in header of file 2021-07-16 19:03:47 +10:00
Kim B. Heino 30328b3546 amavis_multi: fix spelling, it's "processes", not "childs" or "children" 2021-07-16 11:37:31 +03:00
Lars Kruse 839a29e942
Merge pull request #1217 from Wicloz/patch-1 (improve debian/debsecan_ plugin)
Add suggest capabilities to the debian/debsecan_ plugin.
2021-07-15 23:18:43 +02:00
s0 e70f572eeb Fix copy-paste bug where objects graph was never updated. 2021-07-15 19:55:24 +10:00
s0 4ed6c56f28 Refactor script to pure POSIX sh compliance.
Also includes recommended fixes
2021-07-15 17:52:56 +10:00
Wilco de Boer 5c048c989f Actually, echo suite even when sourcing `os-release` fails 2021-07-15 00:18:55 +02:00
Wilco de Boer d8dba4936e Source the `os-release` file in a subshell 2021-07-15 00:11:59 +02:00
Wilco de Boer a2556d0528 Make indenting consistent across the rest of the file 2021-07-14 23:54:37 +02:00
Wilco de Boer 31149eb05d Properly indent heredocs 2021-07-14 23:48:41 +02:00
Wilco de Boer e2b04d0b46 Cleanup all the `printf`s 2021-07-14 23:41:54 +02:00
Lars Kruse e641c80284 mysql_size_all: use clean fieldnames for databsaes with invalid characters
Thanks, Lokutos!

See: #1032
2021-07-14 22:57:40 +02:00
Lars Kruse 704a88ecda w1_multi: process multiple sensors (based on "w1_")
All temperatures are displayed in a single graph.
This should provide more convenience than the "w1_" plugin (being a
"suggest"-based wildcard plugin).

Additionally the label of each sensor can be overridden.
2021-07-14 22:40:13 +02:00
Kim B. Heino 085d7a9ba8 chrony_status: perlpod and small fixes 2021-07-14 22:30:51 +02:00
Kim B. Heino ebac55597d chrony: add multigraph plugin to monitor chrony's delay, freq time and stratum 2021-07-14 22:30:51 +02:00
Kim B. Heino 9f1f96f656 raid2: fix "raid -> raid2" in perlpod 2021-07-14 22:30:32 +02:00
Kim B. Heino 558360c412 raid2: use perlpod and small fixes 2021-07-14 22:30:32 +02:00
Kim B. Heino d3bcc2f9bf raid2: yet another raid+scrub monitoring plugin
Supports:
- mdstat
- btrfs
- cciss
- megasasctl
2021-07-14 22:30:32 +02:00
Kim B. Heino a92c9a9b67 varnish: rename, use perlpod and minor changes 2021-07-14 22:29:41 +02:00
Kim B. Heino b2a11780b3 varnish4_multigraph: multigraph version of varnish4_, rewritten in python 2021-07-14 22:29:41 +02:00
Kim B. Heino 7e48a2c8b5 hue: use perlpod and other small changes 2021-07-14 22:29:07 +02:00
Kim B. Heino 4f22cec97c hue: plugin to monitor Philips Hue light status and temperature sensors 2021-07-14 22:29:07 +02:00
Lars Kruse c633ff00ea docker_: ignore contains which are not running
Some containers may be in "restarting" state.  We should ignore these.

Thanks, ogmueller!

Closes: #1209
2021-07-14 22:20:51 +02:00
Lars Kruse a3ae1af155 docker_: use "exclude" filter for all graphs 2021-07-14 22:17:26 +02:00
Oliver 64d5d8af08 Added check to ensure network stats for container exist before reading them 2021-07-14 22:11:45 +02:00
Christian Neumann 78aac0314b nvidia_gpu_: add Rx/Tx throughput outputs 2021-07-14 22:07:56 +02:00
Jeremías a542895c0f fix mongo_collection_ load of mongodb_uri env var 2021-07-14 22:03:52 +02:00
Kim B. Heino 46723dec16 nutups2: fix for status line without value
"upsc name" can output line "input.transfer.reason: " (key without value).
Allow it.
2021-07-14 22:00:29 +02:00
Sebastian L d43862ac62 jitsi_videobridge: Small typo fixes and max time for curl 2021-07-14 21:49:48 +02:00
Sebastian L 3886b9e42d signaling: Plugin for spreed standalone signaling server (nextcloud talk) 2021-07-14 21:48:30 +02:00
HaseHarald 8a2c0be5b2 [btrfs_device_stats] Make warning and critical configurable for all metrics per device. 2021-07-14 21:41:02 +02:00
HaseHarald d45c84e59f Missed one parameters equals with whitespaces. 2021-07-14 21:41:02 +02:00
HaseHarald cbd9235623 Fix indention to please linter. 2021-07-14 21:41:02 +02:00
HaseHarald 50265ccea9 Try to please linter with whitespaces arround equals.
This does not seam logical, because it explicitly want's spaces arround equal signs when setting a variable, but you musn't use them in parameters. But well, whatever makes the linter happy.
2021-07-14 21:41:02 +02:00
HaseHarald 409e88968d Change if conditions to please the linter. 2021-07-14 21:41:01 +02:00
HaseHarald 76c21fe7ef Fix whitespaces to please the linter. 2021-07-14 21:41:01 +02:00
HaseHarald e169950da6 [btrfs_device_usage] Document usage of optional warning and critical limits. 2021-07-14 21:41:01 +02:00
HaseHarald 68190a6d1c [btrfs_device_usage] Allow for configuring optional limits for warning and critical.
These are configurable as a global and individual value.
2021-07-14 21:41:01 +02:00
HaseHarald 17298912b4 [btrfs_device_stats] Document usage of optional warning and critical limits. 2021-07-14 21:41:01 +02:00
HaseHarald 0d8f830934 [btrfs_device_stats] Allow for configuring optional critical limits as a global and individual value. 2021-07-14 21:41:01 +02:00
HaseHarald d10c11989b [btrfs_device_stats] Allow for configuring warning values as a global and individual value. 2021-07-14 21:41:01 +02:00
Kim B. Heino b392cacc4b redis: fix "autoconf" to return "no" if no instances are configured
Previously it returned "yes" and empty graph with all labels having
value "0". Also remove bogus "multigraph redis" line.

TODO: die() in get_conn() makes this plugin to fail if any Redis
instance can't be connected.
2021-07-14 21:32:21 +02:00
Daniel Neugebauer 51af0be02b docker_: sanitize value container names
docker_ plugin sanitized container names when printing config but
not values which led to a disparity resulting in no data on graphs
for all containers whose names are subject to sanitization. (#1212)
2021-07-14 21:29:40 +02:00
Lionel Sausin ae7a2f6c65 LXC v3.1 compatibility
The cgroup data was (yet again) moved to a new location in recent LXC
releases, starting with v3.1.0 from what I could gather.

https://github.com/lxc/lxc/issues/2782 states:
> [The cgroup lxc.payload] exists to adhere to cgroup2 delegation requirements.
2021-07-14 21:28:17 +02:00
Kim B. Heino 5039842a4f nutups2_: "@" is invalid character in plugin name so use "." instead
This is needed when you monitor local and remote UPSes from single
host. You must be able to specify "ups@host" in plugin name so do
it as "ups.host".
2021-07-14 21:27:34 +02:00
Adam Mizerski 09974133b3 ssl-certificate-expiry: fix handling domains starting with digits
resolves #1224
2021-07-14 21:25:22 +02:00
Olivier Mehani e794a441e4 Fix some AUTHORS so they all show properly in the plugin gallery
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-14 21:09:48 +02:00
Lars Kruse ae45856228
Merge pull request #1219 from brknkfr/nextcloud_groupfolders
nextcloud_groupfolders_: Monitor sizes of groupfolders
2021-07-14 21:06:47 +02:00
Sebastian L e311c24d69 coturn_sessions: Make it compatible with busybox telnet 2021-07-14 21:02:21 +02:00
Steve Schnepp 0860ec94cb
Merge pull request #1098 from shtrom/snmp__cisco_
[plugins/snmp__cisco_] SNMP plugin to query arbitrary SNMP MIBs on Ci…
2021-06-12 15:33:38 +02:00
Sebastian L 96ec850d21 nextcloud_groupfolders_: Monitor sizes of groupfolders 2021-05-29 16:14:03 +02:00
Wilco de Boer f58515705e
Fix CI problems 2021-05-18 16:31:43 +02:00
Wilco de Boer b247f8f228
Get the default suite from `/etc/os-release` 2021-05-18 15:33:16 +02:00
Wilco de Boer 40366a4c1e
Correctly handle empty lists
Using `echo` adds an enter to empty lists, which gets seen as one entry and is sent to Munin as such. Using `printf` prevents this.
2021-05-18 15:26:54 +02:00
Wilco de Boer 6b28a1ba21
Remove superfluous quotation marks 2021-05-18 14:57:15 +02:00
Wilco de Boer f23aa0798b
Add suggest capability to debsecan plugin 2021-05-18 14:53:56 +02:00
Kim B. Heino e36bb075fb amavis_multi: rename "amavisd" to "amavis", as "d" was dropped in upstream too 2021-04-06 16:03:56 +03:00
Kim B. Heino dd749a26c0 amavis_multi: multigraph plugin to monitor amavisd mail filter 2021-04-06 15:53:17 +03:00
Lars Kruse 2c9121708a Fix some spelling mistakes
Thanks, codespell!
2021-04-05 23:24:50 +02:00
HaseHarald a1e346bcb7 Fix warning on btrfs_device_stats.
It's always those typos!
2021-04-05 23:05:44 +02:00
Kim B. Heino a47b05ae11 knot: use os.path.join, don't hardcode "/" 2021-04-05 22:57:56 +02:00
Kim B. Heino 9759634977 knot: cache results, needed for first run after server reboot
Sometimes after reboot munin-async + munin-node runs before knot is
ready. This will result missing knot stats, as there is no static
config in plugin. Cache results and use them instead if knot's output
is empty.
2021-04-05 22:57:56 +02:00
Sebastian L 9f1d967cbc http_response: Add follow_redirect and undefined
- Add "--location" to curl with env.follow_redirect true
- When connections fails, set U (undefined)
2021-04-02 18:20:04 +02:00
Kim B. Heino 2fd01d998d dhcp-pool: count only active leases, not free ones
Lease can be within time limits, but freed. Don't count them.
2021-04-02 18:08:03 +02:00
Kim B. Heino bc998e2007 dhcp-pool: increase warning limit to 90
DHCP pools grow very slowly. Warning at 75 is way too early, 90 seems
to be good value.

Also return pools at sorted order.
2021-04-02 18:08:03 +02:00
Kim B. Heino 43f5d31c21 dhcp-pool: field name may not start with number, prefix them with "_"
Also include pool range "from_ip - to_ip" to field label
2021-04-02 18:08:03 +02:00
Kim B. Heino 341de2c2b9 dhcp-pool: implement autoconf 2021-04-02 18:08:03 +02:00
Kim B. Heino ced47decaf knot: use perlpod documentation format 2021-03-31 21:12:54 +02:00
Kim B. Heino cc6f29fb6c knot: new plugin to monitor knot DNS server statistics 2021-03-31 21:12:54 +02:00
Kim B. Heino 301d13b111 nsd_requests: better name for plugin 2021-03-31 21:12:23 +02:00
Kim B. Heino ed49d346e3 nsd: new plugin to monitor nsd DNS server 2021-03-31 21:12:23 +02:00
Kim B. Heino b1251d0c11 mongodb_multi: use perlpod documentation format 2021-03-31 21:11:28 +02:00