mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Server monitoring tools
This commit is contained in:
parent
9db728e1ad
commit
841c97982f
10 changed files with 586 additions and 9 deletions
42
bin/v-list-sys-cpu-status
Executable file
42
bin/v-list-sys-cpu-status
Executable file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash
|
||||
# info: list system cpu info
|
||||
# options: [FORMAT]
|
||||
#
|
||||
# The function lists cpu information
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Argument defenition
|
||||
#format=${1-shell}
|
||||
|
||||
# Includes
|
||||
#source $VESTA/func/main.sh
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Displaying top 30
|
||||
top -b -n1 | head -n 37
|
||||
echo -en "\n-------------------------------------"
|
||||
echo -en "-------------------------------------\n\n"
|
||||
|
||||
# Displaying process tree
|
||||
pstree -s
|
||||
echo -en "\n-------------------------------------"
|
||||
echo -en "-------------------------------------\n\n"
|
||||
|
||||
# Displaying CPU information
|
||||
grep 'model name' /proc/cpuinfo|cut -f 2 -d : | sed "s/ //"
|
||||
echo
|
||||
lscpu 2>/dev/null
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
exit
|
Loading…
Add table
Add a link
Reference in a new issue