Skip to content

добавил проверку swap #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#### Получение скрипта
Для начала необходимо залогиниться на одной из нод, например на мастере и получить скрипт выполнив команду:

```wget https://raw.githubusercontent.com/ispringtech/on-prem-learn-scripts/main/check-hosts.sh -O check-hosts.sh; chmod +x check-hosts.sh```
```wget https://raw.githubusercontent.com/VasiliyRoss/on-prem-learn-scripts/main/check-hosts.sh -O check-hosts.sh; chmod +x check-hosts.sh```


#### Получение конфига
Expand Down
2 changes: 2 additions & 0 deletions check-hosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ get_sys_info(){
ssh_connection_str "echo -n 'CPU Frequency:'; grep MH /proc/cpuinfo | uniq | cut -d ':' -f 2;"
#get ram
ssh_connection_str "free -h | grep Mem" | awk '{print "RAM: " $2}'
#get swap
ssh_connection_str "free -h | grep Swap" | awk '{print "Swap: " $2}'
#get hdd
ssh_connection_str "df -H / | tail -1" | awk '{print "HDD: " $2}'
#get network connect
Expand Down
2 changes: 1 addition & 1 deletion ssl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


#### Получение скрипта
Для начала необходимо залогиниться на на мастере ноде и получить скрипт выполнив команду:
Для начала необходимо залогиниться на мастере ноде и получить скрипт выполнив команду:

```wget https://raw.githubusercontent.com/ispringtech/on-prem-learn-scripts/main/ssl/ssl-checker.sh -O ssl-checker.sh; chmod +x ssl-checker.sh```

Expand Down