Web access to radmind data (updated)


It's useful to be able to quickly view radmind data via a webpage. Kris Steinhoff has written a radmind management module for Webmin. This module allows one to perform many common radmind management tasks via a webpage. We wrote a standalone CGI that gives us read-only access to radmind data. (With the help of Chris Buskirk, I've added some files the CGI depends on and updated the script to fix the viewing of check-ins in domains other than .com - you should be able to get this up and running very easily on a Mac OS X radmind/web server)

In our organization, only a few people are authorized to edit radmind data, but it was useful to provide quick read-only access so that a tech could verify what applications a user had assigned to him or her in his/her command file. We also wanted code that could do some sanity checking for us - if a command file was referenced in the config file - did that command file actually exist? If a hostname was referenced in the config file, was that hostname actually in DNS? Did the transcripts referenced in a command file actually exist? This data helps any tech quickly determine the source of many radmind errors.

Our CGI allows the user to view the config file, command files, and transcripts. These are all hyperlinked, so if you are viewing the config file, you can click on a command filename to view it. When viewing a command file, you can click on a transcript to view its contents. Any item that doesn't exist is flagged in red and not clickable, so you know there is a problem.

Additionally, the CGI knows about the /var/radmind/client/updated directory that is managed by the radmindCheckin cgi we use to report successful radmind runs. It can display the last time any given machine successfully ran radmind, sorting by hostname, command file name , or date.

Without further ado, here are the files needed to implement the CGI on Mac OS X (I'd include the CGI in the text of this post, but iBlog insists on rendering the HTML that is embedded in the script) :

radmind cgi.zip

And some screen shots:

Main menu: (note an additional option that is not in the script provided here. It's an option to view our Makefile, which we use to build our command files from "base" command files.)



View Config file:




View command file list:




View transcript list. The script also looks to see how many command files reference each transcript. This way you can figure out which transcripts may no longer be needed:




Viewing an individual transcript:




Viewing the Check-in report. You can click any column heading to resort the list by hostname, command file name, or date.

Posted: Sat - May 22, 2004 at 11:41 PM      


©