From: Flo G. <fl...@bi...> - 2004-10-13 23:18:40
|
Hi, Yes, i did some work to create a menu like the existing one in php. I expect a easier integration and cusomizing in nagios and if someone wants it: some themes (html/css). I use 2 libraries: smarty and adodb. smarty is a template engine. This separates logic and design in the sources. We can have software developers and html designers. The software devs change the .php files, the designers change the files under the templates dir. adodb is a database abstraction layer. We could use pear::DB too, i'm used to use adodb - thats all. The libs are included in the source: http://bier.kicks-ass.net/php-perfparse/php-perfparse.tar.gz Install: On default nagios/perfparse installations just unpack the file and move all files within the new created php-perfparse dir to /usr/local/nagios/share. You'll probably have to create a templates_c directory where smarty can create compiled templates. So templates_c should be writable by apache. What works: The first 2 menu-options work and the display of graphs works. All else is easy, but we have to do it one day :-) If there is a html-designer out there: look at the templates dir and hack the files within there. Just don't touch the things in curly braces {}. I hope we can start a collaboration here! I know jpgraph a very little bit. The problem we had with tikiwiki (a other project i work on) is the license of jpgraph. I think the C graph drawing has some advantages. But we'll probably have 2 alternatives in the future. We'll see. Flo On Tue, 12 Oct 2004, Ben Clewett wrote: > William, > > I have CC'd your email to Flo, who is also working on a PHP front end, as > well as the perfparse-developers new group, hope you don't mind. :) > > Williams, P. Lane wrote: > >> Thanks Ben, >> >> We are currently trying to build a PHP/JPGRAPH front-end for the perfparse >> database info. It is quite a bit of work, but I think in the end it will >> be >> worth it... Perfparse itself has saved a ton of programming time on my >> end....The CGI's, for me, are more eye-candy for management. If our CGI >> works out, I'll pass it along. > > I am glad you like it. Can you tell me more about your graph front end? > Possible (privately if you want) send me a URL of an installation? > > I also want to, if at all possible, avoid two PHP front ends! I wonder if > your self and Flo want to see whether there is any obvious areas of overlap > to which can be looked at. Possibly stating a new official PP project to > provide a PHP front end? > > All the best, > > Ben Clewett. > > > >> >> Lane >> >> -----Original Message----- >> From: Ben Clewett [mailto:Be...@cl...] Sent: Tuesday, October 12, >> 2004 5:41 AM >> To: Williams, P. Lane >> Cc: 'yme...@li...' >> Subject: Re: perfparse >> >> >> Hi Lane, >> >> There is currently no way of doing this. >> >> I have a design for building a collection of comparable metrics, which can >> and will be displayed together. But I have not had time to look at it >> recently. So it's in the plan, but not planned into the work yet, sorry. >> >> Ben >> >> Williams, P. Lane wrote: >> >> >>> Is there a way to get perfparse to display multiple points of data in a >>> single graph? My 'disk checks' contain 5 points of data. I would like >>> to know if there is a code change I can make to graph all five points in >>> one graph. >>> >>> Thanks.....Once again this is a great add-on for Nagios, >>> >>> Lane >>> >> >> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Perfparse-devel mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-devel > |