Page 1 of 1

RE: [Nagios-devel] mysql enabled - can't see data on web page (ne

Posted: Wed Mar 06, 2002 8:19 am
by Guest
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C1C52A.1E4BB1A0
Content-Type: text/plain;
charset="iso-8859-1"

I found my problem.

trends.cgi: service authorization info isn't being read correctly
config.cgi: minor printf bug

--
Tom Bertelson "Any sufficient advanced technlogy
GE Card Services is indistinguishable from magic."
tbertels@iname.com -- Arthur C. Clarke


------_=_NextPart_000_01C1C52A.1E4BB1A0
Content-Type: text/plain;
name="patch-aa.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="patch-aa.txt"

--- cgi/auth.c.Org Wed Mar 6 10:41:05 2002
+++ cgi/auth.c Wed Mar 6 10:50:38 2002
@@ -44,6 +44,7 @@
extern int serviceescalations_have_been_read;
extern int hostgroupescalations_have_been_read;
extern int hostescalations_have_been_read;
+extern int services_have_been_read;
=20
=20
=20
@@ -73,6 +74,8 @@
needed_options|=3DREAD_HOSTGROUPESCALATIONS;
if(hostescalations_have_been_read=3D=3DFALSE)
needed_options|=3DREAD_HOSTESCALATIONS;
+ if(services_have_been_read=3D=3DFALSE)
+ needed_options|=3DREAD_SERVICES;
if(needed_options)
read_all_object_configuration_data(main_config_file,needed_options);
=20
--- cgi/config.c.Org Mon Feb 25 23:03:29 2002
+++ cgi/config.c Wed Mar 6 08:04:54 2002
@@ -768,14 +768,14 @@
if(temp_contact->service_notification_period=3D=3DNULL)
printf(" ");
else
- printf("%s",bg_class,CONFIG_CGI,url_encode=
(temp_contact->service_notification_period),temp_contact->service_notifi=
cation_period);
+ printf("%s",CONFIG_CGI,url_encode(temp_con=
tact->service_notification_period),temp_contact->service_notification_pe=
riod);
printf("\n");
=20
printf("\n",bg_class);
if(temp_contact->host_notification_period=3D=3DNULL)
printf(" ");
else
- printf("%s",bg_class,CONFIG_CGI,url_encode=
(temp_contact->host_notification_period),temp_contact->host_notification=
_period);
+ printf("%s",CONFIG_CGI,url_encode(temp_con=
tact->host_notification_period),temp_contact->host_notification_period);=

printf("\n");
=20
printf("",bg_class);

------_=_NextPart_000_01C1C52A.1E4BB1A0--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: Tom.Bertelson@gecapital.com