[Nagios-devel] Patch for status.c

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Patch for status.c

Post 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_01C285B4.F0A5F250
Content-Type: text/plain; charset="iso-8859-1"

Hi!

I've made a small change to status.c to provide little popups so that a
status web page will show the alias of the hostname. This is useful in our
environment as we have two names for every server (not my decision!).
>

Ton


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.


------_=_NextPart_000_01C285B4.F0A5F250
Content-Type: application/octet-stream;
name="status.c.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="status.c.patch"

*** status.c.orig Wed Nov 6 15:08:23 2002=0A=
--- status.c Wed Nov 6 15:55:33 2002=0A=
***************=0A=
*** 1356,1362 ****=0A=
printf("\n");=0A=
printf("\n");=0A=
printf("\n");=0A=
! printf("%s\n",host_status_bg_class,EXTI=
NFO_CGI,DISPLAY_HOST_INFO,url_encode(temp_status->host_name),temp_status=
->host_name);=0A=
printf("\n");=0A=
printf("\n");=0A=
printf("\n");=0A=
--- 1356,1362 ----=0A=
printf("\n");=0A=
printf("\n");=0A=
printf("\n");=0A=
! printf("%s\n",host_status_bg_class,EXTINFO_CGI,DISPLAY_HOS=
T_INFO,url_encode(temp_status->host_name),temp_host->alias,temp_status->=
host_name);=0A=
printf("\n");=0A=
printf("\n");=0A=
printf("\n");=0A=
***************=0A=
*** 1693,1699 ****=0A=
=0A=
user_has_seen_something=3DTRUE;=0A=
=0A=
! /* see if we should display services for hosts with tis type of =
status */=0A=
if(!(host_status_types & temp_status->status))=0A=
continue;=0A=
=0A=
--- 1693,1699 ----=0A=
=0A=
user_has_seen_something=3DTRUE;=0A=
=0A=
! /* see if we should display services for hosts with this type of =
status */=0A=
if(!(host_status_types & temp_status->status))=0A=
continue;=0A=
=0A=
***************=0A=
*** 1776,1782 ****=0A=
printf("\n");=0A=
printf("\n");=0A=
printf("\n");=0A=
! printf("%s \n",status_class,EXTINF=
O_CGI,DISPLAY_HOST_INFO,url_encode(temp_status->host_name),temp_status->=
host_name);=0A=
printf("\n");=0A=
printf("\n");=0A=
printf("\n");=0A=
--- 1776,1782 ----=0A=
printf("\n");=0A=
printf("\n");=0A=
printf("\n");=0A=
! printf("%s \n",status_class,EXTINFO_CGI,DISPLAY_HOST_=
INFO,url_encode(temp_status->host_name),temp_host->alias,temp_status->ho=
st_name);=0A=
printf("\n");=0A=
printf("\n");=0A=
printf("\n");=0A=
***************=0A=
*** 2085,2090 ****=0A=
--- 2085,2091 ----=0A=
char status[MAX_INPUT_BUFFER];=0A=
char *status_bg_class=3D"";=0A=
char *status_class=3D"";=0A=
+ host *temp_host;=0A=
hostextinfo *temp_hostextinfo;=0A=
=0A=
if(hststatus->status=3D=3DHOST_PENDING){=0

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: Ton.Voon@egg.com
Locked