mirror of https://github.com/Icinga/icinga2.git
check_systemd: Fix executable name by dropping .py
The executable name for check_systemd's dropped the `.py` suffix for version 2.0.3[0], released in April 2019[1]. However, the old name is still being referenced, both in documentation as well as in the ITL's CheckCommand's command, making it unusable. Closes #9547. [0]: https://github.com/Josef-Friedrich/check_systemd/compare/v2.0.2...v2.0.3#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7 [1]: https://github.com/Josef-Friedrich/check_systemd/releases/tag/v2.0.3
This commit is contained in:
parent
08eaf71994
commit
a219436708
|
@ -2135,7 +2135,7 @@ In order to find out about the command argument, call the plugin's help
|
||||||
or consult the README.
|
or consult the README.
|
||||||
|
|
||||||
```
|
```
|
||||||
./check_systemd.py --help
|
./check_systemd --help
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -2194,7 +2194,7 @@ With the [example above](03-monitoring-basics.md#command-arguments-value),
|
||||||
inspect the parameter's help text.
|
inspect the parameter's help text.
|
||||||
|
|
||||||
```
|
```
|
||||||
./check_systemd.py --help
|
./check_systemd --help
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
|
@ -281,10 +281,10 @@ that [it works](05-service-monitoring.md#service-monitoring-plugins-it-works). T
|
||||||
`--help` parameter to see the actual parameters (docs might be outdated).
|
`--help` parameter to see the actual parameters (docs might be outdated).
|
||||||
|
|
||||||
```
|
```
|
||||||
./check_systemd.py --help
|
./check_systemd --help
|
||||||
|
|
||||||
usage: check_systemd.py [-h] [-c SECONDS] [-e UNIT | -u UNIT] [-v] [-V]
|
usage: check_systemd [-h] [-c SECONDS] [-e UNIT | -u UNIT] [-v] [-V]
|
||||||
[-w SECONDS]
|
[-w SECONDS]
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -319,7 +319,7 @@ Start with the basic plugin call without any parameters.
|
||||||
|
|
||||||
```
|
```
|
||||||
object CheckCommand "systemd" { // Plugin name without 'check_' prefix
|
object CheckCommand "systemd" { // Plugin name without 'check_' prefix
|
||||||
command = [ PluginContribDir + "/check_systemd.py" ] // Use the 'PluginContribDir' constant, see the contributed ITL commands
|
command = [ PluginContribDir + "/check_systemd" ] // Use the 'PluginContribDir' constant, see the contributed ITL commands
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -3652,7 +3652,7 @@ iostat\_cwrite | **Required.** Critical threshold for KB/s writes (default: 200)
|
||||||
|
|
||||||
#### systemd <a id="plugin-contrib-command-systemd"></a>
|
#### systemd <a id="plugin-contrib-command-systemd"></a>
|
||||||
|
|
||||||
The [check_systemd.py](https://github.com/Josef-Friedrich/check_systemd) plugin
|
The [check_systemd](https://github.com/Josef-Friedrich/check_systemd) plugin
|
||||||
will report a degraded system to your monitoring solution. It requires only the [nagiosplugin](https://nagiosplugin.readthedocs.io/en/stable) library.
|
will report a degraded system to your monitoring solution. It requires only the [nagiosplugin](https://nagiosplugin.readthedocs.io/en/stable) library.
|
||||||
|
|
||||||
Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
||||||
|
|
||||||
object CheckCommand "systemd" {
|
object CheckCommand "systemd" {
|
||||||
command = [ PluginContribDir + "/check_systemd.py" ]
|
command = [ PluginContribDir + "/check_systemd" ]
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
"--unit" = {
|
"--unit" = {
|
||||||
|
|
Loading…
Reference in New Issue