Xymon Mailing List Archive search

Debug for client side scripts

2 messages in this thread

list Michael Beatty · Thu, 07 Mar 2013 10:50:01 -0500 ·
Is there a variable that my client side scripts can access to know if the xymon client was started in debug mode?

I would like my client scripts to write to their log files dependent on if the client is running in debug or not.  Only logging true errors normally, logging debug messages when in debug.

-- 
Michael Beatty
list Japheth Cleaver · Thu, 7 Mar 2013 17:47:18 -0000 (UTC) ·
By xymon client, do you mean 'xymonlaunch'? (The client itself is just a
shell script, after all...). To my knowledge the --debug setting not
visible to any of the tasks getting launched.

Keep in mind that this setting can be changed dynamically as well, so if
it were an environment variable (for example), it would only reflect the
status as of the moment it was launched (which is probably only of more
concern for persistent or long-running daemons).

-jc
quoted from Michael Beatty

Is there a variable that my client side scripts can access to know if
the xymon client was started in debug mode?

I would like my client scripts to write to their log files dependent on
if the client is running in debug or not.  Only logging true errors
normally, logging debug messages when in debug.

--
Michael Beatty