Hi Matt, Sounds like quite a task you've gotten there! Can I take it that fun is with a capital F? ;-)
The template engine isn't really an engine at all, but simply a mixture of placeholders and a bunch of str_replace()'s! It is hideous I know, but v2 will have it's own templating engine (currently being developed and refined in other projects.) I can tell you now that version 2 *may* make this sort of job easier, as it will have a pluggable architecture that splits out the application into separate logical "layers" - in similar fashion to n-tier applications - e.g. NLG will take care of grabbing the data and authentication etc, while allowing other users and developers to tack a "view" on top of this layer. In this sense you should theoretically be able to do virtually anything with the data - from creating a whole new template to showing the last-known status as an RSS feed (something which will be part of the standard distribution.) If you want to contact me privately (remove the -lists from this e-mail address) and let me know what you're trying to do with v1 now and I'll certainly try to help, as v2 is still a good way off yet. Unfortunately I have no experience of Joomla. I'd need to know more about how it authenticates (e.g. using standard HTTP authentication or whatever) and if there is a public variable available in PHP that gives the Joomla username (in similar fashion to $_SERVER['PHP_AUTH_USER'] etc.) Regards, Andy Matthew Macdonald-Wallace wrote: > On Wed, 25 Jun 2008 00:39:36 +0100 > Andy Shellam <[EMAIL PROTECTED]> wrote: > > >> There is no current way to exclude hosts that are in scheduled >> downtime or have been acknowledged; this is on the cards for version >> 2. >> > > Sorry to hijack the thread, but can I put in a feature request for > version 2? :o) > > I'm not sure if this can be done or not at the moment, however I am > trying to integrate NLG into Joomla (it's fun, really, it is...) and > one of the things I want to be able to do is authenticate against > Nagios using the Joomla Usernames so that the currently logged on user > only sees their own servers. > > If it can be done, can you tell me how? If it can't, please can it be > added as a feature request? > > Secondly, which templating engine are you using? I've tried to rewrite > the templates so it does only shows the server names on the first page > but still allows the user to drill down through the services on that > host but I'm not having much luck - if you can help me in any way, that > would be great! > > Thanks in advance, > > Matt > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null