PTY allocation request failed on channel 0

Got this on your xen domU when trying to ssh?

There are 2 possible fixes (prolly even more, but ill show you 2 easy ones)

Fix 1: (Needs reboot)
apt-get install udev && reboot

Fix 2: (Needs no reboot)

Add to fstab:
none /dev/pts devpts defaults 0 0

Then do a couple of commands:
rm -rf /dev/ptmx
mknod /dev/ptmx c 5 2
chmod 666 /dev/ptmx
umount /dev/pts
rm -rf /dev/pts
mkdir /dev/pts
mount /dev/pts
/etc/init.d/ssh restart

World domination!

Tags: , , , , ,

Upgrade your Dell PowerEdge/whatever servers firmware with CentOS LiveCD

Yeah, Dell wont let you run their tools from any linux dist you want…It HAS to be a RHEL-like dist.
Yes, i know you could do something like this.
But if you dont feel frisky, and want to do it the right way….Start by downloading this CentOS 5.4 ISO:
http://mirror.hh.se/centos/5.4/isos/i386/CentOS-5.4-i386-LiveCD.iso

Burn it and boot up your server with F11, CDROM

When all is up and youve got net, do these deps:
yum install compat-libstdc++-33 procmail

Place you .BIN file from Dell on a ftp/http whatever..
Ex.
wget http://supereye.org/2950.BIN #The newest PowerEdge 2950 firmware

Finally ready for flashing:
chmod +x 2950.BIN && ./2950.BIN

Great success!

Tags: , , , , , ,

Nagios Operations Dashboard

We had an idea of putting up an operations monitoring screen in our workplace for more effecient discover alerts from nagios.
We found a php nagios dash app which parses status.dat (Nagios Dashboard – PHP)
We modified this to only show criticals/warnings, made a ajax interface for refreshing/showing the data, and modified the css a bit (Thanks Jonas!)

Here is the modified version:
dash.tar

To install just extract this on your nagios server and edit the $file in nagios_get.php to your status.dat file of your nagios :)

Here is a demo of the dash in real surroundings:

operations dashboard

Tags: , ,

Firefox 3.5 – making firefuck start in fullscreen mode

I want firefox to start in fullscreen mode.
This is apperantly not supported by default in firefox.

Install this plugin: http://www.krickelkrackel.de/autohide/autohide.xpi

Now you can launch firefox:
/usr/bin/firefox-3.5 -fullscreen

Tags: , , ,

Firefox 3.5 – making “Well, this is embarrasing” go away

The session handling in firefuck could be quite wearing sometimes.

This is how you disable this function:

about:config

Change these to false:

browser.sessionstore.resume_from_crash
browser.sessionstore.resume_session_once

Tags: , ,

Monitoring F5 BigIP TMM Utilization with Nagios and snmp

I came across a post on the Cacti-forums where a guy has posted a perl script for finding the F5 BigIP TMM Utilization via the commandline, so I modified it a bit, and now it works as a nagios-plugin.
I’ve also added performancedata to it, for usage with graphing tools like for instance pnp4nagios.

Here’s the complete modified script : check_tmm_utilization

Then you can simply add 4 lines to your commands.cfg file in Nagios.

define command{
command_name check_tmm_utilization
command_line $USER1$/check_tmm_utilization $HOSTADDRESS$ yoursnmpcommunitystring $ARG1$ $ARG2$
}

…and finally update services with something like :

define service{
use generic-service
host_name bigip-box
service_description CHECK_TMM_UTILIZATION
is_volatile 0
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_period 24x7
notification_options c,w,r
process_perf_data 1
check_command check_tmm_utilization!75!90
}

check config and restart

woohooo

Tags: , , , ,

Debugging Health Monitors on BigIP 9

We experienced that a lot of our health monitors didnt work on our BigIP boxes, and we sure as hell didnt see why.
After surfing a bit on the magical devcentral.f5.com, we found out that the BigIP only recieves the first 5120 bytes of a fetched result in a health monitor.

This is how to debug with curl:
curl -H 'Host: virtualhost.webserver1.com' -D - "webserver1.com80/index.html?q=bladdibla" | head -c 5120

Now you can ex. grep for a string to see if your healthcheck will do fine on a webserver (within the 5120 first bytes)

Tags: , , ,

Streaming DVB from Dreambox with mplayer

This is how you stream the dvbstream directly from your dreambox to your computer with mplayer:

mplayer -cache 16000 "$(wget -q -O - http://root:passwordhereplx@ipofdreambox/video.m3u)"

This is how it looks:
mplayer dreambox streaming

Now you dont have to sit in the livingroom to watch your programmes, while nerding :)

Tags: , , ,

Monitoring dell support contracts with Nagios

A friend pointed me to this site a few days ago. A nice little nagios plugin to alert you when your dell support contracts are about to run out.

http://ingvar.blog.linpro.no/2009/09/23/todays-sysadmin-tip-monitoring-dell-support-contracts/

Also check my comment to the post. You might want to add the following lines to the script :

if [ -z $days ]; then
echo “UNKNOWN: Could not retrieve info from support.dell.com.”
exit 3
fi

Tags: ,

Im a tty abuser

$ uptime
11:11:01 up 35 days, 2:17, 263 users, load average: 2.61, 2.68, 2.68

I dont want to close my terminals :X

Billl Gates arrested, where he belongs

NAMSAYIN?

http://www.youtube.com/v/3-lAeoVsz4U

Tags: , ,