Jump to content


Custom Alert For Seconds Behind Master Per Server

  • Please log in to reply
5 replies to this topic

#1 Laurie



  • Members
  • Pip
  • 1 posts

Posted 01 September 2011 - 03:52 PM

I am trying to find information on how to allow three different threshold levels for seconds behind master on three different servers within the same group/network all being monitored by MONyog. I found a doc on defining server specific alert levels but I'm still a bit confused on exactly what to do. Any info would be much appreciated.

#2 Mahesh


    Advanced Member

  • Members
  • PipPipPip
  • 499 posts
  • Gender:Male
  • Location:Bangalore,India

Posted 02 September 2011 - 04:54 AM

If you want to have different threshold values for each server, you have to write condition in Critical/Warning section.

This can be easily done in MONyog :

Let me explain an example :

Consider a counter "Seconds behind master"

For first register server named "TestServer" you want "Critical" value as 1000 and for second register server name "Production" you want "Critical" value as 800.

How to make this changes in MONyog:

1) Click on "Seconds behind master" counter
2) Click on "Customize"
3) Click on "View Advanced"
4) Now clear "Critical" field and fill with this function.

if(MONyog.Connections.ConnectionName == "Testserver")
return 1000;
if(MONyog.Connections.ConnectionName == "Production")
return 800;

5) Now Save the changes.

In this way you can customize MONyog counter per server basis. ( Please refer screen shot)

Attached Files

#3 Magesh Kumar

Magesh Kumar


  • Members
  • Pip
  • 1 posts

Posted 30 November 2014 - 07:27 AM

Hello Mahesh,


Thanks for your Input.
I am trying it to configure for certain set of tags.

say i have 5 tags for 3 tags i need to set different threshold for CPU uage and other 2 tags needed a seperate threshold.

Can you please let me know how to set it up.



Thanks for your help in Advance.



Magesh Kumar

#4 anup_fc



  • Members
  • PipPip
  • 12 posts

Posted 22 December 2015 - 07:06 AM

Any luck with this .

I got a similar problem like mahesh.


Can it be done for set of tag servers.

#5 anup_fc



  • Members
  • PipPip
  • 12 posts

Posted 22 December 2015 - 02:09 PM

I figure it out .

With new versions we can do it by tagging.

#6 pandian



  • Members
  • Pip
  • 1 posts

Posted 02 May 2016 - 07:17 PM



Could you please share the details for tagging?



Ans: http://monyogkb.weby...og-object-model

2 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

    Bing (1)