DekWorld Postado Outubro 23, 2013 Compartilhar Postado Outubro 23, 2013 Script faz um relatório Geral dos principais aplicativos e conexões. #!/bin/bash cd / touch loadtest.txt echo "LOAD STATUS" `date` >> /loadtest.txt echo "___________________" >> /loadtest.txt echo "___________________" >> /loadtest.txt echo " W Results " >> /loadtest.txt w >> /loadtest.txt echo "___________________" >> /loadtest.txt echo "___________________" >> /loadtest.txt echo "PSTREE Resultados" >> /loadtest.txt echo "___________________" >> /loadtest.txt pstree -apu >> loadtest.txt echo "___________________" >> /loadtest.txt echo "___________________" >> /loadtest.txt echo "MYSQLADMIN Resultados" >> /loadtest.txt echo "___________________" >> /loadtest.txt mysqladmin proc status >> /loadtest.txt echo "___________________" >> /loadtest.txt echo "___________________" >> /loadtest.txt echo "Conexoes" >>/loadtest.txt netstat -plan |grep :80 | awk '{print $5}' |cut -d: -f1 | sort -n | uniq -c >>/loadtest.txt echo "___________________" >> /loadtest.txt echo "___________________" >> /loadtest.txt Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados