Xymon Mailing List Archive search

Xymon script question

list Scot Kreienkamp
Wed, 5 Jul 2017 20:11:47 +0000
Message-Id: <user-0a6ba55969e1@xymon.invalid>

You shouldn't need the include statement, not sure if that's throwing it off?  Did you restart xymon so it can pick up the new task file, and is it readable by the xymon user?

Anything in the logs or /var/log/xymon/reboot.log?  /var/log/xymon/reboot.log should exist as soon as the xymon server is restarted.


Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 |  Office: XXX-XXX-XXXX |  |  Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid
-----Original Message-----
From: Jaap Winius [mailto:user-16708c3648e1@xymon.invalid]
Sent: Wednesday, July 5, 2017 3:32 PM
To: Scot Kreienkamp <user-9678697f1438@xymon.invalid>
Cc: xymon at xymon.com
Subject: RE: [Xymon] Xymon script question

Quoting Scot Kreienkamp <user-9678697f1438@xymon.invalid>:
On my server (RedHat based, so YMMV) I generally put a file in
/etc/xymon/tasks.d, one file for each external script.  Same format
as for clientlaunch though.
Okay, I created a file, called /etc/xymon/tasks.d/reboot, with this content:

==========

[reboot]
        ENVFILE /usr/lib/xymon/server/etc/xymonclient.cfg
        CMD /usr/lib/xymon/server/ext/ufadiff.sh
        LOGFILE /var/log/xymon/reboot.log
        INTERVAL 5m

include /var/run/xymon/clientlaunch-include.cfg

==========

But, still no joy.

Cheers,

Jaap

This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.