[Xymon] Custom monitoring
Damien Martins
damien at makelofine.org
Tue Aug 27 15:37:21 CEST 2019
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
> <yyyadvendra at gmail.com <mailto:yyyadvendra at gmail.com>> 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?
>
>
>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190827/089b2e71/attachment.htm>
More information about the Xymon
mailing list