CSV output out of availibility Reports

Eirik Robertstad erobertstad at perimeterusa.com
Thu Aug 10 16:59:51 CEST 2006


Has anyone been able to get this working?  I've tried to patch the 2.2
version and the 2.4 version with no luck:

Same error for 2.2 and 2.4 version:

Hunk #2 succeeded at 3434 (offset 13 lines).
Hunk #4 succeeded at 3873 (offset 13 lines).
Hunk #6 succeeded at 3937 (offset 13 lines).
Hunk #8 FAILED at 3984.
Hunk #9 succeeded at 4475 (offset 15 lines).
1 out of 10 hunks FAILED -- saving rejects to file avail.c.rej

I've attached the avail.c.rej file.

Regards,
Eirik

Sand Philipp wrote:
> 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.
>
>   





--
The sender of this email subscribes to Perimeter Internetworking's email
anti-virus service. This email has been scanned for malicious code and is
believed to be virus free. For more information on email security please visit:
http://www.perimeterusa.com/malicious_code_defense_content.html

This communication is confidential, intended only for the named recipient(s)
above and may contain trade secrets or other information that is exempt from
disclosure under applicable law. Any use, dissemination, distribution or
copying of this communication by anyone other than the named recipient(s) is
strictly prohibited. If you have received this communication in error, please
delete the email and immediately notify our Command Center at 203-541-3444.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: avail.c.rej
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060810/2d76cafc/attachment.ksh>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
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