Redhat/CentOS install PHP on NginX server as fastcgi Rumi, August 26, 2012 tep # 1: Enable EPEL repo ngnix is not included in the base system. Turn on EPEL repo to install nginx stable release: # rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/$(uname -m)/epel-release-5-3.noarch.rpm Step # 2: Install ngnix Type the following command at a shell prompt: # yum install nginx Sample output: Loaded plugins: downloadonly,… Continue Reading
Network Configuration on Debian or Ubuntu Rumi, August 24, 2012 Setting up an Ethernet Interface The majority of network setup can be done via the interfaces configuration file at /etc/network/interfaces. Here, you can give your network card an IP address (or use dhcp), set up routing information, configure IP masquerading, set default routes and much more. Remember to add… Continue Reading
Ozeki NG MySQL Connectivity Parameters Rumi, July 5, 2012July 5, 2012 Databse connection =========================== Driver={mySQL ODBC 5.1 Driver};Server=192.168.0.100;Port=3306;Option=4;Database=mydb;Uid=userdb;Pwd=putmypwd; Sending-Polling ============ SELECT id,sender,receiver,msg,msgtype,operator FROM ozekimessageout WHERE status=’send’ Sending-sending ============= UPDATE ozekimessageout SET status=’sending’ WHERE id=’$id’ Sending-Sent ============== UPDATE ozekimessageout SET status=’sent’, senttime=’$senttime’ WHERE id=’$id’ Sending-Not sent =========== UPDATE ozekimessageout SET status=’notsent’ WHERE id=’$id’ SQL for receiving ============== INSERT INTO ozekimessagein (sender, receiver,… Continue Reading
Nagios JBoss Plugin Rumi, June 25, 2012 Perl script to check thread and memory usage of a Jboss server. I didn't like the Jboss checks that I've found which require Java or remote-run, so I wrote this. It's a simple check that looks at memory usage and busy threads. I did this with percentage thresholds to make… Continue Reading
Icininga on SSL Rumi, June 25, 2012 This is intended to be an introduction for implementation of stronger authentication and server security focused around the CGI web interface. There are many ways to enhance the security of your monitoring server and Icinga environment. This should not be taken as the end all approach to security…. Continue Reading
Nagios LDAP Monitoring (works for icinga as well) Rumi, June 20, 2012June 20, 2012 on commands.cfg file define command { command_name check_ldaps command_line $USER1$/check_ldap.pl -H 192.168.0.123 -p 389 } on your <server.cfg> file- define service{ use generic-service ; template name, available by default host_name LDAP ; unique name… Continue Reading
Install Perl CPAN on CentOS troubleshooting Net::LDAP Rumi, June 20, 2012June 20, 2012 First we need to make sure our perl modules are all there and up to date. We can do this easily by Running perl -MCPAN -e –shell Let it run. Answer “no” when it asks about Manual configuration. Once it stops you'll be at the cpan prompt….type install Bundle::CPAN this will… Continue Reading
Installing NRPE For Icinga on Ubuntu 10.10 & CentOS 5.5 Rumi, June 11, 2012June 11, 2012 I currently have Icigna 1.2 (classic, web, and mobile) running on Ubuntu 10.10. I have a few other Linux servers that I would like to monitor as well. There is a good amount of information on installing Nagios and things to accompany it but Icigna documentation and blogs are fewer…. Continue Reading
Step by Step Zimbra 6.x installation on CetOS 5.x Rumi, June 11, 2012June 11, 2012 First you need to install a fresh CentOS operating system, keeping almost everything as default state. In this installation note I'm assuming few things- There is either a LARGE '/' partion or a LARGE '/opt' partition. Zimbra by default is installed on /opt directory I'm also assuming that the server… Continue Reading
Running Zimbra on HTTPS Rumi, June 11, 2012 1. First you need to su as 'zimbra' user 2. go to /opt/zimbra/bin/ 3. Use the following commands to enable SSL: ./zmtlsctl https ./zmcontrol restart Now it's working like a charm. For other readers: I can only access to webclient by SSL now (but that's ok for me). other options… Continue Reading