From 28511563888083bfac1cd8e1322533fa9909dadb Mon Sep 17 00:00:00 2001 From: nalexand Date: Tue, 28 Jul 2015 14:05:35 +0300 Subject: [PATCH 01/12] go --- kutac/monitor/utils/Installer.cls.xml | 324 ++++++++++++++++++++++++++ 1 file changed, 324 insertions(+) create mode 100644 kutac/monitor/utils/Installer.cls.xml diff --git a/kutac/monitor/utils/Installer.cls.xml b/kutac/monitor/utils/Installer.cls.xml new file mode 100644 index 0000000..8e3d01c --- /dev/null +++ b/kutac/monitor/utils/Installer.cls.xml @@ -0,0 +1,324 @@ + + + +63732,50627.865496 + + +INSTALLER + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + + + + This is a method generator whose code is generated by XGL. +Set pVars("Namespace")="SYSMON" +Set pVars("SourceDir")="C:\temp\SYSMON\cls\kutac\" +do ##class(kutac.monitor.utils.Installer).setup(.pVars) +1 +1 +objectgenerator + +%Status + + + + +1 +pVars,pLogLevel,tInstaller +%Status + + + + +1 +pVars,pLogLevel,tInstaller +%Status + + + + +1 +Namespace=$Namespace,Owner:%String="intersystems-ru",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String="alexandrov-nikita",Password:%String="lolipops561azaza" +%Status + + + + +1 + +%Status + + + + +1 +File:%ZEN.proxyObject +%Boolean + + + + +1 +Links:%ListOfDataTypes,Request:%Net.HttpRequest,*Items +%Status + + + + +1 +pVars,pLogLevel,tInstaller +%Status + + + + +1 +Namespace=$Namespace +%Status + + + + +1 +%Status + + + + +1 +%Status + + + + +1 +hrs:%Integer=3 +%Status + + + + From ba22b0c4715438b517c9424901007de78603ac9f Mon Sep 17 00:00:00 2001 From: nalexand Date: Tue, 28 Jul 2015 14:10:58 +0300 Subject: [PATCH 02/12] go --- kutac/monitor/utils/Installer.cls.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kutac/monitor/utils/Installer.cls.xml b/kutac/monitor/utils/Installer.cls.xml index 8e3d01c..5c75d33 100644 --- a/kutac/monitor/utils/Installer.cls.xml +++ b/kutac/monitor/utils/Installer.cls.xml @@ -99,7 +99,7 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars) 1 -Namespace=$Namespace,Owner:%String="intersystems-ru",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String="alexandrov-nikita",Password:%String="lolipops561azaza" +Namespace=$Namespace,Owner:%String="alexandrov-nikita",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String="alexandrov-nikita",Password:%String="lolipops561azaza" %Status Date: Tue, 28 Jul 2015 15:24:00 +0300 Subject: [PATCH 03/12] fixed task --- cls/kutac/monitor/utils/Installer.cls.xml | 43 ++++++++++++++++++----- cls/kutac/monitor/utils/Task.cls.xml | 33 +++++++++++++++++ 2 files changed, 67 insertions(+), 9 deletions(-) create mode 100644 cls/kutac/monitor/utils/Task.cls.xml diff --git a/cls/kutac/monitor/utils/Installer.cls.xml b/cls/kutac/monitor/utils/Installer.cls.xml index d2335a3..cdd6058 100644 --- a/cls/kutac/monitor/utils/Installer.cls.xml +++ b/cls/kutac/monitor/utils/Installer.cls.xml @@ -1,7 +1,7 @@ - + -63757,58028.937681 +63761,55214.468859 63732,50627.865496 @@ -19,7 +19,7 @@ - + @@ -44,7 +44,7 @@ - + @@ -100,7 +100,7 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars) 1 -Namespace=$Namespace,Owner:%String="intersystems-ru",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String,Password:%String +Namespace=$Namespace,Owner:%String="alexandrov-nikita",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String="alexandrov-nikita",Password:%String="lolipops561azaza" %Status write !, "Creating Task" Do tInstaller.PopNS() Do tInstaller.PushNS(Namespace) - set st4 = ..CreateTask() + set st4 = ..CreateTask(Namespace) Do tInstaller.PopNS() set st = $$$ADDSC(st4, $$$ADDSC(st1, $$$ADDSC(st2, st3))) if $$$ISERR(st) Throw ##class(%Installer.Exception).CreateFromStatus(st) @@ -313,11 +313,36 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars) 1 -hrs:%Integer=3 +Namespace=$Namespace,min:%Integer=90 %Status diff --git a/cls/kutac/monitor/utils/Task.cls.xml b/cls/kutac/monitor/utils/Task.cls.xml new file mode 100644 index 0000000..5f6eb94 --- /dev/null +++ b/cls/kutac/monitor/utils/Task.cls.xml @@ -0,0 +1,33 @@ + + + + +Simple update task. Use CacheGitHubCI.Hook if you need more functionality. +%SYS.Task.Definition +63761,55062.906473 +63761,54770.687029 + + +CubesBuildTask + + + + +Namespace, where to download and compile repository +%String +$Namespace + + + +%Status + + + + From 8c52996a395d5fdc0513c0dd87dd2411d6493c6f Mon Sep 17 00:00:00 2001 From: nalexand Date: Tue, 28 Jul 2015 15:31:19 +0300 Subject: [PATCH 04/12] unnecessary file deleted --- kutac/monitor/utils/Installer.cls.xml | 324 -------------------------- 1 file changed, 324 deletions(-) delete mode 100644 kutac/monitor/utils/Installer.cls.xml diff --git a/kutac/monitor/utils/Installer.cls.xml b/kutac/monitor/utils/Installer.cls.xml deleted file mode 100644 index 5c75d33..0000000 --- a/kutac/monitor/utils/Installer.cls.xml +++ /dev/null @@ -1,324 +0,0 @@ - - - -63732,50627.865496 - - -INSTALLER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]> - - - - - This is a method generator whose code is generated by XGL. -Set pVars("Namespace")="SYSMON" -Set pVars("SourceDir")="C:\temp\SYSMON\cls\kutac\" -do ##class(kutac.monitor.utils.Installer).setup(.pVars) -1 -1 -objectgenerator - -%Status - - - - -1 -pVars,pLogLevel,tInstaller -%Status - - - - -1 -pVars,pLogLevel,tInstaller -%Status - - - - -1 -Namespace=$Namespace,Owner:%String="alexandrov-nikita",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String="alexandrov-nikita",Password:%String="lolipops561azaza" -%Status - - - - -1 - -%Status - - - - -1 -File:%ZEN.proxyObject -%Boolean - - - - -1 -Links:%ListOfDataTypes,Request:%Net.HttpRequest,*Items -%Status - - - - -1 -pVars,pLogLevel,tInstaller -%Status - - - - -1 -Namespace=$Namespace -%Status - - - - -1 -%Status - - - - -1 -%Status - - - - -1 -hrs:%Integer=3 -%Status - - - - From 5e4cdb2a34b941fa4cd0033d13bbb4f764a3dbd1 Mon Sep 17 00:00:00 2001 From: nalexand Date: Tue, 28 Jul 2015 15:41:27 +0300 Subject: [PATCH 05/12] fixed Installer.cls.xml --- cls/kutac/monitor/utils/Installer.cls.xml | 27 ++++++----------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/cls/kutac/monitor/utils/Installer.cls.xml b/cls/kutac/monitor/utils/Installer.cls.xml index cdd6058..40f9a4f 100644 --- a/cls/kutac/monitor/utils/Installer.cls.xml +++ b/cls/kutac/monitor/utils/Installer.cls.xml @@ -1,7 +1,7 @@ - + -63761,55214.468859 +63761,56396.937793 63732,50627.865496 @@ -109,7 +109,7 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars) 1 -Namespace=$Namespace,Owner:%String="alexandrov-nikita",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String="alexandrov-nikita",Password:%String="lolipops561azaza" +Namespace=$Namespace,Owner:%String="alexandrov-nikita",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String,Password:%String %Status 1 %Status @@ -341,8 +330,6 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars) Return:$$$ISERR(st) st Set id = task.%Id() Return ##class(%SYS.Task).RunNow(id) - - // Do ##class(%DeepSee.Utils).%BuildCube("CacheGitHubCICube",1,0) ]]> From 5b6a51cc6af042cd36078a87613e3c1b311d7676 Mon Sep 17 00:00:00 2001 From: nalexand Date: Tue, 28 Jul 2015 16:32:22 +0300 Subject: [PATCH 06/12] fixed Installer.cls.xml --- cls/kutac/monitor/utils/Installer.cls.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cls/kutac/monitor/utils/Installer.cls.xml b/cls/kutac/monitor/utils/Installer.cls.xml index 40f9a4f..afca115 100644 --- a/cls/kutac/monitor/utils/Installer.cls.xml +++ b/cls/kutac/monitor/utils/Installer.cls.xml @@ -1,7 +1,7 @@ - + -63761,56396.937793 +63761,59386.984137 63732,50627.865496 @@ -100,7 +100,7 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars) 1 -Namespace=$Namespace,Owner:%String="alexandrov-nikita",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String,Password:%String +Namespace=$Namespace,Owner:%String="intersystems-ru",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String,Password:%String %Status Date: Tue, 28 Jul 2015 16:35:33 +0300 Subject: [PATCH 07/12] fixed Installer.cls.xml --- cls/kutac/monitor/utils/Installer.cls.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cls/kutac/monitor/utils/Installer.cls.xml b/cls/kutac/monitor/utils/Installer.cls.xml index afca115..f443dc7 100644 --- a/cls/kutac/monitor/utils/Installer.cls.xml +++ b/cls/kutac/monitor/utils/Installer.cls.xml @@ -1,7 +1,7 @@ - + -63761,59386.984137 +63761,59689.157 63732,50627.865496 @@ -44,7 +44,7 @@ - + From bd934cb8b7b8597f459c1306c99084a7a3e17325 Mon Sep 17 00:00:00 2001 From: alexandrov-nikita Date: Tue, 28 Jul 2015 16:50:13 +0300 Subject: [PATCH 08/12] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a8f84c2..cbafaaf 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,19 @@ After mapping kutac package to %All namespace, namespaces %SYS and {Namespace} w * %Monitor.System.LockTable * %Monitor.System.Routines -The next step is starting monitor. Your namespace will appear in the list of accessible namespaces for DeepSee and you can see different dashboards there. However, if you open User Portal in the DeepSee immediately after installing, you will notice that all dashboards will be empty. You need to wait a little time, because the installer runs the task for rebuilding cubes in 1 minute after installing. This task will run every 3 hours for updating information for monitor dashboards. +The next step is starting monitor. Your namespace will appear in the list of accessible namespaces for DeepSee and you can see different dashboards there. However, if you open User Portal in the DeepSee immediately after installing, you will notice that all dashboards will be empty. You need to wait a little time, because the installer runs the task for rebuilding cubes in 1 minute after installing. This task will run every 1.5 hours for updating information for monitor dashboards. Also, this task is available in the Task Manager, so you can run the task whenever you want. + +In case of absense of new facts and notes, please, restart system monitor using ^%SYSMONNGR utility. Run in Terminal: + + zn "%SYS" + do ^%SYSMONMGR + 1 + 2 + 1 + 3 + +After that, check "View System Monitor State": run "4" in the Terminal. All states must be OK. In another case, please, restart Caché. + From 90157d602d10bc001af0dadccd17aab40bc093f4 Mon Sep 17 00:00:00 2001 From: alexandrov-nikita Date: Tue, 28 Jul 2015 16:51:03 +0300 Subject: [PATCH 09/12] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cbafaaf..31322f4 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ After mapping kutac package to %All namespace, namespaces %SYS and {Namespace} w The next step is starting monitor. Your namespace will appear in the list of accessible namespaces for DeepSee and you can see different dashboards there. However, if you open User Portal in the DeepSee immediately after installing, you will notice that all dashboards will be empty. You need to wait a little time, because the installer runs the task for rebuilding cubes in 1 minute after installing. This task will run every 1.5 hours for updating information for monitor dashboards. Also, this task is available in the Task Manager, so you can run the task whenever you want. -In case of absense of new facts and notes, please, restart system monitor using ^%SYSMONNGR utility. Run in Terminal: +In case of absense of new facts and notes, please, restart System Monitor using ^%SYSMONNGR utility. Run in Terminal: zn "%SYS" do ^%SYSMONMGR @@ -67,7 +67,7 @@ In case of absense of new facts and notes, please, restart system monitor using 1 3 -After that, check "View System Monitor State": run "4" in the Terminal. All states must be OK. In another case, please, restart Caché. +After that, check "View System Monitor State": run "4" in the Terminal. All states must be OK. In another case, please, restart Caché and start System Monitor. From 2b89a14e4a3cc22838e94aeb2e2bc2c56a363116 Mon Sep 17 00:00:00 2001 From: nalexand Date: Tue, 28 Jul 2015 17:49:17 +0300 Subject: [PATCH 10/12] fixed Installer.cls.xml: startup namespaces were removed --- cls/kutac/monitor/utils/Installer.cls.xml | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/cls/kutac/monitor/utils/Installer.cls.xml b/cls/kutac/monitor/utils/Installer.cls.xml index f443dc7..f86eb7a 100644 --- a/cls/kutac/monitor/utils/Installer.cls.xml +++ b/cls/kutac/monitor/utils/Installer.cls.xml @@ -1,7 +1,7 @@ - + -63761,59689.157 +63761,64094.09359 63732,50627.865496 @@ -100,7 +100,7 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars) 1 -Namespace=$Namespace,Owner:%String="intersystems-ru",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String,Password:%String +Namespace=$Namespace,Owner:%String="alexandrov-nikita",Repository:%String="deepsee-sysmon-dashboards",Branch:%String,Username:%String,Password:%String %Status Do tInstaller.PushNS(Namespace) set st4 = ..CreateTask(Namespace) Do tInstaller.PopNS() - set st = $$$ADDSC(st4, $$$ADDSC(st1, $$$ADDSC(st2, st3))) + set st = $$$ADDSC(st4, $$$ADDSC(st2, st3)) if $$$ISERR(st) Throw ##class(%Installer.Exception).CreateFromStatus(st) quit $$$OK ]]> - -1 -Namespace=$Namespace -%Status - + } //quit $$$OK return $$$ADDSC(rsm, rsys) -]]> - +}*/ +]]> + 1 From fe79cda9ded59c2891736bc63666100c598eddcc Mon Sep 17 00:00:00 2001 From: nalexand Date: Tue, 28 Jul 2015 19:41:48 +0300 Subject: [PATCH 11/12] startup namespaces were deleted --- cls/kutac/monitor/utils/Installer.cls.xml | 29 ++--------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/cls/kutac/monitor/utils/Installer.cls.xml b/cls/kutac/monitor/utils/Installer.cls.xml index f86eb7a..a3317a2 100644 --- a/cls/kutac/monitor/utils/Installer.cls.xml +++ b/cls/kutac/monitor/utils/Installer.cls.xml @@ -1,7 +1,7 @@ - + -63761,64094.09359 +63761,70845.703415 63732,50627.865496 @@ -219,8 +219,6 @@ do ##class(kutac.monitor.utils.Installer).setup(.pVars) ]]> - - - - 1 %Status From d4a5fff691fe954010bfe9b12f5c0a40e1548a45 Mon Sep 17 00:00:00 2001 From: alexandrov-nikita Date: Tue, 28 Jul 2015 19:43:57 +0300 Subject: [PATCH 12/12] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31322f4..562cfd9 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ On this step installer would create (if needed) Namespace and corresponding data Default Settings ---------------- -After mapping kutac package to %All namespace, namespaces %SYS and {Namespace} will be defined as startup namespaces for monitor. Then, the installer activates in the namespace %SYS" following monitor classes: +The installer activates in the namespace %SYS" following monitor classes: * %Monitor.System.HistoryPerf * %Monitor.System.Diskspace @@ -56,7 +56,7 @@ After mapping kutac package to %All namespace, namespaces %SYS and {Namespace} w * %Monitor.System.LockTable * %Monitor.System.Routines -The next step is starting monitor. Your namespace will appear in the list of accessible namespaces for DeepSee and you can see different dashboards there. However, if you open User Portal in the DeepSee immediately after installing, you will notice that all dashboards will be empty. You need to wait a little time, because the installer runs the task for rebuilding cubes in 1 minute after installing. This task will run every 1.5 hours for updating information for monitor dashboards. Also, this task is available in the Task Manager, so you can run the task whenever you want. +The next step is starting monitor. Your namespace will appear in the list of accessible namespaces for DeepSee and you can see different dashboards there. However, if you open User Portal in the DeepSee immediately after installing, you will notice that all dashboards will be empty. You need to wait a little time, because the installer runs the task for rebuilding cubes in 1 minute after installing. This task will run every 1.5 hours for updating information for monitor dashboards. Also, this task is available in the Task Manager, so you can run the task whenever you want or change the task. In case of absense of new facts and notes, please, restart System Monitor using ^%SYSMONNGR utility. Run in Terminal: