Technology Insights

Htop Exclamation Mark Near Uptime In Output On Linux Server

The other day while troubleshooting an issue on a server I noticed something I hadn’t ever noticed before which was an exclamation mark next to the uptime output from the htop command. After investigating and looking over the source I found that it is a bonus letting you know that your server has been up for a long time. Basically anything over 100 days of uptime will produce an exclamation mark next to the uptime reading. Below I show the sourcecode from the UptimeMeter.c file in the htop source as well as examples of how the htop uptime can vary depending on how long your server has actually been up.

Technology Insights

How To Not Be Prompted For Every File When Using Linux FTP mget Command

The other day I was attempting to use the Linux ftp command line application to obtain all of the files, sub directories, and files within the sub directories from an FTP site. The first issue I ran into was the issue of being prompted to confirm each and every file that is downloaded. Below I describe how to accomplish turning off the prompt and just to note I ended up using “wget” to download all of the files, sub directories, and files within the sub directories via FTP on the remote server.

Technology Insights

Flexible Upload D3Z Edition WordPress Plugin Not Working On WordPress 3.X

I have been using the Flexible Upload D3Z Edition WordPress plugin for a couple years now on various sites that I work on or manage. To me it provides a much easier interface to upload images while building thumbnails on the fly than the default WordPress image media upload. The issue is the Flexible Upload D3Z Edition plugin has not been updated since WordPress version 2.6.X so it has broken on more than one occasion. So when upgrading to WordPress 3 recently it broke the Flexible Upload D3Z Edition plugin and below I describe how to fix the plugin so it will operate without issue in WordPress 3.X.

Technology Insights

Count How Many Files Are In A Directory And All Sub Directories On A Linux Server

Counting files in Linux is fairly easy by simply listing the files using ls and then using the wc application. Both the ls application and the wc application are core Linux applications and should be installed by default on your server. One thing that I had forgotten how to do was how to count all files in a specific directory as well as all files in each sub directories. The second method I will display below is not 100% accurate because it will count sub directories twice however it is likely you just need a round about method to get an idea of how many files and sub directories you are working with. Below I describe first how to count all files and directories within a single directory and second how to count all the files, sub directories, and files within the sub directories via a Linux shell or command prompt.

Technology Insights

Dell Linux OpenManage Command To Watch RAID Group Rebuild

The Dell OpenManage Linux packages have come a long way and are very useful to have installed on any Dell servers you have installed. In fact OpenManage could be considered critical to monitoring Dell hardware for many reasons but consider a single disk in a RAID 1 mirrored group failing and you don’t have physical access to the box. Unless you are constantly monitoring other logs it would make things much easier to receive an alert from monitoring software such as something like Nagios. This way you can feel comfortable at all times that your Dell hardware is in top shape.