The xymonserver.cfg file isn't a script, it just *looks* like one. It's normally interpreted by xymon binaries that *do* understand the "directory" command, which allows you to break up a config file into manageable chunks.
E.g. xymonlaunch in the xymon startup script (it's all one line in the file, I just added newlines and indents for clarity):
/home/xymon/server/bin/xymonlaunch --config=/home/xymon/server/etc/tasks.cfg --env=/home/xymon/server/etc/xymonserver.cfg --log=/var/log/xymon/xymonlaunch.log --pidfile=/var/log/xymon/xymonlaunch.pid
Note the "--env=/home/xymon/server/etc/xymonserver.cfg", which tells the xymonlaunch program where to load up environmental information when it first starts up.
Ralph Mitchell
On Wed, Jul 25, 2018 at 8:03 AM, Ian Diddams via Xymon <xymon at xymon.com> wrote:
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
---------- Forwarded message ---------- From: Ian Diddams <didds3 at yahoo.co.uk> To: Xymon Mailing List <xymon at xymon.com> Cc: Bcc: Date: Wed, 25 Jul 2018 12:03:32 +0000 (UTC) Subject: directory command?
*Xymon 4.3.28-1.el7.terabithia <http://xymon.sourceforge.net/> servercentos 77.4.1708installed via rpm*
*the cfg file "/etc/xymon/xymonserver.cfg" contains the oline (line 261)*
*directory /etc/xymon/xymonserver.cfg.dHowever...when that .cfg file is "run" i.e*
. . /etc/xymon/xymonserver.cfg**it errors with *
*directory: not found [No such file or directory]The adftual directory /etc/xymon/xymonserver.cfg.d exists and has suitable ownerships and permissions... the error is about the _command_ "directory".I can;t yum install it - Ive never even heard of it TBH. Im assuming its some sort internal thing to xymon?*
*cheers*
*ian- *
participants (1)
-
ralphmitchell@gmail.com