1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00
Commit graph

4010 commits

Author SHA1 Message Date
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
Lars Kruse
914180fe54
Merge pull request #972 from poiuty/patch-1
fix graph_vlabel
2019-03-06 02:47:39 +01:00
poiuty
9e08cc92e8
fix graph_vlabel 2019-03-05 11:30:01 +03:00
Lars Kruse
5c3ee237b7
Merge pull request #970 from Sephtex/Sephtex/969/zfs_list_plugin_wot_working_with_dash
Add support for dash in zfs_list
2019-02-16 03:45:25 +01:00
Lars Kruse
05986442c9
Merge pull request #971 from ProgVal/patch-1
Change shebang of systemd/systemd_units from sh to bash
2019-02-13 02:33:23 +01:00
Valentin Lorentz
1f184a35ff
Change shebang of systemd/systemd_units from sh to bash
Running it with sh results in this error:

/etc/munin/plugins/systemd_units: 109: /etc/munin/plugins/systemd_units: Bad substitution
2019-02-09 20:24:35 +01:00
Sephtex
f72390cb13
replace the / by __ anyway
To make it more clear that we had a subdevice it's better to use the __ for it's replacement anyway
2019-02-03 19:55:16 +01:00
Sephtex
c35eee0255
indentation fix
added same indentation of the echo as all the rest in the for loop
2019-02-03 19:12:54 +01:00
Sephtex
f6dbe9bd57
add usage of clean_fieldname
Used the correct munin way by soursing "$MUNIN_LIBDIR/plugins/plugin.sh" and use clean_fieldname.
For the title I removed the replacement of / by __ and on the multigraph value I added the usage of clean_fieldname to make it backwards compatible.
2019-02-03 19:10:56 +01:00
Sephtex
0429e63be5
Add support for dash in zfs_list
#969 zfs/zfs_list: Add support for dash in zfs_list
2019-02-03 15:10:13 +01:00
Lars Kruse
bc8bb4d9d7
Merge pull request #968 from jtsage/fix-ubiquity-plugin
Ubiquity Plugin: login error fix
2019-02-01 14:45:12 +01:00
Lars Kruse
4aaccdcb23
Merge pull request #967 from tobany/master
Improve plugin mysql_slave_thread
2019-01-16 20:02:51 +01:00
JTSage
2156464c66 Ubiquity Plugin: new controllers require the use of double quoted string to login 2019-01-16 09:24:36 -05:00
Anthony Baccuet
4547f33dda Add error message to extinfo 2019-01-16 10:39:36 +01:00
Lars Kruse
a535a5df53
Merge pull request #966 from MyCryptoCheckout/master
Fix spaces in directory names. Glob directories.
2019-01-09 02:43:03 +01:00
Edward Plainview
5fcad70008 Fix spaces in directory names. Glob directories. 2019-01-08 15:54:42 +01:00
Lars Kruse
d5fc30a9bf nginx_upstream_multi_: simplify configuration retrieval via environment 2018-12-20 15:25:32 +01:00
Lars Kruse
734da6b9c8 nginx_upstream_multi_: fix namespace overide of "time" 2018-12-20 15:25:32 +01:00
Lars Kruse
5f9e882bce nginx_upstream_multi_: fix flake8 issues 2018-12-20 15:25:31 +01:00
Lars Kruse
13bd1599b0 nginx_upstream_multi_: migrate to Python3 2018-12-20 15:24:42 +01:00
Lars Kruse
d5676e9dfa
Merge pull request #965 from shuehner/fix_permgen_metaspace
Fix reporting of 'Permanent Generation' / Metaspace (for java<8)
2018-12-14 21:13:24 +01:00
Stefan Huehner
583560e57f Fix reporting of 'Permanent Generation' / Metaspace.
Fix regression in last commit. While it added auto-detection of changing
column position it did not take into account the known change from
Java 7 > 8.

Java <8 had the Permanent Generation region which jstat columns PU, PC
While Java >=8 now has a Metaspace region (for similar purpose) with
jstat columns MU,MC.

Add re-add detection for that change to fix reporting of the values.

To simplify code uses the MU,MC labels internally and when MU,MC are
not found in jstat output it fills those with PU,PC values.
2018-12-14 14:43:31 +01:00
Lars Kruse
4e713c9b30
Merge pull request #963 from shuehner/more_jvms
Fix jstat* plugins to work again with java 6+7, fix PU reporting for Java8
2018-12-14 03:50:36 +01:00
Stefan Huehner
f0548a37de Fix jstat* plugins to work again with java 6+7, fix PU reporting for
Java8.

