Xymon Mailing List Archive search

xymon-rclient.sh clientless script

4 messages in this thread

list Usa Ims · Wed, 27 Apr 2016 17:36:42 +0000 (UTC) ·
Hi,
In this script, it says:
        # In the config file, we are expecting things like these:
        #
        #  log:/path/to/file:maxsize
        #    ignore MARK
        #    trigger stuff
        #  linecount:/path/to/file
        #    label1:regex1
        #    label2:regex2
I'm trying to set the thresholds for green, yellow, and red and I don't know how using a client-less script. Which config file and where?
usaims
list Jeremy Laidman · Fri, 29 Apr 2016 00:20:31 +0000 ·
Hello
quoted from Usa Ims

On Thu, Apr 28, 2016 at 3:36 AM usa ims via Xymon <xymon at xymon.com> wrote:
In this script, it says:

        # In the config file, we are expecting things like these:
        #
        #  log:/path/to/file:maxsize
        #    ignore MARK
        #    trigger stuff
        #  linecount:/path/to/file
        #    label1:regex1
        #    label2:regex2
It also says, a few lines further on:

        # Note: Due to the complexity in keeping state,
# only "file:" and "dir:" are implemented at this
# stage.  Neither can backticks be used yet (the
# result is unknown).  The "file:" setting cannot
# use the optional hash field yet.  Linecount does
# not require state, but simply hasn't yet been
# implemented.
quoted from Usa Ims

I'm trying to set the thresholds for green, yellow, and red and I don't
know how using a client-less script. Which config file and where?
Are you trying to use "log:" or "linecount:"?  For what attributes are you
trying to set thresholds?  Perhaps you could share your configuration?

To be honest, xymon-rclient is primarily to collect the basic
instrumentation available for CPU, memory, disk usage and the like, that
would otherwise be collected by the Xymon client installed on the box, if
it were possible to do so.  Other features, like those that are configured
in client-local.cfg, are less likely to be fully support.

Cheers
Jeremy
list Usa Ims · Fri, 29 Apr 2016 14:34:59 +0000 (UTC) ·
The script is doing exactly what it is suppose to do, bringing that data back to the DISPLAY server and outputting it.
I'd like to set the disk usage to report yellow at 99 and red at 100, for now. 

I'm not using a a config file.
Thank you.
quoted from Jeremy Laidman

 
    On Thursday, April 28, 2016 8:20 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid> wrote:
 

 Hello

On Thu, Apr 28, 2016 at 3:36 AM usa ims via Xymon <xymon at xymon.com> wrote:

In this script, it says:

        # In the config file, we are expecting things like these:
        #
        #  log:/path/to/file:maxsize
        #    ignore MARK
        #    trigger stuff
        #  linecount:/path/to/file
        #    label1:regex1
        #    label2:regex2

It also says, a few lines further on:
        # Note: Due to the complexity in keeping state, # only "file:" and "dir:" are implemented at this # stage.  Neither can backticks be used yet (the # result is unknown).  The "file:" setting cannot # use the optional hash field yet.  Linecount does # not require state, but simply hasn't yet been # implemented. 
I'm trying to set the thresholds for green, yellow, and red and I don't know how using a client-less script. Which config file and where?

Are you trying to use "log:" or "linecount:"?  For what attributes are you trying to set thresholds?  Perhaps you could share your configuration?
To be honest, xymon-rclient is primarily to collect the basic instrumentation available for CPU, memory, disk usage and the like, that would otherwise be collected by the Xymon client installed on the box, if it were possible to do so.  Other features, like those that are configured in client-local.cfg, are less likely to be fully support.

CheersJeremy
list Usa Ims · Mon, 2 May 2016 18:22:32 +0000 (UTC) ·
Very good -- thank you. 
quoted from Jeremy Laidman

    On Friday, April 29, 2016 2:28 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid> wrote:
 

 On 30 April 2016 at 00:40, usa ims via Xymon <xymon at xymon.com> wrote:

I'd like to set the disk usage to report yellow at 99 and red at 100, for now. 

I'm not using a a config file.

Disk usage thresholds are configured on the Xymon server.  This is is the same whether you're using xymon-rclient or a Xymon client to collect the system data.
Once you have xymon-rclient collecting disk data (so you can see disk graphs) then you can define the thresholds you want to alert on within the analysis.cfg file.  The default thresholds are 90% and 95%.  Use the "DISK" parameter to change from the default.  For example:
HOST=myhost.example.com    DISK * 99 100
CheersJeremy