Skip to content

Commit 019a127

Browse files
committed
refactor(example): improve code template
1 parent 313ce84 commit 019a127

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

check-plugins/example/example

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,29 @@
1111
"""See the check's README for more details.
1212
"""
1313

14-
import argparse # pylint: disable=C0413
15-
import sys # pylint: disable=C0413
14+
import argparse
15+
import sys
1616

17-
import lib.args # pylint: disable=C0413
18-
import lib.base # pylint: disable=C0413
19-
import lib.shell # pylint: disable=C0413
20-
import lib.lftest # pylint: disable=C0413
21-
import lib.time # pylint: disable=C0413
22-
from lib.globals import (STATE_CRIT, STATE_OK, # pylint: disable=C0413
23-
STATE_UNKNOWN, STATE_WARN)
17+
import lib.args
18+
import lib.base
19+
import lib.shell
20+
import lib.lftest
21+
import lib.time
22+
from lib.globals import (STATE_CRIT, STATE_OK, STATE_UNKNOWN, STATE_WARN)
2423

2524
try:
26-
import psutil # pylint: disable=C0413
25+
import psutil
2726
except ImportError:
2827
print('Python module "psutil" is not installed.')
2928
sys.exit(STATE_UNKNOWN)
3029

3130

3231
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
33-
__version__ = '2025021501'
32+
__version__ = '2025090701'
3433

3534
DESCRIPTION = """A working Linuxfabrik monitoring plugin, written in Python 3, as a basis for
36-
further development, and much more text to help admins get this check up and
37-
running."""
35+
further development, and much more text to help admins get this check up and
36+
running."""
3837

3938
DEFAULT_WARN = 80
4039
DEFAULT_CRIT = 90

0 commit comments

Comments
 (0)