[Xymon] Starting Xymon via init script no environment variables

Jeremy Laidman jlaidman at rebel-it.com.au
Wed Jan 16 02:03:06 CET 2013


What OS?  Can you show the init script?



On 16 January 2013 06:44, Michael Beatty <Michael.Beatty at sherwin.com> wrote:

> I've got an init script that is starting up the xymon client. It starts,
> and runs, however it doesn't appear to have any access to any environment
> variables.  If I restart the client from a shell, it takes off and runs
> fine.  I've got echo statements in the init script to display some of the
> environment variables I need, and they are displaying fine at boot time.
>  It just seems that xymon doesn't have access to them when it is running.
>  What has me really confused is that I'm even exporting the variable from a
> file directly from the xymon script.
>
> For example, in the init script, I 'echo $HOST'  The host name shows up in
> the log
> I have a perl script that clientlaunch calls, I have a variable "my $host
> = $ENV{"HOST"}.
>
> I am printing the "HOST" variable out to the log file when the script
> runs.  If I start the xymon client from a shell, the HOST variable prints
> out.  However, it doesn't print out (just a blank) if the xymon client
> starts via the init script.
>
>
>
>
> --
> Michael Beatty
>
> ______________________________**_________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/**mailman/listinfo/xymon<http://lists.xymon.com/mailman/listinfo/xymon>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130116/7845108f/attachment.html>


More information about the Xymon mailing list