Mini Shell
Direktori : /opt/ |
|
Current File : //opt/monitoring.sh |
#!/bin/bash
echo "" >> /var/log/monitoring.log
echo "" >> /var/log/monitoring.log
echo "========TIME=======" >> /var/log/monitoring.log
/bin/date +"%F %T" >> /var/log/monitoring.log
echo "===================" >> /var/log/monitoring.log
echo $(date) $(cat /proc/loadavg) >> /var/log/monitoring.log
echo "========Load Average=======" >> /var/log/monitoring.log
/usr/bin/uptime >> /var/log/monitoring.log
echo "========Process List=======" >> /var/log/monitoring.log
/bin/ps -e -o pcpu,pmem,pid,user,args --sort -pcpu >> /var/log/monitoring.log
echo "========I/O Usage=======" >> /var/log/monitoring.log
/usr/sbin/iotop -o -b -n 1 >> /var/log/monitoring.log
/usr/bin/mysqladmin pr >> /var/log/monitoring.log
Zerion Mini Shell 1.0