-
Notifications
You must be signed in to change notification settings - Fork 9
/
RB_Linux_SysDiag.json
1 lines (1 loc) · 5.23 KB
/
RB_Linux_SysDiag.json
1
[{"name":"Linux - System Diagnostics","description":"This runbook is intended to provide steps with automations each doing some basic diagnostic steps on the targeted system. Automations provided by this runbook can be used in your own runbook as well.","steps":[{"number":1,"description":"\n<p dir=\"ltr\">If you have trouble with your Linux system you can use the following diagnostic steps to figure out potential problems with the configuration of your OS.</p>\n\n<p dir=\"ltr\">First the automation in this step will display the current <strong>Memory Usage</strong> of the target system: <span class=\"span-grp rba-param\" contenteditable=\"false\">TARGET</span></p>\n\n<p dir=\"ltr\"><span class=\"span-grp rba-autom\" data-automationid=\"§§exportedAutomation_0_§§\" data-mappingid=\"1\" contenteditable=\"false\">Get Current MEM Usage</span></p>\n\n<p dir=\"ltr\">This output shows you how much<strong> total</strong> memory is being <strong>used</strong> and how much is still <strong>free. </strong></p>\n\n<p dir=\"ltr\">If the output displays a line with values for \"buffer/stale\" - then the actual memory which is free equals to the number in that line in column <strong>free</strong></p>\n\n<p dir=\"ltr\"> </p>\n\n"},{"number":2,"description":"\n<p dir=\"ltr\">This step will present you some Memory Statistics of the specified target system: <span class=\"span-grp rba-param\" contenteditable=\"false\">TARGET</span></p>\n\n<p dir=\"ltr\"><span class=\"span-grp rba-autom\" data-automationid=\"§§exportedAutomation_1_§§\" data-mappingid=\"2\" contenteditable=\"false\">Get VMStats</span></p>\n\n<p dir=\"ltr\">The <code>wa</code> column in the output displays the time that the CPU spends waiting for I/O operations to complete.</p>\n\n<p dir=\"ltr\">In case this number is much higher than 0 for a longer time then you should have a closer look to the IO usage.<br>\nIn case the number is always 0 than you can be sure that you are not experiencing any Input/Output related issue.</p>\n\n<p dir=\"ltr\"> </p>\n\n"},{"number":3,"description":"\n<p dir=\"ltr\">In this step you<strong> </strong>monitor <strong>Processes, Memory </strong>and <strong>CPU Usage </strong>on the specified target system: <span class=\"span-grp rba-param\" contenteditable=\"false\">TARGET</span></p>\n\n<p dir=\"ltr\"><span class=\"span-grp rba-autom\" data-automationid=\"§§exportedAutomation_2_§§\" data-mappingid=\"3\" contenteditable=\"false\">Get TOP Processes</span></p>\n\n<p dir=\"ltr\"> </p>\n\n<p dir=\"ltr\"> </p>\n"}],"parameters":[{"name":"TARGET","description":"System to be checked"}],"tags":["diagnostic","linux"],"automationMappings":[{"mappingId":"1","parameterMappings":[{"automationParameterName":"target","parameterMappingType":"parameter","parameterValue":"TARGET"},{"automationParameterName":"user","parameterMappingType":"fixed","parameterValue":"root"}]},{"mappingId":"2","parameterMappings":[{"automationParameterName":"target","parameterMappingType":"parameter","parameterValue":"TARGET"},{"automationParameterName":"user","parameterMappingType":"fixed","parameterValue":"root"},{"automationParameterName":"$WaitTime","parameterMappingType":"fixed","parameterValue":"2"},{"automationParameterName":"$Repeat","parameterMappingType":"fixed","parameterValue":"10"}]},{"mappingId":"3","parameterMappings":[{"automationParameterName":"target","parameterMappingType":"parameter","parameterValue":"TARGET"},{"automationParameterName":"user","parameterMappingType":"fixed","parameterValue":"root"},{"automationParameterName":"$Iterations","parameterMappingType":"fixed","parameterValue":"5"}]}],"automations":{"§§exportedAutomation_0_§§":{"name":"Get Current MEM Usage","type":"SCRIPT","description":"This automation will show the current memory usage of a Linux System","parameters":[{"name":"target","description":"Target system where the script will be executed"},{"name":"user","description":"User ID that is used to run the script"}],"fields":[{"name":"script_ssh","description":"script content","encoding":"base64","value":"ZnJlZSAtbQ=="}]},"§§exportedAutomation_1_§§":{"name":"Get VMStats","type":"SCRIPT","description":"This automation runs VM statistics","parameters":[{"name":"target","description":"Target system where the script will be executed"},{"name":"user","description":"User ID that is used to run the script"},{"name":"$WaitTime","description":"Sepcify in seconds how long to wait before next probe","defaultValue":"1"},{"name":"$Repeat","description":"How many probes should be taken by this automation","defaultValue":"5"}],"fields":[{"name":"script_ssh","description":"script content","encoding":"base64","value":"dm1zdGF0ICRXYWl0VGltZSAkUmVwZWF0"}]},"§§exportedAutomation_2_§§":{"name":"Get TOP Processes","type":"SCRIPT","description":"This automation calls the standard Unix TOP command to list a system summary as well as current existing processes and threads.","parameters":[{"name":"target","description":"Target system where the script will be executed"},{"name":"user","description":"User ID that is used to run the script"},{"name":"$Iterations","description":"Number of Iterations to run by top before to stop","defaultValue":"3"}],"fields":[{"name":"script_ssh","description":"script content","encoding":"base64","value":"dG9wIC1iIC1uJEl0ZXJhdGlvbnM="}]}}}]