Creating Static HTML from a CGI
Marc Powell
marc at ena.com
Mon Aug 2 19:01:34 CEST 2004
----Original Message----
From: Marc Powell
Sent: Monday, August 02, 2004 11:31 AM
To: Wheeler, MG; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Creating Static HTML from a CGI
> ----Original Message----
> From: Wheeler, MG [mailto:MG at ev3.net]
> Sent: Monday, August 02, 2004 10:21 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Creating Static HTML from a CGI
>
> > I want to use Cron to run one of the CGI reports and have it save
> > to a static HTML page. It's our "Availability" report that I want
> > as a static so people can see it without needing a password etc and
> > since it's for the preceding week It doesn't need to be live.
>
> Create the availability you want to be static in Nagios. Find the
> complete url for the page (in I.E., right click on the availability
> report frame and select properties); for a services availability
> report using the default options it'll be something like:
>
>
http://your.nagios.host/cgi-bin/avail.cgi?show_log_entries=&service=all&
>
timeperiod=last7days&smon=8&sday=1&syear=2004&shour=0&smin=0&ssec=0&emon
>
=8&eday=2&eyear=2004&ehour=24&emin=0&esec=0&assumeinitialstates=yes&assu
> mestateretention=yes&initialassumedstate=0&backtrack=4
As a followup, depending on the page you're trying to generate, there
may be some dynamic information you'll want to modify as part of your
wget. In the above example, &smon=8&sday=1&syear=2004 and
&eday=2&eyear=2004 won't give you the report you expect if it's run
three weeks from now.
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
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