Parsing Nagios4 status.dat to JSON

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 ...

August 20, 2022 · 1 min · 178 words · Michael Palmer

Kamailio - Changing the From URI for Level3

URI weirdness with Level3

April 10, 2012 · 1 min · 130 words · Michael Palmer

Trixbox Polycom Directory of all extensions for IP650

Generating an XML directory for a Polycom 650 phone.

September 27, 2011 · 2 min · 393 words · Michael Palmer

cURL issue with backwpup for Wordpress

Backup issues with backwpup and curl due to SSL Verification.

August 18, 2011 · 1 min · 67 words · Michael Palmer

Perl vs PHP5 Part II / Blogging

Made myself look like an idiot in front of a Perl audience.

August 20, 2004 · 1 min · 77 words · Michael Palmer

Perl vs PHP5

Edit: Sorry brian d foy. See comments. brian d foy writes in this article, O’Reilly Network: Perl versus PHP 5, that he’s seen a lot of complaints about how hard it is to install modules in Perl. Now either he doesn’t use Perl, or maybe he just doesn’t know. perl -MCPAN -e ‘install Module::Name' That’s it. PHP doesn’t have a vast module network. I don’t hate PHP, but sooo many security issues, im ALWAYS upgrading mod_php. Perl is my language of choice. I’ve used python/php/tcl and I always come back to Perl. ...

August 20, 2004 · 1 min · 92 words · Michael Palmer

Finished LConMan

Linux Connection Manager

May 27, 2004 · 1 min · 75 words · Michael Palmer

Gentoo PortageView

Been working on a side project. It’s finished pretty much. PortageView. Its sorta a searchable database of portage. Works nice. and its Fast. Saw Type-O Negative in concert last night. It was a great concert, except the club it was at had a lot of audio problems and Peter was getting pissed off. But what can you expect from a 25 year old club that has no working A/C.

September 4, 2003 · 1 min · 69 words · Michael Palmer

Texas Lotto Numbers

Generating Texas Lotto numbers from your own randomness.

July 30, 2003 · 1 min · 112 words · Michael Palmer