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