GithubHelp home page GithubHelp logo

morristech / whatswrong Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bashtonltd/whatswrong

0.0 1.0 0.0 232 KB

What's Wrong - simple, quick first step when debugging any server issue

License: GNU General Public License v3.0

Shell 100.00%

whatswrong's Introduction

What's wrong?

A simple bash script to do some basic checks on the system, and report any problems found. The basic concept is that this script should be run as a first step when debugging any issue. Nothing in the script requires root privileges to run.

Please note that there are some situations where this script may cause a system with problems to hang, for example if there are unavailable mounted volumes.

You can run on any system with internet access directly, even if the disks are remounted read-only:

curl https://raw.github.com/BashtonLtd/whatswrong/master/whatswrong | bash

Alternatively, as long as you have SSH access to the remote system you can download via your local machine, and then send and execute over SSH as follows:

curl https://raw.github.com/BashtonLtd/whatswrong/master/whatswrong | ssh $remote_server bash

You could add a commandline shortcut to this by appending the following to your .bashrc:

ww() { curl https://raw.github.com/BashtonLtd/whatswrong/master/whatswrong | ssh $1 bash; }

You can then run the script on any machine you have SSH access to with ww $remote_server

You may need to add -k to curl, however, beware that this increases the potential for a man-in-the-middle attack. As the script is not run as root, this is less serious than it might otherwise be, but should still be considered.

whatswrong's People

Contributors

ahmgithubahm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.