<jupyter_start><jupyter_text>Experto Universitario DevOps DevOps Lab for Runbook  Example: Check Kibana Runbook**Objective**:Run this runbook to ckeck if kibana is running or not and, if required, fix it!**Steps to ckeck**:1. Connect to system2. Verify if Kibana is running executing "kibana status" as a admin user ("service-user" user in our case)**Expected result**If the connection to the system is OK, then cell will be executed and the output will be"Kibana is stopped" or"Kibana is running"If the connection to the system is KO, then cell will be end with a connection error<jupyter_code>%%bash
STATUS_SCRIPT="sudo service-user kibana status"
ssh -i ~/.ssh/ec2_jlg.pem ec2-user@172.16.31.10 "${STATUS_SCRIPT}"<jupyter_output><empty_output><jupyter_text>**Steps to fix**:1. Connect to system2. Restart Kibana executing "kibana restart" as a admin user ("service-user" user in our case)3. Verify if it is now running OK**Expected result**If the connection to the system is OK, then cell will be executed and the output will be"Restarting Kibana" and"Kibana is running"If the connection to the system is KO, then cell will be end with a connection error<jupyter_code>%%bash
STATUS_SCRIPT="sudo service-user kibana status"
RESTART_SCRIPT="sudo service-user kibana restart"
ssh -i C:/Users/juanl/.ssh/h/ec2_jlg.pem ec2-user@172.16.31.10 "${RESTART_SCRIPT} & ${STATUS_SCRIPT}"<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09310589907604833, 'fraction_numerical': 0.019189765458422176, 'mean_word_length': 5.8019323671497585, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '438379', 'license': 'Apache-2.0', 'n_tokens_mistral': 480, 'n_tokens_neox': 451, 'n_words': 174, 'path': 'jupyter-runbooks/DevOps Lab Check Kibana.ypnb.ipynb', 'repo_name': 'DRJavi/DevOpsLabsMonito', 'size': '1397'}