nagios to mrtg
Jun Li
jun at lifecapturemedia.com
Thu Oct 20 21:54:25 CEST 2005
HI John,
although i solve the problem by modify extinfo.c directly, i am still
interested in how to write server scripts to dynamic pass data to
header/footer .ssi files. where can i find the patch and the way it works?
Thank you again for your great help,
JUn
On Thursday 20 October 2005 01:54 pm, John P. Rouillard wrote:
> In message <200510201106.28363.jun at lifecapturemedia.com>,
>
> Jun Li writes:
> >Now I am still thinking a better way to solving my problem. Adding
> >header/footer just generate a steadic page.
>
> No it doesn't with the patch. The patch makes the header and footer
> into CGI scripts and it can be as dynamic as you want.
>
> >Do you have any way that allows
> >me to modify the existed cgi, so that when I click my mrtg service status,
> > it will direct it to my mrtg/myhost.html. Because nagios is a open source
> > program, i do believe it allows user to modify it's code.
>
> Just write the header/footer scripts and use the nagios CGI variables
> passed in to determine what page to go to in MRTG.
>
> >On Wednesday 19 October 2005 06:16 pm, John P. Rouillard wrote:
> >> In message <200510191750.44182.jun at lifecapturemedia.com>,
> >>
> >> Jun Li writes:
> >> >Anyone can let me know how to put some link in the main frame not the
> >> > sid
> >
> >e
> >
> >> >bar,for example in service detail main frame in my nagios web site to
> >> > lin
> >
> >k
> >
> >> >to ../www/html/mrtg/myhost.html, so, for example, people can see the
> >> > charts as well as can check mrtg log.
> >>
> >> Look in the documentation for custom headers and footer. If my patch
> >> of a year ago has been applied, you will see something like:
> >>
> >> It is important to note that, unless the custom header and footer
> >> files are executable, they are not processed in any way before they
> >> are displayed. The contents of the header and footer include files
> >> are simply read and displayed in the CGI output. That means they can
> >> only contain information a web browser can understand (HTML,
> >> JavaScript, etc.).
> >>
> >> The above is from the nagios 2 documentation that includes the patch.
> >> If that isn't in the documentation you are using, you can try to find
> >> the patch and apply it.
> >>
> >> The executable header/footer is basically a CGI that can emit HTML and
> >> add whatever menu items you wish.
>
> -- rouilj
> John Rouillard
> ===========================================================================
> My employers don't acknowledge my existence much less my opinions.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list