{"id":598,"date":"2019-02-28T05:50:05","date_gmt":"2019-02-28T05:50:05","guid":{"rendered":"https:\/\/monyog.jp\/?p=598"},"modified":"2019-03-07T02:18:58","modified_gmt":"2019-03-07T02:18:58","slug":"monyog%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%83%a2%e3%83%87%e3%83%ab","status":"publish","type":"post","link":"https:\/\/smart-style.main.jp\/monyogjp\/static\/document\/598\/index.html","title":{"rendered":"Monyog\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb"},"content":{"rendered":"

Monyog\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb\u306f\u3001\u3059\u3079\u3066\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e1\u30c8\u30ea\u30c3\u30af\u306e\u8a08\u7b97\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306eOS\uff0fMySQL\u5024\u3092\u62bd\u8c61\u5316\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u3068\u306e\u63a5\u7d9a\u3001SQL\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u306e\u5b9f\u884c\u3001\u623b\u308a\u30b3\u30fc\u30c9\u306e\u78ba\u8a8d\u306a\u3069\u306e\u4e0b\u4f4d\u30ec\u30d9\u30eb\u306e\u4ed5\u4e8b\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u306f\u89e3\u653e\u3055\u308c\u307e\u3059\u3002<\/p>\n

MOM\u306e\u5024\u306f\u3001\u30e1\u30c8\u30ea\u30c3\u30af\u306e\u8a08\u7b97\u3068\u8868\u793a\u3001\u95be\u5024\u306e\u78ba\u8a8d\u3001\u901a\u77e5\u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u306a\u3069\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n

\u201cSHOW GLOBAL STATUS\u201d\u304b\u3089\u8fd4\u308b\u3059\u3079\u3066\u306e\u51fa\u529b\u306f\u3001MONyog.MySQL.GlobalStatus.*\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Uptime\u30b9\u30c6\u30fc\u30bf\u30b9\u5909\u6570\u306e\u5024\u306f\u3001MySQL.GlobalStatus.Uptime\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u540c\u3058\u304f\u3001\u4ee5\u4e0b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb\u3082\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n\n\n\n\n
\u5909\u6570<\/td>\nMOM\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/td>\n<\/tr>\n
SHOW GLOBAL VARIABLES<\/td>\nMONyog.MySQL.GlobalVariables.*<\/td>\n<\/tr>\n
SHOW GLOBAL STATUS<\/td>\nMONyog.MySQL.GlobalStatus.*<\/td>\n<\/tr>\n
SHOW SLAVE STATUS<\/td>\nMONyog.MySQL.Slave.*<\/td>\n<\/tr>\n
OS\u30ec\u30d9\u30eb\u30ab\u30a6\u30f3\u30bf\u30fc<\/td>\nMONyog.System.*<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u6ce8\u610f<\/h4>\n

\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u30ec\u30d9\u30eb\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u306f\u3001CPU\u3084\u30e1\u30e2\u30ea\u4f7f\u7528\u306a\u3069\u3092\u6e2c\u5b9a\u3057\u307e\u3059\u3002<\/p>\n

Monyog\u30bf\u30b0\u3068\u30b5\u30fc\u30d0\u30fc\u540d\u306eMOM\u5909\u6570<\/a><\/p>\n

 <\/p>\n

AlertCondition\uff1a<\/h3>\n

\u3053\u306e\u5c5e\u6027\u306f\u30013\u3064\u306e\u5024\uff08\u201c\u91cd\u5927\u201d\u3001\u201c\u8b66\u544a\u201d\u307e\u305f\u306f\u201c\u306a\u3057\u201d\uff09\u306b\u8a55\u4fa1\u5206\u985e\u3067\u304d\u308b\u5f0f\u3067\u4f7f\u7528\u3057\u307e\u3059\u3002\u901a\u5e38\u3001JS\u5f0f\u307e\u305f\u306f\u95a2\u6570\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u305d\u308c\u306b\u3088\u3063\u3066\u5148\u306bMOM\u5024\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u3044\u305f\u201c\u8b66\u544a\u201d\u307e\u305f\u306f\u201c\u91cd\u5927\u201d\u306e\u95be\u5024\u3068\u306e\u6bd4\u8f03\u304c\u884c\u308f\u308c\u307e\u3059\u3002\uff08\u4efb\u610f\uff09\u3000\u30a2\u30e9\u30fc\u30c8\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u30a2\u30e9\u30fc\u30c8\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306e\u30e2\u30cb\u30bf\u30fc\u306e2\u3064\u306e\u4f8b\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n

\r\nfunction()\r\n{\r\n    if(ToInt(MONyog.MySQL.GlobalStatus.Select_scan) > 1000)\r\n        return GetWarnStatusInt(this.Value, this.Critical, this.Warning, true);\r\n    else\r\n        return "None";\r\n}\r\n<\/pre>\n
\r\nfunction()\r\n{\r\n    if(this.Value != "(n\/a)" && this.Value > 1)\r\n        return "Critical";\r\n    else \r\n        return "None";\r\n}\r\n<\/pre>\n

WarmUpRequired\uff1a<\/strong>\u5024\u306b\u201cYes\u201d\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u6700\u4f4e\u6642\u9593\u4ee5\u4e0a\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u3060\u3051\u3001\u73fe\u5728\u306e\u30e1\u30c8\u30ea\u30c3\u30af\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u5b9f\u884c\u6642\u9593\u304c\u6700\u4f4e\u6642\u9593\u306b\u9054\u3057\u306a\u3044\u5834\u5408\u3001AlertCondition\u306f\u8a55\u4fa1\u3055\u308c\u305a\u3001\u30a2\u30e9\u30fc\u30c8\u306e\u8868\u793a\u3084\u901a\u77e5\u306f\u884c\u308f\u308c\u307e\u305b\u3093\u3002SQL Diagnostic Manager\u306e\u73fe\u884c\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u30013\u6642\u9593\u304c\u30cf\u30fc\u30c9\u30b3\u30fc\u30c9\u3055\u308c\u3066\u3044\u307e\u3059\u3002SQL Diagnostic Manager\u306e\u4eca\u5f8c\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001\u201cminimum period\uff08\u6700\u77ed\u6642\u9593\uff09\u201d\u3092\u30e6\u30fc\u30b6\u30fc\u304c\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002\uff08\u4efb\u610f\uff09<\/p>\n

MailAlert\uff1a<\/strong>\u95be\u5024\u306b\u9054\u3057\u305f\u3068\u304d\u306b\u3053\u306e\u30e1\u30c8\u30ea\u30c3\u30af\u306e\u30a2\u30e9\u30fc\u30c8\u3092\u30e1\u30fc\u30eb\u3067\u901a\u77e5\u3055\u305b\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\uff08\u4efb\u610f\uff09<\/p>\n

Graph\uff1a<\/strong>\u3053\u306e\u5024\u306f\u3001\u73fe\u5728\u306e\u30e1\u30c8\u30ea\u30c3\u30af\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u30b0\u30e9\u30d5\u3092\u8868\u793a\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5b9a\u7fa9\u3057\u307e\u3059\uff08\u4efb\u610f\uff09<\/p>\n

Bargraph\uff1a<\/strong>\u3053\u306e\u5024\u306f\u3001\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u30bf\u30a4\u30d7\u306e\u5024\u3092\u68d2\u30b0\u30e9\u30d5\u3068\u3057\u3066\u30d7\u30ed\u30c3\u30c8\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\uff08\u4efb\u610f\uff09<\/p>\n

Uptime\uff1a<\/strong>\u3053\u306e\u5024\u306f\u3001\u3053\u306e\u30e1\u30c8\u30ea\u30c3\u30af\u306b\u7d2f\u7a4d\u5024\u3092\u542b\u3081\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7d2f\u7a4d\u5024\u3068\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u7acb\u3061\u4e0a\u3052\uff08\u307e\u305f\u306f\u524d\u56de\u306eFLUSH STATUS\uff09\u5f8c\u3001\u5e38\u306b\u6301\u7d9a\u7684\u306b\u5897\u52a0\u3059\u308b\u5024\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001Connection Attempts\uff08\u63a5\u7d9a\u8a66\u884c\u56de\u6570\uff09\u304c\u305d\u3046\u3067\u3059\u3002Connection Attempts\u306e\u5024\u306f\u3001MySQL\u30b5\u30fc\u30d0\u30fc\u304c\u5e38\u306b\u5897\u5206\u3057\u307e\u3059\u3002\u7d2f\u7a4d\u5024\u306e\u51e6\u7406\u65b9\u6cd5\u306f\u3001\u201cCurrently Running Threads\uff08\u73fe\u5728\u5b9f\u884c\u4e2d\u306e\u30b9\u30ec\u30c3\u30c9\uff09\u201d\u306a\u3069\u306e\u201c\u30dd\u30a4\u30f3\u30c8\u30a4\u30f3\u30bf\u30a4\u30e0\u201d\u5024\u3068\u306f\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n

\u30e1\u30c8\u30ea\u30c3\u30af\u304c\u7d2f\u7a4d\u306e\u5834\u5408\u3001\u3053\u306e\u5c5e\u6027\u306e\u5024\u306f\u5fc5\u305a\u5b9a\u6570\u5f0f\u3001\u201cMONyog.MySQL.GlobalStatus.Uptime\u201d\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n

Format\uff1a<\/strong>\u5404\u7a2e\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u5f62\u5f0f\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u73fe\u5728\u3001\u552f\u4e00\u53d7\u3051\u4ed8\u3051\u308b\u5024\u306f\u3001NumCounterWithSeconds\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u30e1\u30c8\u30ea\u30c3\u30af\u5024\u3092\u201c\u6bce\u79d2\u201d\u5024\u3067\u8868\u793a\u3059\u308b\u304b\u3069\u3046\u304b\u3082\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n

AdviceText\uff1a<\/strong>AlertCondition\u306e\u8a55\u4fa1\u7d50\u679c\u304c\u201c\u91cd\u5927\u201d\u307e\u305f\u306f\u201c\u8b66\u544a\u201d\u306e\u3068\u304d\u306b\u3001\u8868\u793a\u3055\u308c\u308b\u30a2\u30c9\u30d0\u30a4\u30b9\u30c6\u30ad\u30b9\u30c8\u3067\u3059\u3002\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u306f\u3001\u30de\u30a6\u30b9\u3092\u30a2\u30e9\u30fc\u30c8\u30a2\u30a4\u30b3\u30f3\u306b\u5408\u308f\u305b\u308b\u3068\u8868\u793a\u3055\u308c\u308b\u30c4\u30fc\u30eb\u30c1\u30c3\u30d7\u3068\u3057\u3066\u3082\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n

RetryOverride\uff1a<\/strong>\u6574\u6570\u5024\u3092\u6307\u5b9a\u3059\u308bMOM\u5909\u6570\u3067\u3042\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30d9\u30eb\u306e\u201cSend notification when alert-able\u201d\u8a2d\u5b9a\u3092\u30ab\u30a6\u30f3\u30bf\u30fc\u30ec\u30d9\u30eb\u3067\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u307e\u3059\u3002\u6ce8\u610f\uff1a\u5024\u201c0\u201d\u306f\u6307\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n

NotifyStableOverride\uff1a<\/strong>\u5024\u3068\u3057\u3066\u3001\u201cYes\u201d\u307e\u305f\u306f\u201cNo\u201d\u3092\u6307\u5b9a\u3067\u304d\u308bMOM\u5909\u6570\u3002\u30b5\u30fc\u30d0\u30fc\u30ec\u30d9\u30eb\u306e\u201cNotify when stable\uff08\u5b89\u5b9a\u6642\u306b\u901a\u77e5\uff09\u201d\u8a2d\u5b9a\u3092\u30ab\u30a6\u30f3\u30bf\u30fc\u30ec\u30d9\u30eb\u3067\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u307e\u3059\u3002<\/p>\n

SQL Diagnostic Manager\u30bf\u30b0\u3068\u30b5\u30fc\u30d0\u30fc\u540d\u306eMOM\u5909\u6570<\/h2>\n

SQL Diagnostic Manager\u3067\u4f7f\u7528\u3059\u308b\u30bf\u30b0\u3068\u30b5\u30fc\u30d0\u30fc\u540d\u306f\u3001Monyog Object Model\uff08MOM\uff09\u5909\u6570\u3068\u3057\u3066\u30a8\u30af\u30b9\u30dd\u30fc\u30ba\u3055\u308c\u307e\u3059\u3002MONyog.Connections.TagName\u306f\u3001\u305d\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30bf\u30b0\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n

MONyog.Connections.ConnectionName\u306f\u3001\u305d\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u540d\u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30e2\u30cb\u30bf\u30fc\u306b\uff08\u30bf\u30b0\u307e\u305f\u306f\u30b5\u30fc\u30d0\u30fc\u540d\u306b\u57fa\u3065\u3044\u3066\uff09\u3055\u307e\u3056\u307e\u306a\u95be\u5024\u30ec\u30d9\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u306b\u4fbf\u5229\u3067\u3059\u3002\u4ee5\u4e0b\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n

\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u3001Add\uff0fEdit server\uff08\u30b5\u30fc\u30d0\u30fc\u3092\u8ffd\u52a0\uff0f\u7de8\u96c6\uff09-> View Advanced\uff08\u62e1\u5f35\u8868\u793a\uff09\u306e\u91cd\u5927\uff0f\u8b66\u544a\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u8ffd\u52a0\u3057\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u3068\u30bf\u30b0\u56fa\u6709\u306e\u95be\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\r\n\/\/ \u30b5\u30fc\u30d0\u30fc\u540d\u306b\u57fa\u3065\u3044\u305f\u95be\u5024\r\nif(MONyog.Connections.ConnectionName == "Testserver")\r\n   return 80; \/\/ \u2018Testserver\u2019\u306e\u95be\u5024\u306f80\r\nif(MONyog.Connections.ConnectionName == "Productionserver")\r\n   return 50;\r\n\/\/ \u30bf\u30b0\u540d\u306b\u57fa\u3065\u3044\u305f\u95be\u5024\r\nif(MONyog.Connections.TagName.indexOf("SomeTag") >=0 )\r\n   return 10; \/\/  \u2018SomeTag\u2019\u306e\u95be\u5024\u306f10\r\nif(MONyog.Connections.TagName.indexOf("SomeOtherTag") >=0 )\r\n   return 39;\r\n<\/pre>\n

\u30b5\u30fc\u30d0\u30fc\u540d\u3068\u30bf\u30b0\u306b\u57fa\u3065\u3044\u3066\u30a2\u30e9\u30fc\u30c8\u3092\u53d7\u4fe1\u3059\u308b\u3088\u3046\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305fMonitor\u306e\u4f8b\uff08\u6700\u5927\u8a31\u5bb9\u5230\u9054\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\uff09\u3002<\/p>\n

\"\"<\/p>\n

SQL Diagnostic Manager\u5c5e\u6027\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 - Charts\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9<\/strong><\/h3>\n

Chart Name\uff1a<\/strong>\u65b0\u3057\u3044\u30c1\u30e3\u30fc\u30c8\u306e\u540d\u524d\u3002<\/p>\n

ChartType\uff1a<\/strong>\u30c1\u30e3\u30fc\u30c8\u306e\u7a2e\u985e\u3002MySQL\u304b\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002<\/p>\n

SeriesCaption\uff1a<\/strong>\u30b0\u30e9\u30d5\u306e\u3059\u3079\u3066\u306e\u30b7\u30ea\u30fc\u30ba\u306e\u30e9\u30d9\u30eb\u3092\u53ce\u3081\u305f\u914d\u5217\u3002<\/p>\n

SeriesValues\uff1a<\/strong>\u30b0\u30e9\u30d5\u306e\u500b\u3005\u306e\u30b7\u30ea\u30fc\u30ba\u306e\u5024\u3092\u53ce\u3081\u305f\u914d\u5217\u3002<\/p>\n

ChartValue\uff1a<\/strong>seconds_behind_master\u306e\u5b9f\u969b\u306e\u5024\u3092\u30d7\u30ed\u30c3\u30c8\u3059\u308b\u7a2e\u985e\u30022\u3064\u306e\u9593\u9694\u306e\u5dee\u3067\u3059\u30022\u901a\u308a\u306e\u65b9\u6cd5\u3067\u5024\u3092\u30d7\u30ed\u30c3\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n