1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00
Commit graph

4201 commits

Author SHA1 Message Date
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
Kael Shipman
161f2bb534
Added print_{warning,critical} for greater flexibility
Updated to allow admin to set custom values for warning and critical levels for all `$state` fields.
2018-10-17 17:10:21 -05:00
Lars Kruse
34cb2b5071
Merge pull request #953 from Slamdunk/patch-1
Nginx error: log files may be empty
2018-10-17 21:28:36 +02:00
Filippo Tessarotto
caf3b6c90f
Nginx error: log files may be empty 2018-10-17 08:44:02 +02:00
Lars Kruse
a2ebe02412
Merge pull request #952 from Neraud/debsecan
Improve documentation of debsecan_ plugin and add example graphs
2018-10-17 04:46:49 +02:00
Lars Kruse
39d6b73c5f doc: change link for plugin example graphs to the guide 2018-10-17 03:08:25 +02:00
Neraud
3bc4979f3f Fixed example graphs file names
Renamed from debsecan_pkg-FOO.png to debsecan_-FOO.png
2018-10-16 22:27:51 +02:00
Neraud
01e7e90dc5 Added example graphs for debsecan_pkg 2018-10-16 12:39:21 +02:00
Neraud
1eb83ab6e6 Fixed CONFIGURATION documentation 2018-10-16 12:38:42 +02:00
Lars Kruse
889e471975
Merge pull request #950 from jtsage/add_unifi_plugins
Add a group of plugins for unifi (Ubiquity) gear
2018-10-14 20:58:32 +02:00
JTSage
556c536c26 Add a plugin for unifi (Ubiquity) gear
Plugins available:

 * unifi_api - Providing the following graphs:

   * unifi_clients_by_device - Count the number of clients connected on a per-device basis

   * unifi_clients_by_network - Count the number of clients connected to each named network

   * unifi_device_stats - Get basic stats from each unifi device - cpu, memory, load average, and uptime

   * unifi_xfer_by_device - Transfer stats on a per-device basis

   * unifi_xfer_by_network - Transfer stats on a per-network basis

   * unifi_xfer_by_port - Transfer stats per switch port

   * unifi_xfer_by_uplink - Overall transfer with speedtest stats
2018-10-14 13:11:37 -04:00
Lars Kruse
25a7b2c0f1
Merge pull request #949 from mikini/patch-1
Generate cache file if missing
2018-10-05 01:37:33 +02:00
Mikkel Kirkgaard Nielsen
21c28638e3
Generate cache file if missing
Don't exit with error if cache file is missing, instead refrain from sending values and daemonize() in an attempt to generate one.
Invocation using 'config' before generation is successful will fail, as mentioned in #914, but configuration will get picked up as soon as it is present.
2018-10-04 19:53:31 +02:00
Kjetil Torgrim Homme
a2267c05ed more sanity checking. give appropriate feedback to autoconf. 2018-10-02 10:29:23 +02:00
Kjetil Torgrim Homme
cca33b3984 nvme - Munin plugin to monitor the use of NVMe devices
This is a multigraph plugin which makes three graphs, nvme_usage, nvme_bytes and nvme_writecycles
2018-09-26 19:57:13 +02:00
Lars Kruse
9b3aa2671b
Merge pull request #944 from cdesjardins/master
A few quick patches for du-2
2018-09-21 02:03:03 +02:00
Christopher Desjardins
a5ed119b6e Add sort to the du command to keep things in order of size 2018-09-20 12:06:05 +02:00
Christopher Desjardins
725d904131 Add clean_path back, it got dropped when clean_fieldname was added
This allows you to tidy up your munin dir stats
2018-09-20 12:05:42 +02:00
Lars Kruse
6995742e59 Plugins tc_*: check existence of "tc" during autoconf 2018-09-18 03:07:05 +02:00
Lars Kruse
272220c61a Merge branch 'fix-autoconf-exitcode'
Various plugins still followed the old (before 2009?) convention of using
a non-zero exitcode for indicating "no". Most of these (obvious) occasions
should be fixed now.
2018-09-16 15:18:01 +02:00
Lars Kruse
9cef55a3ed Restructure incomplete or broken "autoconf" implementations
Some plugins with non-zero autoconf exitcodes (it must be zero instead)
deserved a bit of code cleanup for improved readability.
2018-09-16 15:17:14 +02:00
Lars Kruse
46e2de55de Remove unused "autoconf" handling from plugins without this capability
Some plugins contained code for handling "autoconf" (always returning
"no") but did not announce the respective capability via the magic
marker.
2018-09-16 15:13:38 +02:00
Lars Kruse
2ec4e4c1f7 Improve incorrect or unspecific output for "autoconf"
Some plugins emit wrongly formatted "no" messages or lack the "yes"
message on success.
2018-09-16 15:13:38 +02:00
Lars Kruse
e4cd049b01 Fix trivial instances of wrong autoconf exitcodes 2018-09-16 04:03:31 +02:00
Lars Kruse
f96bcb415a
Merge pull request #940 from RubenKelevra/add_systemd_net_for_tc
network.tc*: add the ability to detect systemd based network devices
2018-09-10 20:39:36 +02:00
RubenKelevra
f3347821e5 network.tc*: add the ability to detect systemd based network device names 2018-09-10 20:03:22 +02:00
Lars Kruse
81833d05e8
Merge pull request #938 from Neraud/git_commit_behind_fixed_shell
Git commit behind fixed shell
2018-09-10 19:15:44 +02:00