Archive for October 31st, 2009

  • Check URL String in Nagios

    Saturday, October 31st, 2009

  • How do I Find Out Linux CPU Utilization?

    Saturday, October 31st, 2009

    Whenever a Linux system CPU is occupied by a process, it is unavailable for processing other requests. Rest of pending requests must wait till CPU is free. This becomes a bottleneck in the system. Following command will help you to identify CPU utilization, so that you can troubleshoot CPU related performance problems. Finding CPU utilization [...]

  • Sending email or mail with attachment from command or shell prompt

    Saturday, October 31st, 2009

    If you are looking to send email with attachment via shell script or at shell prompt/command line (read as bash prompt), use mutt command. Mutt is a small but very powerful text based program for reading electronic mail under UNIX /Linux operating systems, including support for color terminals, MIME, and a threaded sorting mode. Please [...]

  • Top 20 OpenSSH Server Best Security Practices

    Saturday, October 31st, 2009

    OpenSSH is the implementation of the SSH protocol. OpenSSH is recommended for remote login, making backups, remote file transfer via scp or sftp, and much more. SSH is perfect to keep confidentiality and integrity for data exchanged between two networks and systems. However, the main advantage is server authentication, through the use of public key [...]

  • Optimizing NFS Performance

    Saturday, October 31st, 2009

    Optimizing NFS Performance Careful analysis of your environment, both from the client and from the server point of view, is the first step necessary for optimal NFS performance. The first sections will address issues that are generally important to the client. Later (Section 5.3 and beyond), server side issues will be discussed. In both cases, [...]

  • MRTG Installation

    Saturday, October 31st, 2009

    MRTG Installation yum install net-snmp-libs net-snmp-devel net-snmp-utils yum install mrtg cfgmaker -global ‘WorkDir: /var/www/html/mymrtg’ -output /etc/mrtg/cisco_switch_mrtg.cfg communityname@192.168.1.1 (Switch/Router IP Address) indexmaker –output=/var/www/html/mymrtg/index.html /etc/mrtg/ cisco_switch_mrtg.cfg cp -av /var/www/mrtg/*.png /var/www/html/mymrtg/ /usr/bin/mrtg   /etc/mrtg/ cisco_switch_mrtg.cfg env LANG=C /usr/bin/mrtg /etc/mrtg/mymrtg.cfg –logging /var/log/mrtg.log make the following entry in the crontab (crontab -e) */1 * * * *  env LANG=C /usr/bin/mrtg /etc/mrtg/ [...]

  • Nagios Script for Varnish Server

    Saturday, October 31st, 2009

    #!/bin/bash # Varnish Process Monitor # Written By: Manoj Chauhan # Email ID: mchauhan75@gmail.com # Dated: 31-07-2009 # Restart Varnish Server When It Goes Down LOG=/usr/bin/logger RESTART=”/usr/bin/sudo /etc/init.d/varnishncsa restart” STATUS=”/etc/init.d/varnishncsa status” # Path to pgrep command PGREP=”/usr/bin/pgrep” VARNISHPID=”varnishncsa” Hostname=`hostname` STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 STATE_DEPENDENT=4 FLAG=0 /etc/init.d/varnishncsa status >/dev/null 2>&1 if [ $? -ne "0" ];then [...]

  • What values can be tuned to improve NFS performance?

    Saturday, October 31st, 2009

    In most situations the default NFS configuration should allow file access at acceptable speeds. However there may be situations that require tuning of the NFS client for specific circumstances. An example command to mount the remote export from a NFS server sharing large media files could be: mount -t nfs -o noacl,nocto, rsize=32768,wsize=32768 mediaserver:/exports /mnt/mediaserver/ [...]

  • NetApp NFS mount for Red Hat Linux 5.2

    Saturday, October 31st, 2009

    Just another post from my mails, where I have collected some Best Practices for mounting NFS share in RHRL. Automounter An automounter can cause a lot of network chatter, so it is best to disable the automounter on your client and set up static mounts before taking a network trace. Automounters depend on the availability [...]

  • Tuning on NFS and network

    Saturday, October 31st, 2009

    Without any tuning ########################################################## 192.168.1.1:/vol/data /data nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,noac,vers=3,timeo=600 0 0 [root@server data]# [root@server /]# cd /data [root@server data]# time dd if=/dev/zero of=bigfile1 bs=1024k count=1000 1000+0 records in 1000+0 records out 1048576000 bytes (1.0 GB) copied, 156.126 seconds, 6.7 MB/s real 2m36.932s user 0m0.000s sys 0m1.476s After tuning vi /etc/fstab ######################################## 192.168.1.1:/vol/data /data nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,noatime,vers=3,timeo=600 0 [...]

  • Graphing In Nagios

    Saturday, October 31st, 2009

    Graphing Nagios services with pnp4nagios Nagios is a popular open source computer system and network monitoring software application. It watches hosts and services, alerting users when things go wrong and again when they get better. Some of the major features of Nagios are: • Over 50 bundled plugins for checking common protocols and services (HTTP, [...]

  • Network Performance Document

    Saturday, October 31st, 2009

    Network Performance Linux Configure Jumbo Frames to Boost Network Performance / Throughput Most modern Linux distros (read as Linux Kernel 2.6.17+) does support frames larger than 1500 bytes. This can improve the performance. First, make sure your network driver supports custom MTU. Second you need to have a compatible gigabit NIC Jumbo frames can reduce [...]

  • Sipx Performance Monitoring

    Saturday, October 31st, 2009

    Sipx Performance Monitoring Introduction The purpose of this feature is to gather performance measurements and statistics of a running sipx server using the open source tools MRTG and RRDTool. These tools work with the local SNMP agent to gather statistics and performance information by querying mib values and storing this information in simple database files [...]

  • Extending LVM Partition without unmount

    Saturday, October 31st, 2009

    1)  lvextend -L +10G /dev/VolGroup01/LogVol00 2)  resize2fs /dev/VolGroup01/LogVol00 3)  lvreduce -L 1G  /dev/VolGroup01/LogVol00

  • Services Descriptions

    Saturday, October 31st, 2009

    avahi-daemon (avahi-daemon – The Avahi mDNS/DNS-SD daemon) bluetooth (We can disabled this, as we are using Bluetooth in the server ) cups (Common UNIX Printing Solution. It is one system the computer uses to control the print queue,Leave it on if you have a printer) ip6tables (iptables6 is part of the Linux Firewall. Leave it [...]