[Xymon] Xymon script question

Scot Kreienkamp Scot.Kreienkamp at la-z-boy.com
Wed Jul 5 22:11:47 CEST 2017


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: 734-384-6403 |  |  Mobile: 7349151444 | Email: Scot.Kreienkamp at la-z-boy.com
-----Original Message-----
From: Jaap Winius [mailto:jwinius at umrk.nl]
Sent: Wednesday, July 5, 2017 3:32 PM
To: Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com>
Cc: xymon at xymon.com
Subject: RE: [Xymon] Xymon script question

Quoting Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com>:

> 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.


More information about the Xymon mailing list