diff options
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | plugins-scripts/check_ircd.pl | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -16,7 +16,7 @@ This file documents the major additions and syntax changes between releases. | |||
16 | Fix regression introduced in #1867716 where partially valid performance strings would not be printed anymore | 16 | Fix regression introduced in #1867716 where partially valid performance strings would not be printed anymore |
17 | Fix regression in check_http ssl checks on some servers - make SNI an option | 17 | Fix regression in check_http ssl checks on some servers - make SNI an option |
18 | Fix guest mode support in check_disk_smb | 18 | Fix guest mode support in check_disk_smb |
19 | Fix check_disk_smb failure when run via ePN | 19 | Fix check_disk_smb and check_ircd failures when run via ePN |
20 | check_ldap now allows for specifying an empty LDAP base | 20 | check_ldap now allows for specifying an empty LDAP base |
21 | WARNINGS | 21 | WARNINGS |
22 | Updated developer documentation to say that performance labels should not have an equals sign or | 22 | Updated developer documentation to say that performance labels should not have an equals sign or |
diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl index 3fbce2e..42a9bca 100755 --- a/plugins-scripts/check_ircd.pl +++ b/plugins-scripts/check_ircd.pl | |||
@@ -187,19 +187,19 @@ MAIN: | |||
187 | 187 | ||
188 | if ($opt_h) {print_help(); exit $ERRORS{'OK'};} | 188 | if ($opt_h) {print_help(); exit $ERRORS{'OK'};} |
189 | 189 | ||
190 | ($opt_H) || ($opt_H = shift) || usage("Host name/address not specified\n"); | 190 | ($opt_H) || ($opt_H = shift @ARGV) || usage("Host name/address not specified\n"); |
191 | my $remotehost = $1 if ($opt_H =~ /([-.A-Za-z0-9]+)/); | 191 | my $remotehost = $1 if ($opt_H =~ /([-.A-Za-z0-9]+)/); |
192 | ($remotehost) || usage("Invalid host: $opt_H\n"); | 192 | ($remotehost) || usage("Invalid host: $opt_H\n"); |
193 | 193 | ||
194 | ($opt_w) || ($opt_w = shift) || ($opt_w = 50); | 194 | ($opt_w) || ($opt_w = shift @ARGV) || ($opt_w = 50); |
195 | my $warn = $1 if ($opt_w =~ /^([0-9]+)$/); | 195 | my $warn = $1 if ($opt_w =~ /^([0-9]+)$/); |
196 | ($warn) || usage("Invalid warning threshold: $opt_w\n"); | 196 | ($warn) || usage("Invalid warning threshold: $opt_w\n"); |
197 | 197 | ||
198 | ($opt_c) || ($opt_c = shift) || ($opt_c = 100); | 198 | ($opt_c) || ($opt_c = shift @ARGV) || ($opt_c = 100); |
199 | my $crit = $1 if ($opt_c =~ /^([0-9]+)$/); | 199 | my $crit = $1 if ($opt_c =~ /^([0-9]+)$/); |
200 | ($crit) || usage("Invalid critical threshold: $opt_c\n"); | 200 | ($crit) || usage("Invalid critical threshold: $opt_c\n"); |
201 | 201 | ||
202 | ($opt_p) || ($opt_p = shift) || ($opt_p = 6667); | 202 | ($opt_p) || ($opt_p = shift @ARGV) || ($opt_p = 6667); |
203 | my $remoteport = $1 if ($opt_p =~ /^([0-9]+)$/); | 203 | my $remoteport = $1 if ($opt_p =~ /^([0-9]+)$/); |
204 | ($remoteport) || usage("Invalid port: $opt_p\n"); | 204 | ($remoteport) || usage("Invalid port: $opt_p\n"); |
205 | 205 | ||