def usage():
print 'python sss.py [options]'
print ''
print 'options:'
print '-h,--help: show this help message'
print '-v,--version: show the version'
print '-H: target host'
print '-P: target port to get the service status'
print '-u: target service user'
print '-p: target user password'
print '-T: target service type, default is '+support_types[0]
print '-s: sections to show, use comma to split'
print '-a: addition sections to show, use comma to split'
print '-d: removed sections for the showing, use comma to split'
print '-I,--instructions: show the support sections\' instructions'
print '-o: output the status to this file'
print '-D: separate output files by day, suffix of the file name is \'_yyyy-mm-dd\''
print '-e: output error message to this file'
print '-i: time interval to show the status, unit is second'
print '-n: the count of the status to collect, default is forever'
print '-S: speed is calculated by the remote monitor system, like the open-falcon'
print '--socket: the socket file to use for connection'
print '--falcon: upload the status to the open-falcon, the address is like \''+open_falcon+'\''
print '--net-face: set the net device face name for os_net_* sections, default is \'lo\''
print '--disk-name: set the disk device name for os_disk sections, default is \'vda\''
print '--proc-pid: set the process pid number for proc_* sections, default is 0'
print '--service-port: set the server service port, default is same as the port setted by \'-P\' option'
print '\r\n'
support_services=""
for service in support_types:
support_services+=service+" "
print 'Support services: '+support_services
print ''
评论列表
文章目录