News for hackers. Stuff that matters.
Re:First 5 Minutes Troubleshooting A Server by w0ts0n on Tuesday March 12, 2013 @08:47AM (#5361449)
One key thing missing imo. "history" can be a huge help. Even more so if there are multiple admins on call.
Re:First 5 Minutes Troubleshooting A Server by subway on Tuesday March 12, 2013 @09:23AM (#5361604)
In a well configured environment, "history" isn't going to be terribly useful -- admins should be using their own accounts and using sudo to execute commands as root.

In this sort of environment you want to look at your pam logs (/var/log/auth.log on debian-like distros, and iirc, /var/log/secure on RH-like). This gives you not only a list of what was run, but who ran it and when.

Re:First 5 Minutes Troubleshooting A Server by drinchev on Tuesday March 12, 2013 @09:52AM (#5361761)
LOL! My `history` says I use only `cd`, `ls` and `git`.

Shame for me ...

http://imgur.com/CBTrdJw [server linux box] http://imgur.com/tEjBtNY [development os x box]

Re:First 5 Minutes Troubleshooting A Server by balou on Tuesday March 12, 2013 @09:09AM (#5361547)
This indeed a huge help, this is now updated.

I'm pretty sure there is also a whole bunch of other (less famous) commands that would and should be added.

Re:First 5 Minutes Troubleshooting A Server by gbog on Tuesday March 12, 2013 @09:40AM (#5361697)
And the infamous reboot?
Re:First 5 Minutes Troubleshooting A Server by richardkeller on Tuesday March 12, 2013 @12:05PM (#5362680)
A reboot is the last thing you should be doing on a problematic box. A reboot should only be attempted if you're 100% sure that the problem can actually be solved by a reboot (for example in extreme cases a buggy kernel module might require a reboot, but even that's a very rare occurrence).

I've seen inexperienced sysadmins remotely rebooting a server only to discover that it won't boot up anymore because the original problem was that the server had run out of disk space.

Re:First 5 Minutes Troubleshooting A Server by gbog on Tuesday March 12, 2013 @09:15PM (#5366169)
Yes, that's why I think the article should mention reboot.
Re:First 5 Minutes Troubleshooting A Server by balou on Tuesday March 12, 2013 @10:00PM (#5366331)
That's a valid point; mention that one should not reboot until proven otherwise.

Same idea for services restart; don't do it unless absolutely needed. While it may be doing the trick in some cases it can also generate its own set of new false symptoms.

Take the example of :

- mysql is "slow"

- let's restart ! ...

- mysql init script has been puking dots (.) for the last 30 minutes on shutdown

- let's kill -9 it ! ...

- mysql db is corrupted ! Hurray!