<jupyter_start><jupyter_text>Experto Universitario DevOps DevOps Lab for Runbook Example: Kibana Runbook**Objective**:Run this runbook to ckeck if kibana is running or not, and fix it**Steps to ckeck**:1. Connect to system2. Verify if Kibana is running executing "kibana status" as a admin user ("service" user in our case)<jupyter_code>%bash
STATUS_SCRIPT="sudo service kibana status"
ssh -i ~/.ssh/ec2_jlg.pem ec2-user@172.16.58.3 "${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 in our case)3. Verify if it is now running OK<jupyter_code>%bash
STATUS_SCRIPT="sudo service kibana status"
RESTART_SCRIPT="sudo service kibana restart"
ssh -i ~/.ssh/ec2_jlg.pem ec2-user@172.16.58.3 "${RESTART_SCRIPT} & ${STATUS_SCRIPT}"<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11288483466362599, 'fraction_numerical': 0.028506271379703536, 'mean_word_length': 6.440677966101695, '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': '447696', 'license': 'Apache-2.0', 'n_tokens_mistral': 337, 'n_tokens_neox': 314, 'n_words': 94, 'path': 'jupyter-runbooks/DevOps Lab Kibana.ypnb.ipynb', 'repo_name': 'DRJavi/DevOpsLabsMonito', 'size': '869'}