We have several LAMP servers that each run a special script we wrote to report on various system metrics. The report runs daily, and the idea is to be able to make a quick pass and spot any potential issues on the system.
Each LAMP server runs RedHat Enterprise and hosts 40-50 (and growing) public facing websites each (a mix of HTML, custom PHP and Drupal sites).
Here is what the script currently includes:
- Server load and users logged in
- Last 10 logins and times
- Disk usage
- Last 10 lines from various logs (qmail, mysql, secure, apache error, package)
- username, port and last login time for every account
- top dump
The report is already long, so I'm interested in brevity as much as is feasible.
Have you found other metrics important to include in such a script? Would you drop any from this list?
Thanks, team.
j