コード例 #1
0
ファイル: monit.py プロジェクト: plathrop/piro
 def _init_parser(cls):
     parser = Service._init_parser()
     parser.add_argument('hosts', nargs='+',
                         help='Hosts on which you wish to control the '
                         'monit service.')
     parser.add_argument('-u', '--username', default='',
                         help='Username to use when authenticating to the '
                         'underlying service control mechanism.')
     parser.add_argument('--password', default='',
                         help='Password to use when authenticating to the '
                         'underlying service control mechanism.')
     parser.add_argument('--port', type=int, default=2812,
                         help='Port where the Monit API is listening on '
                         'the given hosts')
     parser.add_argument('--realm', default='monit',
                         help='Authentication realm to use when '
                         'authenticating to the Monit API.')
     return parser
コード例 #2
0
ファイル: monit.py プロジェクト: simplegeo/piro
 def _init_parser(cls):
     parser = Service._init_parser()
     parser.add_argument("hosts", nargs="+", help="Hosts on which you wish to control the " "monit service.")
     parser.add_argument(
         "-u",
         "--username",
         default="",
         help="Username to use when authenticating to the " "underlying service control mechanism.",
     )
     parser.add_argument(
         "--password",
         default="",
         help="Password to use when authenticating to the " "underlying service control mechanism.",
     )
     parser.add_argument(
         "--port", type=int, default=2812, help="Port where the Monit API is listening on " "the given hosts"
     )
     parser.add_argument(
         "--realm", default="monit", help="Authentication realm to use when " "authenticating to the Monit API."
     )
     return parser