This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ENDPOINTS=( | |
| "https://wi-node-1:9200" | |
| "https://wi-node-2:9200" | |
| "https://wi-node-3:9200" | |
| ) | |
| INTERVAL=1 | |
| MIN_PANEL_HEIGHT=10 | |
| LOG_FILE="/tmp/opensearch_cpu_log.txt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # OpenSearch endpoint | |
| HOST="https://localhost:9200" | |
| username=admin | |
| read -s -p "Password: " password | |
| echo | |
| # Опционально: если нужна basic auth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # This script monitors all mounted filesystems and detects abnormal spikes | |
| # in disk usage based on historical percentage growth. It calculates the | |
| # median and standard deviation of usage changes over time and reports a | |
| # warning or critical alert if the latest change deviates significantly | |
| # (Z-score based) from typical behavior. | |
| # | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Посылает USSD-запрос, переданный первым параметром командной строки и выводит ответ | |
| # | |
| DEVICE="/dev/ttyS0" | |
| BAUD=115200 | |
| TMPLOG="/tmp/ussd.log" | |
| USSD_HEX=$(echo -n "$1" | iconv -f utf-8 -t utf-16be | xxd -p) |
OlderNewer