Skip to content

Commit

Permalink
fixed environment inheritence
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Oct 10, 2017
1 parent cd6e0d6 commit 9254d82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions check_mesos_metrics.pl
Expand Up @@ -20,7 +20,7 @@
Tested on Mesos 0.23, 0.24, 0.25";

$VERSION = "0.2";
$VERSION = "0.2.1";

use strict;
use warnings;
Expand Down Expand Up @@ -82,12 +82,12 @@ BEGIN
);

if($progname =~ /master/){
env_creds(["Mesos Master", "Mesos"], "Mesos Master");
set_port_default(5050);
env_creds(["Mesos Master", "Mesos"], "Mesos Master");
$DESCRIPTION =~ s/metrics for either a Master or Slave/Master metrics/;
} elsif($progname =~ /slave/){
env_creds(["Mesos Slave", "Mesos"], "Mesos Slave");
set_port_default(5051);
env_creds(["Mesos Slave", "Mesos"], "Mesos Slave");
$DESCRIPTION =~ s/metrics for either a Master or Slave/Slave metrics/;
} else {
env_creds("Mesos");
Expand Down

0 comments on commit 9254d82

Please sign in to comment.