Commit Graph

61 Commits

Author SHA1 Message Date
lifeofguenter 375d3643ec remove failing test? 2021-03-10 12:42:29 +01:00
Lars Kruse 518644057e Plugin nutcracker_requests_: migrate to Python3, format documentation 2020-11-26 02:20:09 +01:00
Lars Kruse 7cf2dda94a Plugin snmp__juniper: migrate to Python3 2020-11-26 02:20:09 +01:00
Lars Kruse 8152186b9a Plugin snmp__juniper_spu: migrate to Python3 2020-11-26 02:20:09 +01:00
Lars Kruse 4387edfa8c Plugin mongo_btree: migrate to Python3, format documentation 2020-11-26 02:20:06 +01:00
Lars Kruse d8c3092325 Plugin nova_services: migrate to Python3, format documentation 2020-11-26 02:20:03 +01:00
Lars Kruse 37d81d7a6b Plugin nova_instance_: migrate to Python3, format documentation 2020-11-26 02:20:03 +01:00
Lars Kruse d168d49ee4 Plugin nova_floating_ips: migrate to Python3, format documentation 2020-11-26 02:20:00 +01:00
Lars Kruse bde90ba910 Plugin kvm_cpu: migrate to Python3, format documentation 2020-11-26 02:19:48 +01:00
Lars Kruse 0d055149cc Plugin keystone_stats: migrate to Python3, format documentation 2020-11-26 02:19:41 +01:00
Lars Kruse 3143c2c576 Tests: apply the exceptions to ruby-based code checks 2020-08-25 17:49:51 +02:00
Lars Kruse 758c3ecdd7 Tests: add ruby style and code checks via rubocop
At the moment all plugins fail the test out of various reasons.
Thus they are exempted from causing test failures.

But future (new) plugins will fail the test and thus indicate the
relevant steps to fix issues before a plugin is included.
2020-08-25 17:44:17 +02:00
Lars Kruse 26c29daa2b t/test-exception-wrapper: fix documentation 2020-08-25 17:44:17 +02:00
Lars Kruse dbaeb0253c Plugins apache_tmemory and apache_servers: multiple changes
* use base SI units for memory consumption
  (breaks graph values compared to older version)
* fix quoting for regular expressions
* use common defaults for configuration settings
2020-04-21 20:11:27 +02:00
Lars Kruse 16ab1d10e1 Plugin apache_memory: fix spelling and mark as clean 2020-04-21 20:02:04 +02:00
Lars Kruse cdb9a4456f Plugin xfs_frag: fix shellcheck issues 2020-03-26 04:23:21 +01:00
Lars Kruse f468341a07 Plugin read_serial_temperature: port to python3 2020-03-26 04:23:21 +01:00
Olivier Mehani f8801b87a0 [hostdenied] Reverse order of series so new entries are on top
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-23 23:09:34 +02:00
Olivier Mehani cfe070ea38 [network/hostsdeny] Refactor to support any blocked service
The HostDenied field is renamed to ssh. To preserve existing data,

	# cd /var/lib/munin/example.net
	# mv hostname-hostsdeny-HostsDenied-g.rrd hostname-hostsdeny-sshd-g.rrd

This refactor incidentally also fixes a bug where empty or commented-out
lines where also counted.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-13 16:59:03 +02:00
Lars Kruse 3716783a4b test-exception-wrapper: mention removal of a file from the list of expected failures 2019-10-03 17:36:04 +02:00
Lars Kruse 374cdde941 Remove "upnpc_" from list of expected code style test failures
It was probably fixed around 81bf32a5.
2019-10-03 17:34:07 +02:00
Lars Kruse ee68a404b5 Plugin w1_: add executable flag and tolerate shellcheck failure
Hopefully the issue will be resolved via #1011.
2019-08-14 04:06:31 +02:00
Lars Kruse 5b8adb5844 Plugin lighttpd_: fix code style issues reported by flake8 2019-08-14 00:42:45 +02:00
Lars Kruse 8b24b64960 Plugin icecast2_all: fix code style issues reported by flake8 2019-08-14 00:36:00 +02:00
Lars Kruse ab3a583756 Plugin icecast2_: fix code style issues reported by flake8 2019-08-14 00:29:57 +02:00
Lars Kruse c466adc4d3 Plugin ethermine_hashrate_: fix code style issues reported by flake8 2019-08-14 00:29:25 +02:00
Lars Kruse 275c82f479 Plugin btcguild_hashrate_: fix code style issues reported by flake8 2019-08-14 00:28:44 +02:00
Lars Kruse ba732fd7ec Plugin snmp__airport: fix code style issues reported by flake8 2019-08-14 00:09:29 +02:00
Lars Kruse dacb55010a Plugin snmp__synology: fix code style issues reported by flake8 2019-08-14 00:02:40 +02:00
Lars Kruse 8b69c8a1fe Remove plugin solrmulticore
The plugin was introduced in 2011 and superseded by the solr4_ plugin
introduced in 2013.
2019-08-13 23:58:19 +02:00
Lars Kruse a730d96a1f Remove plugin solr
The plugin saw only one substantial commit (its initial addition to the
repository).  This very first version of the plugin was already broken
(undefined variable "core1") and was never fixed.
Thus it feels sane to assume, that the plugin was never used.
2019-08-13 23:56:27 +02:00
Lars Kruse be1dfde5da Plugin solr4_: fix code style issues reported by flake8 2019-08-13 23:56:27 +02:00
Lars Kruse 24ab44ca23 Plugin tor_: fix code style issues reported by flake8 2019-08-13 23:47:39 +02:00
Lars Kruse e5abdeeb12 tests: enable shellcheck for shell-based plugins and flake8 for python-based plugins
Many plugins are still failing these tests.
These expected failures are listed in a file
(t/test-exception-wrapper.expected-failures)
A wrapper script is used for running the tests and comparing the result
with the expectation (based on the file being listed in the above file).

This allows to test all new plugins, while ignoring all known failures.
2019-08-13 05:16:13 +02:00
Steve Schnepp 878e733430 t: fixing skip 2019-07-27 21:15:35 +02:00
Steve Schnepp f42fdaa669 t: ignore empty files 2019-07-27 21:03:42 +02:00
Steve Schnepp 58f0ab64f3 travis: remove the check for the nvidia plugin 2019-07-27 16:54:43 +02:00
Lars Kruse 6c0e154e07 tests: add "shellcheck" tests for "ksh" scripts 2018-03-09 06:10:25 +01:00
Lars Kruse ebe5be1d06 tests: verify executable flag for plugins with shebang 2018-03-08 23:43:16 +01:00
Lars Kruse 29e6f53cad test: removed duplicate branch for "zsh"
added (by mistake) in c503e0dbcf
2018-03-08 23:21:55 +01:00
Lars Kruse 7ec35e1753 tests: work around 'checkbashisms' complaining about "command -v"
"command -v" should be the preferred way of determining the location (or
existence) of an executable.
Sadly "checkbashisms" interprets "command -v" as a possible bashism,
since "command -v" was introduced in IEEE 1003.1 2013.
But checkbashisms checks for compliance with IEEE 1003.1 2004 - here
"command -v" is listed only as a portability extension.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733511 for the
discussion about checkbashism and "command -v".

See https://unix.stackexchange.com/a/85250 for the discussion about
"command -v" being the most portable check for a program's location.

The workaround itself is bit ugly: 'checkbashisms' is monkey-patched
and fed into the perl interpreter. This makes it harder to re-run the
check command manually (due to complicated quoting).
2018-03-08 04:26:29 +01:00
sumpfralle 78dea36c9c Merge pull request #648 from akorn/master
plugins/virtualization/vserver/vserver_jiffies: several enhancements (but zsh)
2016-10-21 01:45:00 +02:00
Lars Kruse c503e0dbcf CI / Travis: add zsh syntax check 2016-10-17 02:21:16 +02:00
Lars Kruse d1a8965b5a tests: test compiling with python3 if given as shebang interpreter
Currently plugins fail to compile if they use Python 3 syntax features,
even though they use a correct shebang.
2015-10-30 06:09:12 +01:00
András Korn a6ea4c428c Add zsh syntax check to test.t 2015-09-26 17:25:54 +02:00
Stig Sandbeck Mathisen 3bb0f8a342 Remove todo list, all tests pass
[ci skip]
2014-10-05 20:47:12 +02:00
Stig Sandbeck Mathisen 2a638429c5 Update t/todo.org with new numbahs
[ci skip]
2014-10-05 20:27:19 +02:00
Stig Sandbeck Mathisen ad9a1aac23 Update todo list
[ci skip]
2014-10-05 15:32:35 +02:00
Stig Sandbeck Mathisen e33c35ffc3 Update TODO list
[ci skip]
2014-10-05 11:52:56 +02:00
Stig Sandbeck Mathisen f007901b64 Check python scirpts with "py_compile"
- leaves a mess behind, but works
2014-10-05 11:24:14 +02:00