Archive | April, 2004

Nagios – NRPE

20 Apr

An NRPE plugin script to monitor any process.
(I couldn’t find the one that did this – i’m pretty sure it must exist tho!)
Continue reading


Webmail Check

16 Apr

Script to check webmail tunnel is always up:

Put an entry into /etc/inittab like:
st:2345:respawn:/usr/bin/ssh -n -C -x -R 2501:localhost:443 -o ‘GatewayPorts yes’ sleep 5000

Then have the script attached running in crontab every minute to monitor it the tunnel.
Continue reading

CUPS Printing

12 Apr

Had to install CUPS – download PPD file for the correct printer.
Use the http://localhost:631 configuration tool.

For samba sharing, i needed to add the following to smb.conf (notice the print command – i needed to ensure it would print it raw. Also note the ‘use client driver = yes’ – without this i was getting ‘unable to access’ errors on the Windows XP client).

# if you want to automatically load your printer list rather
# than setting them up individually then you’ll need this
printcap name = /etc/printcap
load printers = yes

comment = All Printers
path = /var/spool/samba
browseable = yes
public = yes
# Set public = yes to allow user ‘guest account’ to print
guest ok = yes
writable = no
printable = yes
use client driver = yes
print command = /usr/bin/lpr -r -P’%p’ -oraw %s

Protected: Pro Tools

12 Apr

This content is password protected. To view it please enter your password below:


7 Apr

– you HAVE to check the test images in the install pages.
– if some text isn’t being made on the images correctly (e.g. ‘Hello World’) – change the value of $TYPO3_CONF_VARS[“GFX”][“im_imvMaskState”] in ‘typo3conf/localconf.php’.


2 Apr

Delete all lines containing a certain pattern:


2 Apr

Had a problem running custom application (‘GLASOPAC’) on an IIS server.

It gave errors like ‘Access is denied’ – this was traced to an Object instantiation in an ASP file (actually the global.asa file).

The page was trying to create an Object from a DCOM class, but the DCOM class wasn’t given a proper ‘identity’ to run as (i.e. a user).

This was fixed by going into: Start->Control Panel->Administrative Tools->Component Services and finding the GLASOPAC component. Then clicking the ‘Identity’ tab and setting it to an Admin user.