Category Archives: Computing

WordPress Advanced Course

I have just attended Mike Little’s?advanced??Wordpress course which was organised by MAD Lab. I have been using WordPress for many years and am quite confident in using the framework. This course was just what I needed to re-inspire me to do more “web-work”.

I would recomend anyone with an existing interest in WordPress or a need to create a manageable website to keep an eye out for Mikes courses.

Quick nagios host config generator

Here is a quick script I have cobbled to generate nagios host configs it may need to be changed for template etc but you get the gist.

It includes support for padding of hostname numbers e.g. padding of 3 = web001, web002….web045…web999.

# Nagios host config generater.
# Bruce Tonge
#If you need to gen a config for a large number of sequentialy numbered hosts
#just run: web 1 50 3
#This will create host entries for machines 1-50 but named web001 - web050
#The output should be redirected to a file.

if [ “$#” -lt “4” ]
echo “usage: $0 <hostprefix> <fqdn> <first node number> <last node number> <host number padding>”
exit 0

host_str=$1 #host prefix
fqdn_str=$2 #domain name
fnode_num=$3 #first node number
lnode_num=$4 #last node number
pad_num=$5 #charicters to pad

for hostnum in `seq -f”%0$5g” $3 $4`;
printf “#Host Entry for Node $shorthostname.\n”
printf “define host{\n”
printf “\tuse\tbasic-host\n”
printf “\thost_name\t$shorthostname\n”
printf “\talias\t$shorthostname\n”
printf “\taddress\t$longhostname\n”
printf “\t}\n”
printf “\n”;
exit 0

PSN more detail please…

On reading through the FAQ of the PSN “outage” it seems that Sony are trying to skirt the difficult questions. Mainly well for me anyway over the disclosure of the incident . Question 12 demon straits there intersessions I fear:

Q.12?????How serious is this???Have the hackers broken the? security on PSN/Qriocity???Are you taking necessary measures to prevent such outage happening in the future?

Since this is an overall security related issue, we will not comment further on this case but we are working to restore and maintain the services, including countermeasures against future intrusions.

This would lead me to believe that Sony doesn’t intend to outline the failing of the system and what they have done to put this right.

I have posted a question to Sony about this as well as asking for detail of the format of my password as stored on there system (ether hashed or plan). If I get an answer I will post it here.

I have herd rumours but that is all they are that the CVT codes for credit cards might have got out as well. These should never have been stored and so I am sceptical but will post more as I find out.