Search
j0ke.net Open Build Service
>
Projects
>
internetx
>
nagios-plugins-3ware
> check_3ware_raid.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File check_3ware_raid.diff of Package nagios-plugins-3ware
--- check_3ware_raid.orig 2008-05-30 10:31:04.000000000 +0200 +++ check_3ware_raid 2008-05-30 10:33:11.000000000 +0200 @@ -42,7 +42,8 @@ sys.exit(CRITICAL) from optparse import OptionParser -SRCDIR = os.path.dirname(sys.argv[0]) +#SRCDIR = os.path.dirname(sys.argv[0]) +SRCDIR = "/sbin" def end(status, message, disks=False): @@ -71,12 +72,13 @@ ARCH = os.uname()[4] -if re.match("i[3456]86", ARCH): - BIN = SRCDIR + "/tw_cli" -elif ARCH == "x86_64": - BIN = SRCDIR + "/tw_cli_64" -else: - end(UNKNOWN, "architecture is not x86 or x86_64, cannot run 3ware utility") +#if re.match("i[3456]86", ARCH): +# BIN = SRCDIR + "/tw_cli" +#elif ARCH == "x86_64": +# BIN = SRCDIR + "/tw_cli_64" +#else: +# end(UNKNOWN, "architecture is not x86 or x86_64, cannot run 3ware utility") +BIN = SRCDIR + "/tw_cli" if not os.path.exists(BIN): end(UNKNOWN, "3ware utility for this architecture '%s' cannot be found" \