Archive for the ‘Tech Problems’ Category

iPhone 3G and Linksys WAG54G v3 incompatibility

Saturday, July 12th, 2008

For some reason the iPhone 3G will not connect to this wireless router. There has been talk that this is fixed in the latest firmware but as of writing this it is not fixed in the latest AU/NZ firmware (1.00.23).

I found a temporary solution for the problem though. If you limit your router to 802.11B only then the iPhone will connect without a problem. As soon as it’s changed to mixed network or 802.11G only then it will fail to connect.

Update: I’ve found that the AU firmware from the AU linksys site works fine on the NZ WAG54Gv3. I’m using 1.00.46 and the iPhone 3G now connects under 802.11G without a problem.

Monitoring Apache with LARRD and Big Brother

Friday, May 25th, 2007

I managed to figure out how to monitor Apache with Big Brother and LARRD. As it's not very well documented I thought I'd share it with everyone.

First set your apache server to display status in the apache httpd.conf:

CODE:
  1. <Location /server-status>
  2. SetHandler server-status
  3. Order deny,allow
  4. Deny from all
  5. Allow from 127.0.0.1
  6. </Location>
  7.  
  8. ExtendedStatus On

Setting extended status to On does slow down the server a little bit, but it's usually not noticeable. Remember to limit access to the status page to just the IP where your Big Brother server is monitoring from.

Add apache to @DATALIST in larrd-config.pl

Then in your apache-larrd.pl (under the larrd directory) you'll need to hardcode the servers you want to monitor.

CODE:
  1. %host_h = (
  2. 'server01' => {
  3. port => "80",
  4. url  => "http://www.yoursite.com/server-status?auto",
  5. }
  6. );

The first part of the host_h array is to identify which server to attach the RRD file with. In this instance I'm monitoring a server called server01 and the website I have setup with the server-status page is http://www.youresite.com/server-status?auto. If your host is a FQDN (fully qualified domain name) then you can omit the full url and just have /server-status?auto and Big Brother will work out the URL.

With any luck you'll have 4 new graphs on your trends/LARRD page.

MySQL and Redhat Enterprise Linux 4

Friday, December 1st, 2006

I ran into some problems with MySQL on RHEL 4 when SELinux was enabled. When starting MySQL it would come up with this:

Starting MySQL...................................[FAILED]

And the following in /var/log/messages:

CODE:
  1. Dec  1 14:02:52 searchdev kernel: audit(1164934972.432:5): avc:  denied  { append } for  pid=3071 comm="mysqld" name="searchdev.err" dev=sda6 ino=1687755 scontext=root:system_r:mysqld_t tcontext=root:object_r:var_lib_t tclass=file

All fixed though thanks to this page: http://bugs.mysql.com/bug.php?id=12676