Skip to main content

Posts

Nagios Infra monitoring tool- Configuration

Introduction This guide is intended to provide you with simple instructions on how to install Nagios from source (code) on Ubuntu and have it monitoring your local machine inside of 20 minutes. No advanced installation options are discussed here - just the basics that will work for 95% of users who want to get started. These instructions were written based on an Ubuntu 6.10 (desktop) installation. They should work for an Ubuntu 7.10 install as well. What You'll End Up With If you follow these instructions, here's what you'll end up with: Nagios and the plugins will be installed underneath /usr/local/nagios Nagios will be configured to monitor a few aspects of your local system (CPU load, disk usage, etc.) The Nagios web interface will be accessible at http://localhost/nagios/ Required Packages Make sure you've installed the following packages on your Ubuntu installation before continuing. Apache 2 PHP GCC compiler and development libraries GD deve

Clariion CX, CX3, CX4 – How to add Storage Capacity to Attached Host

Microsoft Windows 1. If needed, add new drives to the storage system. 2. If needed, create a hot spare using Navisphere Manager. 3. If needed, create an additional RAID group on the drives using Navisphere Manager. 4. Create (bind) additional LUNs on the RAID group using Navisphere Manager. 5. Assign the new LUNs to the server using Navisphere Manager. 6. Verify that the new LUNs were assigned to the server using Navisphere Manager. 7. On the server, verify that the server has access to the LUNs: a. On the Windows desktop, right-click My Computer and click Manage. b. In the left pane of the Computer Management dialog box, double-click on the storage icon. c. Click Disk Management. d. Verify that the LUNs that you added are listed in the right pane. 8. Start or restart the Navisphere Host Agent to push the server’s LUN mapping and operating system information to the storage system. 9. On the server, start PowerPath and verify that PowerPath s

An Overview of Hyper-V Live Migration

Hyper-V Live Migration Configuration Requirements Before a running virtual machine can be migrated from one host to another there are some mandatory requirements that must first be met: Hyper-V 2008 R2 must be deployed on both hosts. The first version of Hyper-V does not support live migration. Source and destination Hyper-V hosts must be configured as a Failover cluster with shared storage enabled. Source and destination systems must be using shared storage (i.e. via SAN or iSCSI configurations) Source and destination systems must be running processors from the same manufacturer. It is not, for example, possible to migrate a virtual machine from an Intel based host to one containing an AMD CPU. The virtual machine on which the migration is to be performed must be configured as Highly Available and to use Cluster Shared Volumes. The virtual machine's Automatic Start Action setting must be set to do Nothing. All Hyper-V hosts in the Failover cluster must be configured t

RHEL server LUN paths goes offline during failover

Description of problem: Client is attempting to kickstart RHEL5 to a blade system with SAN attached storage. The customer is hitting an issue where anaconda complains with the following message at the beginning of the install: On virt console 1: Warning: /dev/sda is a read-only filesystem and hit OK to continue On virt console 3: parted exception: Warning: Unable to open /dev/sda read-write (Read-only file system). /dev/sda has been opened read-only The customer has to hit OK to accept this and the installation will then complete successfully. There are currently two LUNs presented from the SAN to the host. /dev/sda is indeed read-only and apparently it is a gatekeeper type device that is exported/presented to numerous hosts hence why it's read-only. /dev/sdb is the second LUN device that we want to install to. I've tried using the following entries in the kickstart file: ignoredisk --drives=sda clearpart --all --drives=sdb partition /boot --fstyp

LUN Masking vs. Zoning

Zoning Many devices and nodes can be attached to a SAN. When data is stored in a single   cloud , or storage entity, it is important to control which hosts have access to specific devices. Zoning controls access from one node to another. Zoning lets you isolate a single server to a group of storage devices or a single storage device, or associate a grouping of multiple servers with one or more storage devices, as might be needed in a server cluster deployment. Zoning is implemented at the hardware level (by using the capabilities of Fibre Channel switches) and can usually be done either on a port basis (hard zoning) or on a   World-Wide Name   (WWN) basis (soft zoning). WWNs are 64-bit identifiers for devices or ports. All devices with multiple ports have WWNs for each port, which provides more detailed management. Because of their length, WWNs are expressed in hexadecimal numbers, similarly to MAC addresses on network adapters. Zoning is configured on a per-target and initiator basis

