Category: Programming

A collection of 7 posts
programming

Parsing Nagios4 status.dat to JSON

By Michael Palmer |  Aug 20, 2022  | programming, python, django
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...
perl, programming

Perl vs PHP5

By Michael Palmer |  Aug 20, 2004  | perl, programming
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...
linux, programming

Gentoo PortageView

By Michael Palmer |  Sep 4, 2003  | linux, programming
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...
programming

Livejournal Sux

By Michael Palmer |  Jun 25, 2003  | web-programming
Biggest mistake I ever did was install a livejournal server. This software is VERY unmanageable. I want to be able to delete all these damn duplicate users, I also want reports of how many entries users have made and how long its been since they’ve logged in. Unfortunately there is nothing for this. All I have to work with is the damn admin console. I can’t even list users with that.
Continue Reading...