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?
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> 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?
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
I put that into the script.
From: Xymon <xymon-bounces at xymon.com> On Behalf Of Yadvendra kushwaha Sent: Tuesday, August 27, 2019 8:30 AM To: xymon at xymon.com Subject: Re: [Xymon] Custom monitoring
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?
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
participants (3)
-
damien@makelofine.org
-
Paul.Root@CenturyLink.com
-
yyyadvendra@gmail.com