Been looking into GUI options for nagify lately. Thought I’d give Cocoa via PyObjC a try. Learned that using PyObjC is at least just as hard as learning Objective-C from scratch. Which I can’t because of the infamous once-you-know-python-you-don’t-want-anything-else-anymore syndrome. Also, there are memory issues and I ran into some obscure failure that I can’t even recall anymore.

So, after a quick look at the even more arcane options, I’m back with PyQt4. Took me a while to figure layouting in Qt Designer out, just to notice that I still can’t build a working distribution with py2app. I’m really looking forward to when everything will be 64bit and we don’t have this multilib/universal pile of crap anymore. Yuck.
My total whackjob of a solution right now is to mutilate a PyObjC-Cocoa Xcode template into running a Qt4 app. It’s not pretty and will probably break sometime in the future, but right now I just want to get some .app out there. Qt also gives me platform independence, which I like.
I’m currently working on having nagify save Nagios data into a local sqlite database so I can generate stats from it later. Those stats will then be used in a fullscreen view mode designed for large displays. At least that’s the plan.
I just released version 1.0 of nagify, a new Python library and utility for displaying notifications about Nagios alerts.
The original purpose was to display Growl notifications for Nagios alerts, but nagify is designed to be very flexible and can be expanded to output notifications in pretty much any way.
Please report any bugs to the issue tracker at github.
Update: 1.0.1 is out, now also available via the Python Package Index.
- I missed having an icon for Python files in TextMate, so I made one with a Python Logo on it:
You can add it to your TextMate by downloading this file and putting it unter Contents/Resources/File Icons/ within your TextMate.app folder (to open that folder in the Finder, go to Applications, right-click TextMate and choose “Show Package Contents”).
Then open the file Bindings.plist (located in the same folder where you put the .tiff) in your favorite text editor and add this anywhere directly after a “</array>”:<key>PBX-python-Icon</key> <array> <string>py</string> </array>
That’s it! Restart TextMate and you’re done.
If you’re looking for better folder icons, there’s a blog post for that, too.