jstat column output is not stable across JVM versions (technically
version of jstat binary used).
New columns are added not add the end of column list but in the middle
breaking access via constant index.

Following table shows the known columns per version:
Oracle JDK / OpenJDK 1.5 .. 1.7
   S0C    S1C    S0U    S1U      EC       EU        OC         OU       PC     PU    YGC    YGCT   FGC     FGCT    GCT
Openjdk 1.8 .. 10
   S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT     GCT
Openjdk 11  .. 12
   S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT     CGC    CGCT     GCT

Earlier commit here added support for java8+ but using version checking
if version == 1.5 > Use pre-java8 column format, else new format.

As fixing java6+7 would mean more version comparison which is ugly this
cmomit changes retrival logic to the following;
a.) Parse first line jstat output to find position for each label
b.) Then use that position to fetch value from 2nd line

That way code auto-adjusts to any ordering change without needing any
java version specific code or checks.

On the way fix 'Permanent Used' value reporting for java8 which was
broken (missing variable rename from PU -> MU when java8 support was
added).
2018-12-13 15:20:34 +01:00
Lars Kruse
7c397d94f2
Merge pull request #961 from bobkare/nullmailer-thresholds
Add support for configurable thresholds to nullmailer_queue plugin
2018-11-29 21:31:35 +01:00
Knut Arne Bjørndal
69ff4ef307 Fix potential whitespace issue raised in review 2018-11-29 08:45:02 +01:00
Lars Kruse
7698d7fe4c
Merge pull request #960 from bertptrs/plugin-timesync
Create plugin timesync_status to monitor systemd ntp.
2018-11-29 01:41:07 +01:00
Knut Arne Bjørndal
aa009f6093 Add support for configurable thresholds to nullmailer_queue plugin 2018-11-28 16:11:02 +01:00
Bert Peters
44b604cdb8 Create plugin timesync_status to monitor systemd ntp. 2018-11-28 12:11:52 +01:00
Lars Kruse
e48f0a3b79 Minor cleanup of logs/ plugins
* fix spelling mistake (thanks, codespell)
* do not hide exit code of command substitution via "local" (thanks, shellcheck)
* avoid access of potentially undefined variables (thanks, shellcheck)
* fix tabs/spaces
* avoid variable substitution in arithmetic substitution
* reduce number of successive blank lines at the top level down to two
* simplify evaluation of "printenv" output
2018-11-20 01:48:36 +01:00
Lars Kruse
48953d84d2
Merge pull request #957 from kael-shipman/systemd_units
Added detailed filtering capabilities for systemd_units
2018-11-20 01:19:55 +01:00
Lars Kruse
2119206e39
Merge pull request #959 from kael-shipman/logevents
Added extinfo to list affected logs and improved documentation
2018-11-20 00:29:45 +01:00
Kael Shipman
1d418a1e3a Added check for logfile existence at top of loop 2018-11-18 18:08:44 -06:00
Kael Shipman
00737cf2fc More perldoc compatibility 2018-11-18 17:24:42 -06:00
Kael Shipman
3699102c3a Fixed documentation for perldoc format 2018-11-18 17:17:57 -06:00
Kael Shipman
ec802cda2d Address PR comments 2018-11-18 17:12:53 -06:00
Kael Shipman
cc6600b482 Addressed PR comments 2018-11-18 16:49:16 -06:00
Kael Shipman
c3305389da Added loggrepx_ example graphs 2018-11-18 12:49:40 -06:00
Kael Shipman
6c13e1d9cf Added extinfo to list affected logs and improved documentation 2018-11-18 12:26:29 -06:00
Lars Kruse
ac1af8bd7e
Merge pull request #956 from kael-shipman/logevents
Added loggrepx_ and service_events
2018-11-15 21:31:37 +01:00
Kael Shipman
b26ba8e6bd Bugfix and re-positioning 2018-11-15 14:27:29 -06:00
Kael Shipman
19a3cbe397 Addressed PR suggestions (round 1) 2018-11-15 00:18:47 -06:00
Kael Shipman
dcfcbc2faa Added detailed filtering capabilities for systemd_units 2018-10-19 15:27:53 -05:00
Kael Shipman
0d4ad57fc9 Added loggrepx_ and service_events 2018-10-19 13:23:27 -05:00
Lars Kruse
c4d7d834ab
Merge pull request #955 from kael-shipman/patch-1
Added print_{warning,critical} for greater flexibility
2018-10-18 23:45:51 +02:00
Kael Shipman
eda5c9b4b4
Implemented minor changes as suggested by maintainer 2018-10-17 20:32:44 -05:00
Lars Kruse
e4e5d3631c Accepted suggestion from maintainer 2018-10-17 20:28:04 -05:00