Commit Graph

31 Commits

Author SHA1 Message Date
Lars Kruse
e3103bdb6e Plugin df: ignore read-only and virtual filesystem types
The set of filesystems is based on the list of excluded filesystems in
munin's "df" plugin for Linux.
2020-02-08 23:39:44 +01:00
Lars Kruse
44d1c8dc3a Plugin if_: do not expose errors from ethtool
ethtool prints the error message "Cannot get device settings: No such
device" for VLAN devices.  This error message should not be exposed via
the munin protocol.
2020-02-08 23:39:44 +01:00
Lars Kruse
6b09d74c9a Remove tabs from plugins 2020-02-08 23:39:44 +01:00
Lars Kruse
b5d8f7931b Plugin if_ and if_err_: use explicit variable for interface name 2020-02-08 23:39:44 +01:00
Lars Kruse
60b16f4121 Plugin netstat: adjust filter to newer netstat version
Newer versions of netstat use "active connection openings" instead of
"active connections".
2020-02-08 23:39:44 +01:00
Lars Kruse
974b07a1af Remove unnecessary "cat" operations 2020-02-08 23:39:44 +01:00
Lars Kruse
0600bbf113 Simplify grep-based conditionals
The "-q" argument avoids the requirement for output redirections.
2020-02-08 23:39:44 +01:00
Lars Kruse
94a695860d Simplify checks for empty or non-empty strings 2020-02-08 23:39:44 +01:00
Lars Kruse
5190244c92 Simplify arithemtic shell expressions
Variable names within arithmetic expressions are evaluated even without
the '$' prefix.
2020-02-08 23:39:44 +01:00
Lars Kruse
dc242d3631 Plugin cpu: fix handling of more than ten CPUs
Previously only CPU entries with a single digit (0..9) were parsed.
The improved regular expression simplifies the calculation of the CPU
count, since the combined entry ("cpu" without digits) is skipped.
2020-02-08 23:39:44 +01:00
Lars Kruse
14251d6791 Add missing quoting 2020-02-08 23:39:44 +01:00
Lars Kruse
5de3df252e Plugin swap: fix evaluation of swap usage
The variable name was misspelled.
2020-02-08 23:39:44 +01:00
Lars Kruse
d1da0df1b2 Plugin memory: fix evaluation of "inactive laundry"
The variable name was misspelled.
2020-02-08 23:39:44 +01:00
Lars Kruse
631e86156e Fix spelling issues
reported by "codespell"
2020-02-06 07:29:11 +01:00
Lars Kruse
b0e991d4d4 whitespace cleanup 2020-02-06 07:29:11 +01:00
Lars Kruse
ab2347f2ac swap: return "U" in case of missing swap
The swap plugin should return "U" if no value was found.

Source: patch "310-fix-swap-output" from Opennet Firmware
2019-07-19 06:10:34 +02:00
Lars Kruse
56bf90a6f8 muninlite: fix irqstats plugin
The config() function of irqstats seems to contain a superfluous
semicolon, causing munin to choke on this plugin. This simple patch
fixes exactly that.

Source: patch "240-fix-irqstats" from OpenWrt
Author: Jorik Jonker
2019-07-19 06:03:51 +02:00
Lars Kruse
7b4f376daf Fix fetching data for interfaces with a dash in the name
munin-node passes the original interface name (as extracted from
/proc/net/dev) to if_* and if_err_*. Thus replacing dash with underscore
results in interfaces not being found anymore.

Source: patch "220-modify-ifname-parser" from OpenWrt
Author: Martin Blumenstingl
2019-07-19 06:01:08 +02:00
Lars Kruse
44628e78cc uptime should report days, not seconds
Source: https://sourceforge.net/p/muninlite/patches/8/
Author: Craig Gallek

See patch "110-fix-uptime-days" in OpenWrt.
2019-07-19 05:54:53 +02:00
Lars Kruse
3e0ecfe678 Fix error messages on server due to missing ethtool on node
Source: patch "100-fix-no-ethtool" from OpenWrt
Author: cshore
2019-07-19 05:49:51 +02:00
Lars Kruse
d9b1b1ad3f Enable the df plugin again and fix parsing disk usage
Source: patch "001-fix_disks" from OpenWrt
Author: Martin Blumenstingl
2019-07-19 05:45:48 +02:00
runesk
0e1e1b6bbc Arrays is a bashismn
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@31 35caa317-6b62-4e8a-81c0-b04f0c356266
2011-01-27 09:58:58 +00:00
runesk
fc1c90b1a2 Keith Taylor submitted a patch to support older kernels ID: 2716990
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@29 35caa317-6b62-4e8a-81c0-b04f0c356266
2011-01-14 20:52:13 +00:00
runesk
380a399a81 Build need this empty file
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@25 35caa317-6b62-4e8a-81c0-b04f0c356266
2011-01-14 20:25:53 +00:00
runesk
78f7079596 Closes 2080844
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@20 35caa317-6b62-4e8a-81c0-b04f0c356266
2009-03-17 12:35:31 +00:00
runesk
a18de9ac24 Closes 2078765
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@19 35caa317-6b62-4e8a-81c0-b04f0c356266
2009-03-17 12:17:51 +00:00
runesk
61be8d19e2 BUG: Line break
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@17 35caa317-6b62-4e8a-81c0-b04f0c356266
2007-11-30 11:24:07 +00:00
runesk
6eb9e91c1f 1.0.1
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@16 35caa317-6b62-4e8a-81c0-b04f0c356266
2007-11-30 10:43:07 +00:00
runesk
84fd994485 Nicer pipe (hint from janl)
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@15 35caa317-6b62-4e8a-81c0-b04f0c356266
2007-09-25 12:53:05 +00:00
runesk
2f8d3ffd06 SF#1736919
Changed type to DERIVE and added min values to 0. Added check for
ethtool to check if max value could be calculated


git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@11 35caa317-6b62-4e8a-81c0-b04f0c356266
2007-06-15 12:07:51 +00:00
runesk
7c8bd1e394 Import
git-svn-id: svn://svn.code.sf.net/p/muninlite/code/muninlite@1 35caa317-6b62-4e8a-81c0-b04f0c356266
2007-06-11 15:45:16 +00:00