@@ -31,7 +31,7 @@
def apc_snmp(command, oid_tail):
# private.enterprises.apc.hardware.rPDU
rpdu = "iso.org.dod.internet.private.enterprises.318.1.1.12"
- common_options = "-T %(timeout)s -OvQ -v 1 -c %(community)s %(host)s" % {
+ common_options = "-t %(timeout)s -OvQ -v 1 -c %(community)s %(host)s" % {
"timeout": opt_T,
"community": opt_C,
"host": opt_H,
@@ -113,7 +113,7 @@
if __name__ == '__main__':
opt_h = verbose = opt_w = opt_H = opt_C = opt_c = None
-
+ opt_T = 1
opts, args = getopt(sys.argv[1:], "Vhvw:H:C:c:T:")
for o, a in opts:
if o in ("-V", "--version"):
@@ -141,9 +141,6 @@
else:
print_usage()
- if not opt_T
- opt_T = 1
-
apc_info = snmpconnect()
critical = None
|