Hi,
You can follow these steps given in our documentation for adding a custom advisor. You need to enable this advisor using certain MySQL parameters, which I’ll assume you meant the global status and global variables. You can make use of the MOM (MONyog Object Model) to access these variables and create a custom counter. For example if you want to access the global variable log_warnings and global status Aborted_connects, you can do it using MOM in the following way:
MONyog.MySQL.GlobalVariables.log_warnings
MONyog.MySQL.GlobalStatus.Aborted_connects
You can use this in the Value field inside the JavaScript function. To know more about on how to Add a new monitor/advisor in MONyog please refer to these links:
http://monyogkb.webyog.com/article/103-adding-new-monitors
http://monyogkb.webyog.com/article/108-monyog-object-model
If you still face any issue, please write back to us.