Steve's Blog

SNMP and PPPoE connections

For a while now I’ve been having to restart snmpd on my linux based router running CentOS whenever my PPPoE connection to my ADSL provider went down. This is because the interface disappeared, snmpd cracked it and returned 0 for all snmp queries until it was restarted. This becomes a royal pain when monitoring connection throughput with things like cacti or mrtg.

After getting sick of this the other day, I actually found a solution!

The file /etc/ppp/ip-up.local is run every time a PPP connection is established! This means I can restart snmpd from within this file and have it done automatically - forever!

All that is required is that /etc/ppp/ip-up.local contains:

1
2
#!/bin/bash
/etc/init.d/snmpd restart

You could also use the same file to call scripts to update dynamic DNS providers like homeip.net etc as well!

CPL Exams over!

After nearly a year of self study, my Commercial Pilot License exams have finally been completed. 3 weeks short of a year, I can proudly say that I managed to get the following scores:

Subject Grade
Aerodynamics 78%
Air Law 95%
Flight Planning & Performance 92%
Human Factors 90%
Meteorology 93%
Navigation 80%
Aircraft General Knowledge & Systems 83%

This means my training now turns to flying, flying and more flying. Lets hope for a lot of time with very few SIGMETs in the coming weeks :)

DeviceUpdate v2.1.2.0 Beta Available

Premium Account holders can now access a new beta version of DeviceUpdate. Changes include:

Version 2.1.2.0 - 13 June 2009

  • Added detection of screen size as a backup to known device IDs.
  • Changed logic for getting Device Model to hopefully be more precice with less variation.

    What this now means is that we should VERY rarely show the well known “Unsupported Device” message to people as we now use the following methods:

    1. Look for a known hardware ID to get the type of device.
    2. If method #1 fails, we get the screen size and show a list of applications for that screen size.
    3. If both #1 and #2 fails, panic ;)

    You can get the new beta version here.

    Oh, and DeviceUpdate has now served over 530,000 applications in over 260,000 sessions!

  • Release 13.4 of Dopod 838 Pro ROM released.

    Release 13.4 is now available of my replacement ROMs for Dopod 838 Pro and compatibly phones. Changes include:

    • Fully integrated DeviceUpdate and DU’s AutoInstall feature into the ROM.
    • Removed package ‘protection’ to allow other chefs to pull apart my ROMs for their own purposes.
    • Removed ClearVue PDF Viewer from normal build due to problems with some PDFs. Install Adobe PDF reader via DeviceUpdate if you need a PDF reader.

    As always, it’s available for download here.