fglcmd, passing arguments and how to change its default home directory
説明
The fglcmd.sh utility accepts the user & password information using the -usr & -pwd command line options; The arguments can be submitted interactively at the time the fglcmd commandline is run.
Foglight connection information can be supplied when using the properties file, fglcmd.properties. Specifying connection options in the properties file eliminates the need to type them each time a fglcmd command is issued.
Specify the fglcmd.properties file in another location and have the fglcmd.sh use that file instead.
対策
Change the home directory for the user with command "usermod -md [new directory] [foglight user]", then put the file, "fglcmd.properties", into the new directory.
Another way to override the default path of the fglcmd.properties file would be to set the HOME environment variable when running fglcmd.sh or add -Duser.home=/some/path to java options inside fglcmd.sh