Jump to content


Custom Alert For Seconds Behind Master Per Server

  • Please log in to reply
1 reply 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

  • Admin
  • PipPipPip
  • 492 posts
  • Gender:Male
  • Location:Bangalore,India
  • Interests:MySQL, Cricket, Music..

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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users