Change help output

Signed-off-by: Sven Velt <sven@velt.de>
This commit is contained in:
Sven Velt 2011-01-28 15:07:42 +01:00
parent 5be69abaf3
commit de35c63ad8

View file

@ -368,9 +368,9 @@ class SNMPMonitoringPlugin(MonitoringPlugin):
MonitoringPlugin.__init__(self, *args, **kwargs) MonitoringPlugin.__init__(self, *args, **kwargs)
self.add_cmdlineoption('-H', '', 'host', 'Host to check', default='127.0.0.1') self.add_cmdlineoption('-H', '', 'host', 'Host to check', default='127.0.0.1')
self.add_cmdlineoption('-P', '', 'snmpversion', 'SNMP protocol version', default='1') self.add_cmdlineoption('-P', '', 'snmpversion', 'SNMP protocol version', metavar='1', default='1')
self.add_cmdlineoption('-C', '', 'snmpauth', 'SNMP v1/v2c community OR SNMP v3 quadruple', default='public') self.add_cmdlineoption('-C', '', 'snmpauth', 'SNMP v1/v2c community OR SNMP v3 quadruple', metavar='public', default='public')
self.add_cmdlineoption('', '--snmpcmdlinepath', 'snmpcmdlinepath', 'Path to "snmpget" and "snmpwalk"', default='/usr/bin') self.add_cmdlineoption('', '--snmpcmdlinepath', 'snmpcmdlinepath', 'Path to "snmpget" and "snmpwalk"', metavar='/usr/bin/', default='/usr/bin')
# FIXME # FIXME
self.add_cmdlineoption('', '--nonetsnmp', 'nonetsnmp', 'Do not use NET-SNMP python bindings', action='store_true') self.add_cmdlineoption('', '--nonetsnmp', 'nonetsnmp', 'Do not use NET-SNMP python bindings', action='store_true')
# self.__optparser.add_option('', '--nonetsnmp', dest='nonetsnmp', help='Do not use NET-SNMP python bindings', action='store_true') # self.__optparser.add_option('', '--nonetsnmp', dest='nonetsnmp', help='Do not use NET-SNMP python bindings', action='store_true')