Skip to content

Commit

Permalink
Be able to specify the result between Zabbix Low-Level discovery form…
Browse files Browse the repository at this point in the history
…at and JSON
  • Loading branch information
dnaeon committed Jan 7, 2014
1 parent 627809c commit 21c2721
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/vpoller-client
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def main():

usage="""
Usage:
vpoller-client [-r <retries>] [-t <timeout>] [-o <logfile>] (-D|-H) -c discover -V <host> -e <endpoint>
vpoller-client [-r <retries>] [-t <timeout>] [-o <logfile>] -H -n <name> -p <property> -c poll -V <host> -e <endpoint>
vpoller-client [-r <retries>] [-t <timeout>] [-o <logfile>] -D -u <datastore-url> -p <property> -c poll -V <host> -e <endpoint>
vpoller-client [-z] [-r <retries>] [-t <timeout>] [-o <logfile>] (-D|-H) -c discover -V <host> -e <endpoint>
vpoller-client [-z] [-r <retries>] [-t <timeout>] [-o <logfile>] -H -n <name> -p <property> -c poll -V <host> -e <endpoint>
vpoller-client [-z] [-r <retries>] [-t <timeout>] [-o <logfile>] -D -u <datastore-url> -p <property> -c poll -V <host> -e <endpoint>
vpoller-client --help
vpoller-client --version
Expand All @@ -51,6 +51,7 @@ Options:
-v, --version Display version and exit
-D, --datastores Retrieve a datastore object property
-H, --hosts Retrieve a host object property
-z, --zabbix Receive result in Zabbix Low-Level Discovery format
-V <host>, --vsphere-host <host> The vSphere host to send the request to
-c <cmd>, --command <cmd> The command to perform, either "poll" or "discover"
-n <name>, --name <name> Name of the ESX host, only applicable to hosts object type
Expand Down Expand Up @@ -84,6 +85,7 @@ Options:
"info.url": args["--url"],
"cmd": args["--command"],
"property": args["--property"],
"zabbix": args["--zabbix"],
}

result = client.run(msg)
Expand Down

0 comments on commit 21c2721

Please sign in to comment.