Windows Server 2008 Terminal Server Licensing

Windows Server 2008 Terminal Services will present a whole new set of features and functionality that will most likely be of interest to many. As organizations explore these new technologies, it will be important to understand how Windows Server 2008 terminal server licensing differs from Windows Server 2003 and how Microsoft is making the process of terminal server licensing easier to manage. This two-part series will explore the changes in terminal services licensing in Windows Server 2008, including functional changes and management improvements. Some highlights of the changes are as follows: Per User CAL allocation is still not enforced – although it can be tracked in Active Directory. Terminal Server CAL revocation for Per-Device CALs Changes to license server discovery New built-in tools to assist in troubleshooting licensing-related issues Interface changes surrounding management and reporting Installation Process Changes The first noticeable change in the l

Mount an ISO file

It is convenient to mount an ISO file directly instead of burning it to a CD first. This recipe describes the command used to mount an ISO image on a Linux system. As a requirement, you have to be logged as root. To mount the ISO image file.iso to the mount point /mnt/test use this command: mount -o loop file.iso /mnt/test It will work for a CD or DVD ISO image. You can also specify the format of the CD: mount -o loop -t iso9660 file.iso /mnt/test

How to umount when the device is busy

It happens all the time doesn’t it? You need to unmount a CD or you want to pack away the external drive but when you try to umount it you get the dreaded “device is busy” message. Wouldn’t it be great if Linux actually told you what was keeping the drive busy? # umount /media/disk/ umount: /media/disk: device is busy umount: /media/disk: device is busy First thing you’ll do will probably be to close down all your terminals and xterms but here’s a better way. You can use the fuser command to find out which process was keeping the device busy: # fuser -m /dev/sdc1/ dev/sdc1: 538 # ps auxw | grep 538 johnd 538 0.4 2.7 219212 56792 ? SLl Feb11 11:25 rhythmbox Another handy one is: umount -l /dev/sdc1 This does a lazy umount which immediately detaches the drive from the filesystem, and then cleans up everything afterwards. This is especially handy if it’s a networked file system (NFS etc) and the network has gone down. You can also use: umount -lfr /mnt/sambamo

Linux NFS Export / share directory to other UNIX / Linux computer

NFS (Network file system) is both a protocol and file system for accessing and sharing file systems across a computer network using UNIX and Linux. NFS v4 is used in modern Linux distributions. It offers performance improvements, mandates strong security, and introduces a stateful protocol etc. How do I export a directory with NFS? NFS server configuration In order to export or share directory called /data2, you need to edit a file called /etc/exports. The file /etc/exports serves as the access control list for file systems which may be exported to NFS clients.: # vi /etc/exportsAdd config directive as follows:/data2 *(rw,sync) Each line contains an export point and a whitespace-separated list of clients allowed to mount the file system at that point. Each listed client may be immediately followed by a parenthesized, comma-separated list of export options for that client. Where, rw - Allow both read and write requests on /data2 NFS volume sync - Reply to reques

How to restore a pending request in IIS 6.0 if it was deleted

To install a Web server certificate that lacks a pending certificate request: 1. Click Start >  point to Run >  type cmd > click OK. 2. Navigate to the directory where Certutil.exe is stored;  by default, this is %windir%\system32. 3. Type the following command at the command prompt: certutil -addstore my certnew.cer  where certnew.cer is the name of the certificate you received from the certification authority (CA). You should see the following message: CertUtil: -addstore command completed successfully. 4. Navigate to the directory where you stored the certificate you received from the CA. Double click the saved certificate. 5. Click the Details tab and select <All> in the Show drop-down list. 6. In the Field list, select Thumbprint to display its value in the view pane. 7. Select the Thumbprint value in the view pane and then click CTRL+C. 8. Return to the command prompt window and type the following command: certutil -repairstore my "thu