Faidon Liambotis has submitted this change and it was merged.
Change subject: nagios: minor check_sslxNN ePN fix
......................................................................
nagios: minor check_sslxNN ePN fix
$PWD when running under ePN is /usr/lib/nagios, so be a bit smarter
about our @INC.
Change-Id: I9f5010c144cfccd56c0e796a73b20ee626fa9632
---
M modules/nagios_common/files/check_commands/check_sslxNN
1 file changed, 3 insertions(+), 2 deletions(-)
Approvals:
Faidon Liambotis: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/nagios_common/files/check_commands/check_sslxNN
b/modules/nagios_common/files/check_commands/check_sslxNN
index 0539867..601ee7a 100755
--- a/modules/nagios_common/files/check_commands/check_sslxNN
+++ b/modules/nagios_common/files/check_commands/check_sslxNN
@@ -36,8 +36,9 @@
use Nagios::Plugin::Functions qw(nagios_exit max_state %STATUS_TEXT);
# this is required to be in the same directory as us
-use FindBin;
-require "$FindBin::Bin/check_ssl"; ## no critic
+use FindBin qw($Bin);
+use lib ($Bin, "$Bin/plugins", "/usr/lib/nagios/plugins");
+require "check_ssl"; ## no critic
sub check_ssl {
local @ARGV = @_;
--
To view, visit https://gerrit.wikimedia.org/r/182348
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9f5010c144cfccd56c0e796a73b20ee626fa9632
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits