If you host a webserver, a very important that its running optimally and is in proper conditioning.

Here is a small guide to various easy diagnostic tests you can check to see if you webserver is running up to grade.


Getting the tools setup:

Depending on your OS distribution running your webserver the installation methods may vary, However all the tools are all usually the same.

All of them can be invoked from the command line terminal or SSH shell, given that your webserver may be running on a remote system.

The tools include:


Ping:

ping is a simple utility to see if your system is able to respond to systems on the network and check latency.

This comes pre-installed on almost every operating system.

A simple command to check if you are able to communicate with google DNS servers for example:

ping 8.8.8.8
ping checking latency between pc and google's DNS server

Htop:

Htop is a simple system utility to see system runtime stats like CPU usage, RAM usage, processes, etc. kind of like a task manager.

Install it on:

Ubuntu, and Debian derivatives:

sudo apt install htop

Fedora, OpenSUSE, and other RedHat derivatives:

sudo dnf install htop

Manjaro, and other Arch derivatives:

sudo pacman -S htop

Run it with:

htop
HTOP system task view

Uptime:

uptime is a simple utility to see how long you system has been up and running for.

This comes pre-installed on almost every operating system.

Run it with:

uptime
system has been up for about 5 minutes, on average the system hasn't been under any load.

Nload:

nload is a utility to see how much network traffic passes through your system in terms of uploaded and downloaded bytes.

Install it on:

Ubuntu, and Debian derivatives:

sudo apt install nload

Fedora, OpenSUSE, and other RedHat derivatives:

sudo dnf install nload

Manjaro, and other Arch derivatives:

sudo pacman -S nload

Run it with:

nload

(P.S pressing tab switches between network devices like ethernet and wifi to see how much traffic passed through each one)

nload viewing throughput of upload and download data.

Other Utilities:

If you are looking for a more overall system view, you might want to consider using glances.

Install it on:

Ubuntu, and Debian derivatives:

sudo apt install glances

Fedora, OpenSUSE, and other RedHat derivatives:

sudo dnf install glances

Manjaro, and other Arch derivatives:

sudo pacman -S glances

Run it with:

glances
Overall system view with glances.

What to concur from these diagnostic tests ?

Knowing these various parameters is all well and good, But one must know how to make use of them to analyze and troubleshoot issues with their webserver.

For example:


Wrap-up:

There are a lot of simple diagnostic tools for checking the server status. If you are looking for a graphical dashboard, consider using the cockpit-project.

Copyright © 2024 Meadowlark Marsh LLC.
Website/ Hosting by Meadowlark IT
crossmenu