Skip to content

Commit b844355

Browse files
committed
chore: normalize section comments across all plugins to match example
Three mechanical sweeps, no functional changes: * 241 check and notification plugins: drop the tail "...exit with UNKNOWN if it fails" from the `# parse the command line` section marker; the surrounding try/except block already says so, and the example plugin uses the shorter form. * 16 check plugins: `# analyze the data` -> `# analyze data`, matching the example marker exactly. * php-fpm-status: add the missing `# parse the command line` marker above the try/except.
1 parent 6ede09f commit b844355

242 files changed

Lines changed: 258 additions & 257 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎check-plugins/about-me/about-me‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ def run_regex(haystack, regex, group=1):
13031303
def main():
13041304
"""The main function. This is where the magic happens."""
13051305

1306-
# parse the command line, exit with UNKNOWN if it fails
1306+
# parse the command line
13071307
try:
13081308
args = parse_args()
13091309
except SystemExit:

‎check-plugins/apache-httpd-status/apache-httpd-status‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def parse_args():
123123
def main():
124124
"""The main function. This is where the magic happens."""
125125

126-
# parse the command line, exit with UNKNOWN if it fails
126+
# parse the command line
127127
try:
128128
args = parse_args()
129129
except SystemExit:

‎check-plugins/apache-httpd-version/apache-httpd-version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def get_installed_version(test_arg=None):
146146
def main():
147147
"""The main function. This is where the magic happens."""
148148

149-
# parse the command line, exit with UNKNOWN if it fails
149+
# parse the command line
150150
try:
151151
args = parse_args()
152152
except SystemExit:

‎check-plugins/apache-solr-version/apache-solr-version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def get_installed_version(path, test_arg=None):
154154
def main():
155155
"""The main function. This is where the magic happens."""
156156

157-
# parse the command line, exit with UNKNOWN if it fails
157+
# parse the command line
158158
try:
159159
args = parse_args()
160160
except SystemExit:

‎check-plugins/atlassian-statuspage/atlassian-statuspage‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def fmt_ts(ts):
158158
def main():
159159
"""The main function. This is where the magic happens."""
160160

161-
# parse the command line, exit with UNKNOWN if it fails
161+
# parse the command line
162162
try:
163163
args = parse_args()
164164
except SystemExit:

‎check-plugins/axenita-stats/axenita-stats‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def parse_args():
9898
def main():
9999
"""The main function. This is where the magic happens."""
100100

101-
# parse the command line, exit with UNKNOWN if it fails
101+
# parse the command line
102102
try:
103103
args = parse_args()
104104
except SystemExit:
@@ -167,7 +167,7 @@ def main():
167167
state = STATE_OK
168168
perfdata = ''
169169

170-
# analyze the data
170+
# analyze data
171171
if achilles_maintenance:
172172
if achilles_maintenance['state'].upper() != 'SUCCESS':
173173
state = lib.base.get_worst(STATE_WARN, state)

‎check-plugins/borgbackup/borgbackup‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def parse_args():
7070
def main():
7171
"""The main function. This is where the magic happens."""
7272

73-
# parse the command line, exit with UNKNOWN if it fails
73+
# parse the command line
7474
try:
7575
args = parse_args()
7676
except SystemExit:

‎check-plugins/by-ssh/by-ssh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def parse_args():
305305
def main():
306306
"""The main function. This is where the magic happens."""
307307

308-
# parse the command line, exit with UNKNOWN if it fails
308+
# parse the command line
309309
try:
310310
args = parse_args()
311311
except SystemExit:

‎check-plugins/by-winrm/by-winrm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def parse_args():
241241
def main():
242242
"""The main function. This is where the magic happens."""
243243

244-
# parse the command line, exit with UNKNOWN if it fails
244+
# parse the command line
245245
try:
246246
args = parse_args()
247247
except SystemExit:

‎check-plugins/cometsystem/cometsystem‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_channel_state(channel, args):
149149
def main():
150150
"""The main function. This is where the magic happens."""
151151

152-
# parse the command line, exit with UNKNOWN if it fails
152+
# parse the command line
153153
try:
154154
args = parse_args()
155155
except SystemExit:

0 commit comments

Comments
 (0)