Thursday, December 22, 2005
Network UPS Tools && Netware
We have a 15KVA MGE Comet S11
providing redundant power to our data centre. Being a big opensource shop
and seeing as MGE support its
development, the Network UPS
Tools project is a natural choice of UPS monitoring software for us.
NUT solves almost all of our UPS problems.
It allows us to monitor the UPS (via its U-Talk serial interface) from a
single machine and control the shutdown of our entire data centre during a
power outage. It has clients for all the
*nix varieties we use (FreeBSD, Linux, Solaris) and there's a Windows client
that lets us shut down Bill's pesky boxes too.
For a long time the thorn in our side has been the three Netware boxes we run. As
there's no NUT client for NetWare, we've had no clean way to shut them down
during a power failure, so they've typically just crashed. This is far from
ideal :(
I was giving this problem some thought again today when I came up with an
interesting realisation. Given that Netware 6.5 ships with a
Perl interpreter, and given the open
nature of NUT's
network protocol, it shouldn't be difficult to hack together a simple,
and perhaps somewhat inefficient, NetWare equivalent of upsmon. A little
bit of extra thought makes one realise that this is true of any platform
that supports Perl.
So I got coding. The result is a very simple Perl program that implements
the minimal functionality of upsmon. That is, it understands that there's
one UPS, and that when it runs out of battery, we should shut down cleanly
before it cuts power. The idea is that it forms a long running Perl process
on your NetWare box and executes a DOWN command when the UPS sends a low
battery indicator. For (pseudo)completeness it also uses the SEND command
to warn users when power fails. You could of course change the commands for
any other Perl platform.
It's not great, and it's not very well tested. It is, however, available to anyone
who's in a similar position and wants to hack around with it. The only
condition is that if you improve it, you let me know — I'd like to
eventually run something like this on our three production boxes.
YMMV and all that.
posted by guy at: 20:28 SAST |
path: /systems |
permanent link
Sunday, May 22, 2005
Novell BrainShare 2005
For the first time this year, I had an opportunity to attend Novell BrainShare Africa in
Jo'burg. I must admit to being a little sceptical before I came up as I'm
not a traditional Novell person — I've been forced into using Novell
by way of a job rather than by choice. That said, we'd all been to a talk
in PE earlier in the year where we were introduced to Novell Linux Desktop and I was
impressed by the open-source tack Novell seemed to have taken.
See more ...
posted by guy at: 09:20 SAST |
path: /general |
permanent link
Tuesday, March 22, 2005
Nothing To Report
So I went away for a long weekend, and for the first time in as
long as I can remember, Big Brother
didn't page me once. Not a single peep. It was great.
In all fairness, our copy of Big
Brother currently monitors over 920 services on 282 different
hosts, many of which aren't controlled by the IT Division or, in some cases,
even at Rhodes. It is sort of
expected that at any one time at least one of these services will
be broken. Which is why it was kind of strange and nice that I got
a weekend of peace and quiet. I must be doing something right ...
or horribly wrong. :)
posted by guy at: 11:51 SAST |
path: /systems |
permanent link
