Sever script
list Joshua Hunt
Hi all, I'm slightly confused as to where I store the configuration for a server script. From what I can find, I should store the script in ~/xymon/server/ext/myscript, and I should store the configuration in ~/xymon/server/etc/xymonlaunch.cfg. However, the /xymonlaunch.cfg does not exist in this location. Anyone happen to where I configure my test? Thanks! Joshua
list Josh Luthman
Should be
~user/server/ext/script.sh
~user/server/etc/hobbitlaunch.cfg or xymonlaunch.cfg
This file should start with:
[xymond]
ENVFILE /home/user/server/etc/hobbitserver.cfg
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Mon, Jun 27, 2016 at 2:31 PM, Joshua Hunt <user-826c29d13219@xymon.invalid>
▸
wrote:
Hi all, I'm slightly confused as to where I store the configuration for a server script. From what I can find, I should store the script in ~/xymon/server/ext/myscript, and I should store the configuration in ~/xymon/server/etc/xymonlaunch.cfg. However, the /xymonlaunch.cfg does not exist in this location. Anyone happen to where I configure my test? Thanks! Joshua
list Jeremy Laidman
On Tue, Jun 28, 2016 at 4:35 AM Josh Luthman <user-4c45a83f15cb@xymon.invalid> wrote:
Should be ~user/server/ext/script.sh ~user/server/etc/hobbitlaunch.cfg or xymonlaunch.cfg
For Hobbit, yes. But for Xymon, the file is called tasks.cfg, and it includes files in the tasks.d directory. On a package installation it's typically located in /etc/xymon/ and ~xymon/server/etc/ is a symlink to /etc/xymon/. Either way ~xymon/server/etc/ should get you there.
▸
This file should start with: [xymond] ENVFILE /home/user/server/etc/hobbitserver.cfg Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Mon, Jun 27, 2016 at 2:31 PM, Joshua Hunt <user-826c29d13219@xymon.invalid> wrote:Hi all, I'm slightly confused as to where I store the configuration for a server script. From what I can find, I should store the script in ~/xymon/server/ext/myscript, and I should store the configuration in ~/xymon/server/etc/xymonlaunch.cfg. However, the /xymonlaunch.cfg does not exist in this location. Anyone happen to where I configure my test? Thanks! Joshua