mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Server monitoring tools
This commit is contained in:
parent
9db728e1ad
commit
841c97982f
10 changed files with 586 additions and 9 deletions
40
bin/v-list-sys-memory-status
Executable file
40
bin/v-list-sys-memory-status
Executable file
|
@ -0,0 +1,40 @@
|
|||
#!/bin/bash
|
||||
# info: list virtual memory info
|
||||
# options: [FORMAT]
|
||||
#
|
||||
# The function lists virtual memory information
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Argument defenition
|
||||
#format=${1-shell}
|
||||
|
||||
# Includes
|
||||
#source $VESTA/func/main.sh
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Displaying memory and swap usage
|
||||
free -t -m
|
||||
echo -en "\n-------------------------------------"
|
||||
echo -en "-------------------------------------\n\n"
|
||||
|
||||
# Displaying memory stats
|
||||
vmstat -S m -s
|
||||
echo -en "\n-------------------------------------"
|
||||
echo -en "-------------------------------------\n\n"
|
||||
|
||||
# Displaying ram information
|
||||
dmidecode -t 17 2>/dev/null
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
exit
|
Loading…
Add table
Add a link
Reference in a new issue