Q: How do I connect to a MySQL database from a perl program? I like to connect to an existing mysql database and select records from a particular table. Can you explain with a simple working example? A: You should use perl DBI module to connect to a MySQL database as explained below. If you [...]
Ramesh Natarajan
Using RabbitMQ you can use message queue mechanism to transfer messages from one application to another. RabbitMQ has drivers for several programming languages. You can pretty much write code in any of your favourite language to manipulate the messages in the RabbitMQ message queue. Sometimes managing the message queue from command line, or writing several [...]
If you are running Oracle database on your environment, and having some performance issues because of memory, you may have to look at the swap space configured on your system. For Oracle 11g database, the following is the recommendation from Oracle in terms of how much space space you should add. If your RAM size [...]
You can use any one of the following methods to change the hostname and/or ip-address on RedHat related distributions. If you want to change only the hostname you can either do it from command line, or from GUI as explained below. To change the ip-address along with the hostname, follow the steps shown below. I. [...]
When you are running MongoDB in production environment, it is essential to monitor MongoDB to make sure it is up and running properly. If you are already using Nagios for your enterprise monitoring, you can monitor MongoDB using plugins. check_mongodb is a Nagios plugin written in Python to monitor various areas of MongoDB database. This [...]
When you are working with EMC support, or any other EMC vendors, they’ll ask for SP collect information from your EMC CLARiiON storage array. The spcollect zip file will provide them all the information they need to know about your storage array. This tutorial explains how to execute SP collect on EMC storage array from [...]
In PHP you can manipulate image files using GD library. It support several formats including GIF, PNG, JPEG, etc. You can use LibGD library to stream images directly from your application to the browser. This tutorial explains how to enable GD functionality in PHP. Download LibJPEG Library First, download the LibJPG files from here. Or, [...]
Q: I have setup nagios to monitor my servers. However, I perform some regular daily maintenance on this server. I don’t want Nagios to send me any notification during this this daily regular downtime window. How can I achieve this? A: You can use any one of the method shown here to handle this situation. [...]