Xymon Mailing List Archive search

Custom monitoring

list Damien Martins
Tue, 27 Aug 2019 15:37:21 +0200
Message-Id: <user-e4d5aa330fc0@xymon.invalid>

Hi Yadvendra.

In order to define the alarms threshold, you have to edit your custom monitoring and test the returned value to decide its color (yellow = warning, red = alert)

There are different ways to implement this, depending on the logic of your monitoring script.

If you have only one value to test, and using a shell script, you may use something like

<code>

max_warning = 5

max_alert = 10

color = undefined

if [ $value -ge $max_alert]; then

 ??? color = red

elif [$value -ge $max_warning] ; then

 ??? color = yellow

else

 ??? color = green

</code>

Then you send the color to xymon server using the appropriate syntax.

Le 27/08/2019 ? 15:30, Yadvendra kushwaha a ?crit?:
I managed to get the data on server form client, Need help in setting the threshold part (warning and critical )

On Tue, Aug 27, 2019 at 8:18 AM Yadvendra kushwaha <user-c1aa0b7f48b5@xymon.invalid <mailto:user-c1aa0b7f48b5@xymon.invalid>> wrote:

    Hi There
    I am looking for a custom monitoring, my script runs on a client?
    and returns a number, I need to add this to the server and the
    threshold levels
    Ex-
    my-test 5 10

    any help please?