März 5th, 2010 von
Mario Rasser
Abstract
Confluence is a Enterprise Wiki from Atlassian, which is just awesome. It is supporting tons of free and commercial Plugins and Themes. It is perfect for documentation, document management and working in Teams.
We are using it since the middle of the last year starting with Version 3.0.2 running on Sun Glassfish V2 Application Server. The first Upgrade try to Confluence 3.1.1 failed caused by compatibility issues of Apache Xerces. Denny a colleague of mine figured out a way to solve that issue.
The Confluence setup it self is well described on the Atlassian Homepage, but as Atlassian is not officially supporting Sun Glassfish Application Server, this post will describe how to get Confluence running on Glassfish V2.
Preparing of the Confluence WAR
Download the Confluence WAR (in our case Confluence 3.1.2 from 3th March 2010) from the Atlassian Homepage, to the Linux Box you want to deploy the file on:
Download EAR/WAR and extract
cd /usr/local/src
wget http://www.atlassian.com/software/confluence/downloads/binary/confluence-3.1.2.tar.gz
tar xfzv confluence-3.1.2.tar.gz
Confluence needed changes
vi confluence-3.1.2/confluence/WEB-INF/classes/confluence-init.properties
and set confluence.home=/local/confluence to you Confluence Data Directory.
Afterwards create the data directory mkdir -p /local/confluence, you may need to change the owner and/or rights to the USER Glassifish is running as.
Finally build the new WAR, that will be deployed on the Glassfish Application Server:
/usr/local/src/confluence-3.1.2#sh build.sh
Changes in Glassfish
There are compatibility issues between the Apache Xerces library shipped with Glassfish and the one shipped with Confluence > 3.1.
To prevent the conflicts in the JAVA Classpath we need to rename the GLASSFISH_HOME/lib/webservices-rt.jar to GLASSFISH_HOME/lib/webservices-rt-v2u1-b09d.jar, than edit GLASSFISH_HOME/domains/*/config/domain.xml and replace the library name by the modified library file name and restart the domain and the node agents.
YEAH YEAH, all previously existing exception caused by the different Apache Xerces Libraries are gone
Den Rest des Eintrags lesen »
Geschrieben in Atlassian, Confluence, Glassfish, Hosting, Java |
4 Kommentare »
Juni 30th, 2009 von
Mario Rasser
We have a 3Ware 9550SX-8LP installed in a Linuxserver running Ubuntu Server. What I am going to describe is, how we monitor the Harddisk Temperature via Nagios and graphing it via NagiosGrapher. This HowTo can easily be modified for other 3Ware Controllers.

Temperaturegraph from a 3Ware 9550SX-8LP with NagiosGrapher
Installation and configuration of needed packages
-
#aptitude install smartmontools snmpd
- Copy the a wrapper script for smartmontools to /usr/local/bin/get_smart_value.sh, it will be used by SNMP later
#!/bin/bash
# Extract the Temperature Value from the SMART values gained by smartclt
# the value 194 contains the HDD Temperature
smartctl -a -d 3ware,${1} ${2} | grep ^194 | awk '{print $10}'
… and do a chmod +x /usr/local/bin/get_smart_value.sh
- Configure SNMPd to to run extend-Commands (/etc/snmp/snmpd.conf) and add at the end of the file:
...
extend 3Ware_1_Port0 '/usr/bin/sudo /usr/local/bin/get_smart_value.sh 0 /dev/twa0'
extend 3Ware_1_Port1 '/usr/bin/sudo /usr/local/bin/get_smart_value.sh 1 /dev/twa0'
extend 3Ware_1_Port2 '/usr/bin/sudo /usr/local/bin/get_smart_value.sh 2 /dev/twa0'
extend 3Ware_1_Port3 '/usr/bin/sudo /usr/local/bin/get_smart_value.sh 3 /dev/twa0'
extend 3Ware_1_Port4 '/usr/bin/sudo /usr/local/bin/get_smart_value.sh 4 /dev/twa0'
extend 3Ware_1_Port5 '/usr/bin/sudo /usr/local/bin/get_smart_value.sh 5 /dev/twa0'
#in our system just 6 HDDs are connected so we will return 0 for the non used
extend 3Ware_1_Port6 '/bin/echo 0'
extend 3Ware_1_Port7 '/bin/echo 0'
… and restart SNMPd with /etc/init.d/snmpd restart
-
and add the following line
snmp ALL = NOPASSWD: /usr/local/bin/get_smart_value.sh
… to allow snmp run the script as SuperUser, which is needed to get the S.M.A.R.T. values via smartctl
Den Rest des Eintrags lesen »
Geschrieben in Monitoring, Nagios, SNMP, Ubuntu |
1 Kommentar »
Mai 6th, 2009 von
Mario Rasser
We had problems within some keys like Arrow, Up, Down etc. in the Guest OS running on a Ubuntu 8.10 and 9.04 running VMWare Server 2.0. The keymapping between host and guest is broken. That could be fixed with the following entries in ~/.vmware/config (create the file if it is not existing). The file is located in the home of the user that runs ther VMWare Console, e.g. from the VMWare Infrastructure Web Access environment.
xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu
Den Rest des Eintrags lesen »
Geschrieben in Ubuntu, VMWare |
Keine Kommentare »
April 28th, 2009 von
Mario Rasser
How to install VMWare Tools on Ubuntu (tested on Ubunt 8.10 and 8.04 LTS) in a rush:
- Within your VMWare Infrastructure Client or WebGUI do a “Install VMWare Tools”
- VMWare will provide a ISO Image with the VMWare Tools to the Virtual Machine
- SSH to the Ubuntu Server you want the VMWare Tools be installed
- OPTIONAL but prefered:
sudo su -
aptitude update
aptitude full-upgrade
- do the following steps as root or prefix a
sudo:
aptitude install build-essential linux-headers-`uname -r`
mount /dev/cdrom
cd /media/cdrom0/
cp VMwareTools-2.0.0-122956.tar.gz /usr/src/
cd /usr/src/
tar xfzv VMwareTools-2.0.0-122956.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl
# answer the question via defaults
init 6
Geschrieben in Ubuntu, VMWare |
Keine Kommentare »
März 23rd, 2009 von
Mario Rasser
This article will explain some parts of monitoring a Cisco Catalyst 2970 switch via SNMP and Nagios. Together with NagiosGrapher it gets an powerful combination to have a longtime overview about that device and you can create nice graphics like that:

Prepare the switch for SNMP requests from a SNMP polling host (here 192.168.200.200) :
access-list 60 permit 192.168.200.200
snmp-server community yoursnmpcommunitystring RO 60
snmp-server location "near the backbone"
snmp-server contact "admin@myswitch.de"
Den Rest des Eintrags lesen »
Geschrieben in Cisco, Monitoring, Nagios, SNMP |
Keine Kommentare »