CSV output out of availibility Reports
Sand Philipp
Philipp.Sand at sycor.de
Wed Apr 19 08:31:55 CEST 2006
Fyi,
we found the old patch for avail.cgi in nagios 1.2 and modified it, so it can be used with the Nagios-cvs released on Thursday 13.April 2006.
I attached the file and already asked Ethan, if he can apply it the the official avail.c.
Have fun with it!
Regards,
Philipp
> -----Ursprüngliche Nachricht-----
> Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] Im Auftrag von Sand Philipp
> Gesendet: Freitag, 7. April 2006 09:20
> An: nagios-users at lists.sourceforge.net
> Betreff: AW: [Nagios-users] RE: CSV output out of availibility Reports
>
> > >Hi there,
> > >
> > >I remember a patch fort he avail.cgi, with which, you could
> > >generate a cs= v output out of each avail.cgi report. I
> > >already did some research in this list and with google, but I
> > >can't fin= d the patch any more. Can anyone please give me a
> > >hint, where I can download this patch? Has anyone tested this
> > >patch with the new version of the avail.cgi in Nag= ios 2.1?
>
> > avail.cgi has _always_ done CSV output (as long as you choose
> > all hosts or all services).
> > It's up to you to filter the CSV by any means you care to choose.
> > If you want some help, try
> > - either putting all the CSV records in a DB and use SQL
> > (if you are serious about reporting you prob want to do this).
> > - Nagios::Report
> > (munges and filters the CSV from avail.cgi).
> I was aware, that you can do this csv output when selecting all services
> or all hosts. As wehave about 500 Hosts and 3000 Services, this is no
> option when you want to make a report for the last 90 days.
> As I said, there had been a patch for this, which I already applied to
> my old Nagios Installation, but I didn't save this patch, and don't know
> where I can download it.
>
> > >Question for Ethan: why isn't this patch integrated into the
> > >avail.cgi by= default? Is this planned for a future release?
> > Patches welcome.
> When this patch would have been applied to the avail.cgi, I wouldn't
> have the problem I got now ;)
>
> > BTW, there are bugs in avail.cgi relating to scheduled down time
> > that are probably more important than this.
> I know, I already had to fight with this Problem, but I think that this
> bug is fixed in 2.1.
>
> > >Thanks in advance!
> >
> > I probably didn't do your letter justice. It seems on reflection that
> > you meant you want the patch for avail.cgi that generates CSV from
> > a specific availability report eg a new link in the report for
> > a host or service that does CSV.
> > However, I think it has been made pretty clear from the Nag roadmap
> that
> > the CGIs have been end of lifed and will be replaced by PHP. I think
> > that
> > is a much better use of scare developer resources than trying
> > to fix difficult and fragile code.
> As I said obove, the patch had already been developed, so you don't need
> to sink hundrets of hours to apply it. I'm totally aware of the Nagios
> Roadmap. But I'm not expecting Nagios 3.0 to be released in the near
> future.
>
>
> >
> > As Radia Perlman said about sub-optimal routing, 'people should be
> > grateful
> > that their data is delivered at all'.
> Hmm, would be nice to see, when you tell this to your customers :-)
>
> Philipp
>
>
>
> **************************************************************************
> ******************************************************
> sycor plastics - die Branchenloesung fuer die Kunststoffindustrie
> www.sycor-plastics.de
>
> sycor plastics - the solution for the plastic industry
> www.sycor-plastics.com
>
> **************************************************************************
> ******************************************************
>
>
> Diese E-Mail ist vertraulich und kann darueber hinaus persoenliche
> Informationen beinhalten. Wenn Sie nicht der bestimmungsgemaesse
> Empfaenger sind, loeschen Sie bitte die E-Mail und deren Anhaenge sofort
> und benachrichtigen Sie uns darueber. Die Firma sycor willigt in keine
> Vertraege oder vertragliche Verpflichtungen ein oder uebermittelt
> rechtsverbindliche Angebote, die in Form von E-Mail versandt werden,
> sofern dies nicht ausdruecklich in schriftlicher Form zwischen den
> Parteien vereinbart wurde.
>
> This e-mail is confidential and may contain personal and/or privileged
> information. If you are not the intended recipient please delete this e-
> mail and all attachments immediately and inform us. The company sycor does
> not agree with contracts or contract obligations sent by e-mail, neither
> do we transmit legally binding offers by e-mail, unless this is not
> expressly agreed upon between the parties and documented in written form.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> _______________________________________________
> 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
********************************************************************************************************************************
sycor plastics - die Branchenloesung fuer die Kunststoffindustrie www.sycor-plastics.de
sycor plastics - the solution for the plastic industry www.sycor-plastics.com
********************************************************************************************************************************
Diese E-Mail ist vertraulich und kann darueber hinaus persoenliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemaesse Empfaenger sind, loeschen Sie bitte die E-Mail und deren Anhaenge sofort und benachrichtigen Sie uns darueber. Die Firma sycor willigt in keine Vertraege oder vertragliche Verpflichtungen ein oder uebermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdruecklich in schriftlicher Form zwischen den Parteien vereinbart wurde.
This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form.
********************************************************************************************************************************
sycor plastics - die Branchenloesung fuer die Kunststoffindustrie www.sycor-plastics.de
sycor plastics - the solution for the plastic industry www.sycor-plastics.com
********************************************************************************************************************************
Diese E-Mail ist vertraulich und kann darueber hinaus persoenliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemaesse Empfaenger sind, loeschen Sie bitte die E-Mail und deren Anhaenge sofort und benachrichtigen Sie uns darueber. Die Firma sycor willigt in keine Vertraege oder vertragliche Verpflichtungen ein oder uebermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdruecklich in schriftlicher Form zwischen den Parteien vereinbart wurde.
This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avail.c.patch_csv-output
Type: application/octet-stream
Size: 52413 bytes
Desc: avail.c.patch_csv-output
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060419/eec06d80/attachment.obj>
More information about the Users
mailing list