Monday 14 June 2010

ILO Setup without restart

C:\Program Files\HP\hponcfg>hponcfg /w iLoConfig.xml

To change settings you need to create an xml file containing the parameters you want to change, formatted using the RIBCL language. RIBCL allows you to write XML scripts to configure and manage iLO config settings.

To modify the network settings I created the following script:

DHCP Server Database Corruption

Error on DHCP server running on Windows Server 2008 (DC)



Fix:
run cmd as administrator
  • net stop dhcpserver
  • cd \windows\system32\dhcp\
  • jetpack dhcp.mdb temp.mdb (this copies the existing database, compacts it then copies it back to the original location.
  • net start dhcpserver 
What is jetpack?

Utility to pack/defrag and run maintenance on dhcp.
Jetpack.exe is located in c:\windows\system32\




    Wednesday 9 June 2010

    Office 2007 Pro Plus (using VLK) on Terminal Server 2008 - freeze

    Installed Office 2007 Pro Plus on Terminal Server 2008 sometimes Excel will freeze on remote users and other times it will work for 2-3 weeks without a freeze.

    Investigation, findings and recommendations:
    Add winword, excel, etc to DEP

    DEP:
    • Click Start, click Run, type sysdm.cpl, and then click OK.
    • On the Advanced tab, under Performance, click Settings.
    • On the Data Execution Prevention tab,
    • Make sure The option "Turn on DEP for all programs and services except those I select" is selected
    • Example: Add: c:\Program Files (x86)\Microsoft Office\Office12\excel.exe
    • Add all exe files for Outlook, word and excel.

    Backup SQL Database to Disk

    http://msdn.microsoft.com/es-es/library/ms191304.aspx

    Thursday 3 June 2010

    Nagios and Cacti Integration

    Combine Nagios and Cacti

    Make sure you have Ubuntu's LAMP Server installed
    http://www.ubuntugeek.com/step-by-step-ubuntu-9-10-karmic-lamp-server-setup.html


    Reference: http://www.ubuntugeek.com/install-and-configure-cacti-monitoring-tool-in-ubuntu-810-intrepid-ibex-server.html

    Cacti - easy tutuorial http://openmaniak.com/cacti_tutorial.php

    Sudo apt-get install snmp
    Sudo apt-get install cacti
    Sudo apt-get install rrdtool


    connect to cacti to finish setup

    http://hostname/cacti/

    user login: admin/admin

    Integration
    http://theanswersquad.com/?p=212

    Cacti is up and running!!

    Runing Cacti on Ubuntu 9.10 Server on VirtualBox

    http://localhost/cacti/




    Tuesday 1 June 2010

    Ninja for Nagios

    https://wiki.op5.org/ninja:docs:quickstart-ubuntu

    Nagios backup & upgrade to latest version


    INSTALL ZIP & BACKUP Nagios

    Install zip
    sudo apt-get install zip

    Zip Nagios directory
    zip -r nagiosbackup.zip /usr/local/nagios/etc/

    Create backups directory
    mkdir backups

    Copy nagios.zip into backups directory
    cp nagios.zip /backups

    Verify the zip file is in the backups directory


    UPGRADE NAGIOS - Download, Extract, Install, Verify, Restart

    Download new nagios version
    wget http://sourceforge.net/projects/nagios/files/nagios-3.x/nagios-3.2.1/nagios-3.2.1.tar.gz/download


    Extract the tar ball

    tar xzf nagios-3.2.1.tar.gz
    cd /nagios-3.2.1/
    ./configure --with-command-group=nagcmd
    make all
    make install 
    Verify configurations
    /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
    Restart Nagios
    /etc/init.d/nagios restart