mirror of
https://github.com/shouptech/nagios-plugin-check-rabbitmq.git
synced 2026-02-03 14:49:41 +00:00
PEP 8 style fixes (pylint)
This commit is contained in:
parent
796c991e3c
commit
85ad9b1c32
1 changed files with 10 additions and 9 deletions
|
|
@ -147,18 +147,19 @@ def main():
|
|||
usage = "%prog [options] -H|--hostname HOST ACTION"
|
||||
parser = OptionParser(usage=usage,
|
||||
version="%prog "+PLUGIN_VERSION)
|
||||
parser.add_option("-u", "--username", default="guest",
|
||||
parser.add_option(
|
||||
"-u", "--username", default="guest",
|
||||
help="Username with monitoring access. Default: guest")
|
||||
parser.add_option("-p", "--password", default="guest",
|
||||
parser.add_option(
|
||||
"-p", "--password", default="guest",
|
||||
help="Password for user with monitoring access Default: guest")
|
||||
parser.add_option("-P", "--port", default=15672,
|
||||
parser.add_option(
|
||||
"-P", "--port", default=15672,
|
||||
help="Port to run the API checks against Default: 15672")
|
||||
parser.add_option("-H", "--hostname",
|
||||
help="Host to check. REQUIRED")
|
||||
parser.add_option("-c", "--critical", type="int",
|
||||
help="Critical level")
|
||||
parser.add_option("-w", "--warning", type="int",
|
||||
help="Warning level")
|
||||
parser.add_option("-H", "--hostname", help="Host to check. REQUIRED")
|
||||
parser.add_option("-c", "--critical", type="int", help="Critical level")
|
||||
parser.add_option("-w", "--warning", type="int", help="Warning level")
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
# Check for required arguments
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue