/[pdpsoft]/trunk/nagios/glexec/check_glexec
ViewVC logotype

Diff of /trunk/nagios/glexec/check_glexec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2460 by msalle, Tue Dec 6 11:47:52 2011 UTC revision 2461 by msalle, Tue Dec 6 12:27:27 2011 UTC
# Line 376  sub getopts()  { Line 376  sub getopts()  {
376      $warning=$defwarning;      $warning=$defwarning;
377      $payload=$defpayload;      $payload=$defpayload;
378      GetOptions(      GetOptions(
379          "t|timeout=i" => \$timeout,          "t|timeout=f" => \$timeout,
380          "c|critical=i" => \$critical,          "c|critical=f" => \$critical,
381          "w|warning=i" => \$warning,          "w|warning=f" => \$warning,
382          "x|x509-user-proxy=s" => \$X509_USER_PROXY,          "x|x509-user-proxy=s" => \$X509_USER_PROXY,
383          "g|glexec-client-cert=s" => \$GLEXEC_CLIENT_CERT,          "g|glexec-client-cert=s" => \$GLEXEC_CLIENT_CERT,
384          "e|execute=s" => \$payload,          "e|execute=s" => \$payload,
# Line 397  sub getopts()  { Line 397  sub getopts()  {
397      if (!defined $GLEXEC_CLIENT_CERT)   {      if (!defined $GLEXEC_CLIENT_CERT)   {
398          $GLEXEC_CLIENT_CERT=$X509_USER_PROXY;          $GLEXEC_CLIENT_CERT=$X509_USER_PROXY;
399      }      }
400        $timeout=0 if ($timeout<0);
401        $critical=0 if ($critical<0);
402        $warning=0 if ($warning<0);
403        $critical=$timeout if ($timeout<$critical);
404  }  }
405    
406  # Exit function: prints nagios status and dumps log  # Exit function: prints nagios status and dumps log

Legend:
Removed from v.2460  
changed lines
  Added in v.2461

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28