Tagged: Programming

A collection of 9 posts
technology

Parsing Nagios4 status.dat to JSON

By Michael Palmer |  Aug 20, 2022  | #programming, #python, #django | 1 min read
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.
Continue Reading...
technology

Perl vs PHP5

By Michael Palmer |  Aug 20, 2004  | #perl, #programming | 1 min read
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.
Continue Reading...
technology

Gentoo PortageView

By Michael Palmer |  Sep 4, 2003  | #linux, #programming | 1 min read
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.
Continue Reading...