Pages
-
Recent Posts
- Revolving Door: MPAA Hires Chief USTR Negotiator Behind ACTA And TPP’s IP Chapter
- Copyright Maximalists’ Incredible Sense Of Entitlement: If It Challenges The Biz Model We Chose, It Must Be Illegal
- Turkey’s Prime Minister Sues His Own Country Over Twitter
- Picturefill 2
- Police File On Student ‘Bullied Into Committing Suicide’ Strangely Lacking In Evidence Of Bullying
Archives
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- December 2008
- November 2008
- October 2008
Meta
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:
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:
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 […]
Readers who viewed this page, also viewed:
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