› ravnx blog

ravnx blog
mostly tech stuff

check back now and then, maybe ill have an update


Background

I have a django app that shows host links to internal employees, wanted to grab status from Nagios without having to go to a bunch of trouble screen scraping. Found this quick script from Alex Wright, and modified it to work where I can call it from a Django function, then I just loop through my models and match the json object to the model.

Steps to deploy

Upload file: status2json.py below in github script link to your Nagios4 server. You can put this in your /usr/lib/cgi-bin/nagios4 directory and chmod +x status2json.py

Background

I’ve got a customer who has an MPLS network across several providers, tied together through my company’s network. These sites all tie back to my customer access router (CAR01) via point to hub links, coming in from major providers. All the customer’s sites are in their own VRF, with their own OSPF instance, which handles almost all the routing and local site LAN private routing.

The customer uses a “hosted firewall” company, which I’ll keep to myself, but they have issues getting them to work on stuff, so they asked us, could we bridge thier MPLS network over to Azure, through our “hub” instead of at one of the sites. Of course, sales tells them sure, we can do that! So I’m tasked with making it happen.

Decided to start blogging just the tech stuff, and less personal stuff, at least for now.

I’ve been blogging since the late 90s when geocities came along. I’ve used most of the popular blogging software over the years, but feel like maybe I should be blogging all my tech stuff. On my personal blog, it’s scattered with ranting, tech posts, life stuff, vacations, etc. I think maybe it needs to be seperated out. I’ve got around the neighbohood of 400 something posts on there, but over an almost 16 year period. It’s just a mess. I’m probably going to migrate some old posts for info. So if you see posts before this one that’s why.

« Older posts Newer posts »