CSV output out of availibility Reports (Nagios patch bug)

Eirik Robertstad erobertstad at perimeterusa.com
Tue Jun 6 15:54:24 CEST 2006


There is a patch posted at
http://www.nagiosexchange.org/AddOn_Projects.22.0.html?&tx_netnagext_pi1[p_view]=549

I can't for the life of me get this to apply.  I thought it was because
I'm using the 2.4, but I even tried to apply it to the 2.2 version with
the same problem.  Here is the output I see when trying to patch:

patch -p0 < ~/avail.c.patch
patching file avail.c
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

And of course during the compile it fails:

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o avail.cgi avail.c getcgi.o
cgiutils.o cgiauth.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o
avail.c:3737: error: conflicting types for 'printPageHeader'
avail.c:3437: error: previous implicit declaration of 'printPageHeader'
was here
avail.c: In function `display_specific_servicegroup_availability':
avail.c:4007: error: `percent_time_ok' undeclared (first use in this
function)
avail.c:4007: error: (Each undeclared identifier is reported only once
avail.c:4007: error: for each function it appears in.)
avail.c:4008: error: `percent_time_warning' undeclared (first use in
this function)
avail.c:4009: error: `percent_time_unknown' undeclared (first use in
this function)
avail.c:4010: error: `percent_time_critical' undeclared (first use in
this function)
avail.c:4011: error: `percent_time_indeterminate' undeclared (first use
in this function)
avail.c:4012: error: `percent_time_ok_known' undeclared (first use in
this function)
avail.c:4013: error: `percent_time_warning_known' undeclared (first use
in this function)
avail.c:4014: error: `percent_time_unknown_known' undeclared (first use
in this function)
avail.c:4015: error: `percent_time_critical_known' undeclared (first use
in this function)
avail.c:4031: error: `odd' undeclared (first use in this function)
avail.c:4033: error: `bgclass' undeclared (first use in this function)
avail.c:4050: error: `average_percent_time_ok' undeclared (first use in
this function)
avail.c:4051: error: `average_percent_time_ok_known' undeclared (first
use in this function)
avail.c:4052: error: `average_percent_time_unknown' undeclared (first
use in this function)
avail.c:4053: error: `average_percent_time_unknown_known' undeclared
(first use in this function)
avail.c:4054: error: `average_percent_time_warning' undeclared (first
use in this function)
avail.c:4055: error: `average_percent_time_warning_known' undeclared
(first use in this function)
avail.c:4056: error: `average_percent_time_critical' undeclared (first
use in this function)
avail.c:4057: error: `average_percent_time_critical_known' undeclared
(first use in this function)
avail.c:4058: error: `average_percent_time_indeterminate' undeclared
(first use in this function)
make[1]: *** [avail.cgi] Error 1
make[1]: Leaving directory `/root/nagios-2.2/cgi'

Regards,
Eirik




--
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.




More information about the Developers mailing list