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 »