Commit fb23b954 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add load_avg_vz

parent 82131690
#!/bin/sh
for id in $(vzlist | sed -e "s| *\([0-9]*\).*|\1|g") ; do
CONF=/etc/vz/conf/$id.conf
test -r $CONF || continue
eval `cat $CONF | grep ^HOSTNAME | sed -e "s|office.etersoft.ru||g"`
printf "%4s (%20s):" $id $HOSTNAME
vzctl exec $id uptime
done
echo "---"
uptime
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment