sync ports with The Matrix

This commit is contained in:
purplerain 2023-09-08 05:21:37 +00:00
parent ec769495ab
commit f5034afcba
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
3108 changed files with 91999 additions and 80269 deletions

View file

@ -0,0 +1,21 @@
Index: check_squid
--- check_squid.orig
+++ check_squid
@@ -122,7 +122,7 @@ $mp->add_arg(
$mp->add_arg(
spec => 'squidclient|s=s',
help => "-s, --squidclient=<squidclient_path>\n"
- . " Path of squidclient (default: Use which to get command path and if not found set /usr/sbin/squidclient)",
+ . " Path of squidclient (default: Use which to get command path and if not found set /usr/local/bin/squidclient)",
required => 0,
);
@@ -154,7 +154,7 @@ $critical = undef if (defined($critical) and $critical
$warning = undef if (defined($warning) and $warning eq '');
$squidclient = `which squidclient` if (!defined($squidclient) or $squidclient eq '');
$squidclient =~ s/^\s+|\s+$//g;
-$squidclient = '/usr/sbin/squidclient' if (!defined($squidclient) or $squidclient eq '');
+$squidclient = '/usr/local/bin/squidclient' if (!defined($squidclient) or $squidclient eq '');
$mp->set_thresholds(critical => $critical, warning => $warning);