/[pdpsoft]/trunk/nagios/ees/check_ees
ViewVC logotype

Diff of /trunk/nagios/ees/check_ees

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

revision 2460 by msalle, Tue Dec 6 10:27:45 2011 UTC revision 2461 by msalle, Tue Dec 6 12:27:27 2011 UTC
# Line 269  sub getopts()  { Line 269  sub getopts()  {
269      $host=$defhost;      $host=$defhost;
270      $port=$defport;      $port=$defport;
271      GetOptions(      GetOptions(
272          "t|timeout=i" => \$timeout,          "t|timeout=f" => \$timeout,
273          "c|critical=i" => \$timeout,          "c|critical=f" => \$timeout,
274          "w|warning=i" => \$warning,          "w|warning=f" => \$warning,
275          "H|host=s" => \$host,          "H|host=s" => \$host,
276          "p|port=i" => \$port,          "p|port=i" => \$port,
277          "u|url=s",          "u|url=s",
# Line 283  sub getopts()  { Line 283  sub getopts()  {
283      $help and &usage and exit(0);      $help and &usage and exit(0);
284      $shorthelp and &shortusage and exit(0);      $shorthelp and &shortusage and exit(0);
285      $version and &version and exit(0);      $version and &version and exit(0);
286        $timeout=0 if ($timeout<0);
287        $warning=0 if ($warning<0);
288  }  }
289    
290  # 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