I am looking for a script very smilitar to the one that is built into cPanel called dcpumon. I have two servers that keep crashing and in messages and other logs there is not any reason as to why this server dies. Could anyone recommend a good script that give the output of top, ps and other commands to see why this servers keep crashing. I would also like for the output to be logged to a file and then rotated.
sorry to bump a super old thread, but i'm having issues with the above script. it seems centOS defines the variables just fine (i tried debugging the script with more echos) BUT the conditions are always true, regardless of whether emergencyload has been reached or not... any idea??