b5media

You are currently browsing the archive for the b5media category.

I’m sure I’ll have some fun later messing with the Zend Gdata classes in PHP, it looks to be great for interfacing with practically every google api except the one I wanted, webmaster tools. I could get authenticated to the webmaster tools scope using zend, and even pull a full sites feed for my account, but after that the included classes just aren’t built to handle the flavor of atom feed returned by the webmaster api.I couldn’t pull an individual site’s feed, and I couldn’t request a site verification, which was my primary goal.

After messing with it for probably too long, I decided to try a different approach. The gdata-python-client library is where I should’ve started all along. The out of the box sample apps for webmaster tools work flawlessly, and use the client auth type to hook you in to the api.

I did need to modify the code in version 1.2.3 of the library a tiny bit to make the VerifySite() function work, luckily it’s an easy fix.  Below is a snippet from src/gdata/webmastertools/__init__.py line 126. My changes are in red.

class VerificationMethod(atom.AtomBase):
_tag = ‘verification-method’
_namespace = GWEBMASTERTOOLS_NAMESPACE
_children = atom.Text._children.copy()
_attributes = atom.Text._attributes.copy()
_children['{%s}meta' % atom.ATOM_NAMESPACE] = (
‘meta’, VerificationMethodMeta)
_attributes['in-use'] = ‘in_use’
_attributes['type'] = ‘type’
def __init__(self, text=None, in_use=None, type=None, meta=None,
extension_elements=None, extension_attributes=None):
self.text = text
self.in_use = in_use
self.type = type
self.meta = meta
self.extension_elements = extension_elements or []
self.extension_attributes = extension_attributes or {}

And a snippet from src/gdata/webmastertools/service.py line 153. Again, the change is in red.

site_entry = webmastertools.SitesEntry(
atom_id=atom.Id(text=site_uri),
category=atom.Category(
scheme=’http://schemas.google.com/g/2005#kind’,
term=’http://schemas.google.com/webmasters/tools/2007#sites-info’),
verification_method=webmastertools.VerificationMethod(
type=verification_method, in_use=’true’)
)

Don’t forget to recompile the libs with a python ./setup.py install after making these changes, and you’ll be able to script all the site verifications you want. Next step is throwing together a set of scripts to allow for complete site management in webmaster tools, looks like Python’s gonna make it a snap!

Tags: , , , , , ,

Tags: , ,

So I didn’t get a lot of chance to blog during the whole affair, and the week after as we cleaned everything up. Was pretty strung out by the end :) However it feels great to be up and running smoothly in our new home, Serverbeach. There’s been a hiccup or two, but mostly painless.

The path is set now for our migration to wpMU, and I’m spending most of the admin portion of my day fleshing out cacti and nagios. Why oh why didn’t I make the leap to cacti from mrtg sooner? I think I’m falling in love with this product. Nagios lacks a certain flare, but it’s functional and dependable, and I’ve barely scratched the surface of what it’s capable of.

More to come!

Tags: , ,

So all our new b5media servers are about to be handed off to me so I can start work on turning them into a super fast, merciless thresher of incoming requests. Standing up  this sort of server arrangement is a first for me, since I inherited the one b5media uses now. This is at once daunting and highly exhilarating. 40 servers, where to start?

Well the first thing I know I want to do is secure the machines to a reasonable level. This means removing any unnecessary packages, making sure only required services are running on each of the servers. I’ve chosen to run Centos 5 on these machines, as I have the most experience in RedHat variants.

To that end, here’s a link to the Secure Centos project. It’s still a work in progress, and you’ll want to double check their suggestions and not follow blindly, but it’s a great place to start for ideas and methods for securing a new server in an unmanaged environment.

Well, off I go to survey my new domain, more to come!

Tags: , , , ,

What to do? I’ve been playing with the open source version of hyperic for a while now. While I still revert to MRTG for an immediate view of what’s going on with my key servers, I do like the hyperic interface. Unfortunately, their pricing structure doesn’t exactly scale very well, and you need the enterprise version if you plan on doing anything other than passive monitoring.

The b5media infrastructure upgrade will see us leaving a managed DC, and entering the world of DIY big time. Time to explore functional open source solutions. Nagios and OpenNMS are my front runners right now. I’ll be test driving Nagios over the next couple of days, see if it can fulfill all our requirements for hardware and service monitoring. OpenNMS looks to be more geared to >1 support staff, and may be the way to go a little bit further down the road.

Tags: , ,

The great b5media infrastructure upgrade is finally underway! This may be a good time for me to start doing some technical blogging, then again I may not get the chance. I expect to be working very long hours for the next little while, but it’s going to be fun and challenging experience, not to mention a long over due chance to put my own stamp on the b5media network. Since joining the team last October, I’ve endeavored to assimilate the differences between administering individual *NIX servers operating out of shoe closets in 300+ retail locations, to administering 300+ forward facing blogs in a network that’s at the forefront of what it does.

The change in environment has been both terrifying and exhilarating… the internet is a wild place compared to cell phone stores and pharmacies. Given my experiences at b5media to date, I’m very excited to be setting out on this next phase of growth. A chance to fix the mistakes and growing pains of the past, and define an infrastructure which will scale successfully as b5media continues to soar.

Tags: , , ,

So we shot a new b5 promo video for our profile on standout jobs today… it takes me 10 tries to arrive at a voicemail greeting I actually like, so I’m fully expecting my part in the video to be truly horrible. Luckily I’ll be editing it so it’s time to work my magic ;)

sooo tired

so tiredI’ve been working more or less without break since the start of work on Tuesday. I’m exhausted but my mind won’t shut off so here I am brushing the dust off my blog and finally making my first post! Still don’t know what it is I mean to do with this blog, but since I’m new to the whole social media crowd, I figured it’d be a good way to journal my discoveries in that arena, and provide vent space for anything I can dream up a category for. Right now I’m day-dreaming of electric sheep so I think that’s a good sign to go recharge and become human again.

Cheers,

Lee

Tags:

Get Adobe Flash playerPlugin by wpburn.com wordpress themes