Category Archives: monitoring

PHPHOST BLOG

Web Hosting Related Articles You May Need

[one-liner]: Why is Conky reporting a lower CPU frequency, when my CPU frequency is actually much higher?

Background

If you’ve every dealt with Conky you may have gotten a little confused when you’re trying to get it to display your CPU frequency like so:

1
${freq_g cpu0} Ghz

… and Conky is reporting your CPU frequency as 1.12GHz when in fact it’s actually much higher than that, say 2.67GHz. Most likely this is being caused by […]

Readers who viewed this page, also viewed:

Continue reading

Posted in conky, linux, monitoring, one-liner, performance, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Why is Conky reporting a lower CPU frequency, when my CPU frequency is actually much higher?

[one-liner]: Checking out a HDD’s Health using the Command Line Tool udisk

Background

Here’s a quick tip for checking out the overall health of your computer’s hard drive. It makes use of a little known tool called udisks which provides access to information about storage devices from the D-Bus interface.

Solution

Before we jump into udisks here are some resources that might prove useful when dealing with the design/architecture of […]

Readers who viewed this page, also viewed:

Continue reading

Posted in HDD, linux, monitoring, one-liner, performance, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Checking out a HDD’s Health using the Command Line Tool udisk

[one-liner]: How can I Trigger a Notification When a Command Line Job/Process Ends?

Background

Occasionally I need to notify myself when a long running command has finished. Here are a couple of tricks that I use to give me either a audible or visual notification.

Solution

The trick with this is to construct your command like so:

1
% command; command-after &

Then in the command-after position you can do things like this:

1
2
3
4
5
6
7
8
# ring […]

Continue reading

Posted in monitoring, notification, one-liner, script, Syndicated, tips & tricks | Comments Off on [one-liner]: How can I Trigger a Notification When a Command Line Job/Process Ends?

[one-liner]: Monitoring Network Traffic with Netstat on Linux

Background

This is a quick guide to some not so obvious command-line options available in the Linux netstat(8) command. I hope you enjoy it.

Solution

1. Plain old netstat

Without any command-line arguments, “netstat” shows a list of network connections in your system, including TCP, UDP and UNIX socket connections. If you want to speed up things a bit, […] Continue reading

Posted in linux, monitoring, one-liner, redhat, rhel, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Monitoring Network Traffic with Netstat on Linux

Example Bash Script which Monitors if a Program has Died, and Restarts it

Background

Here’s a quick script that might prove useful if you need to watch if a program is running and restart it if it stops for whatever reason. It is by no means fault tolerant, but could be adapted to be more so if needed.

Solution

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
 
# NAME: check_dropbox.bash
# DESC: watch if dropbox is running
 
check_process() {
[…] Continue reading

Posted in bash, monitoring, script, Syndicated, tip, tutorials | Comments Off on Example Bash Script which Monitors if a Program has Died, and Restarts it

Improving the WordPress Plugin Statpress Reloaded’s Performance

Since setting up this blog some 2+ years ago I’ve been using the WordPress plugin, Statpress Reloaded, to keep tabs on how much traffic it receives. It’s purely just for vanity sake. Now for anyone that’s used Statpress Reloaded, you’ll know that it’s a nice plugin for what it shows, mainly real-time stats, but it’s […] Continue reading

Posted in monitoring, performance, Syndicated, tip, tips & tricks, wordpress, wordpress plugin | Comments Off on Improving the WordPress Plugin Statpress Reloaded’s Performance

wavemon – ncurses-based Monitoring Application for Wireless Network Devices

Description

I recently came across this handy ncurses-based tool called wavemon for monitoring the status of both the wireless networks around my laptop as well as my wireless card. It offers most of the features that you’d find in any equivalent GUI. The impressive thing here is that all these features are made available in a […] Continue reading

Posted in monitoring, networking, shell, Syndicated, sysadmin, tip, tutorials | Comments Off on wavemon – ncurses-based Monitoring Application for Wireless Network Devices

[one-liner]: Pulling Usage Data out of Apache’s access_log

The other day a website I maintain started experiencing what appeared to be a DoS attack. When this occurs I usually take a peek at Apache’s access_log to see if there is an “unusual” amount of traffic coming from a set of IP addresses. A DoS can be classified as one of 2 situations:

a lot […] Continue reading

Posted in apache, monitoring, one-liner, server, Syndicated, tip, tips & tricks | Comments Off on [one-liner]: Pulling Usage Data out of Apache’s access_log