------=_Part_344_21686162.1139940724013
Content-Type: multipart/alternative;
boundary="----=_Part_345_11087145.1139940724013"
------=_Part_345_11087145.1139940724013
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Andreas and Everyone,
I am sorry about the mistake with the diff. That won't happen again.
I will keep in mind to keep the patches uncluttered in the future. This is
the first time I have been asked to send one out.
I have run ./configure in the main folders of both nagios's and am resendin=
g
the diff. After I cleaned it up of course. *S* In the cgiutils.h all I di=
d
was add the SORT_ALIAS. I realize this is not proper programming, I was
attempting to see if it would work before sending a message to the group. =
I
do not know C code, so I am fumbling through.
Again, I am sorry for the inconvience and will remember what you said.
Thank you.
Joseph
------=_Part_345_11087145.1139940724013
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Andreas and Everyone,I am sorry about the mistake with the diff.&nb=
sp; That won't happen again. I will keep in mind to keep the =
patches uncluttered in the future. This is the first time I have been=
asked to send one out. =20
I have run ./configure in the main folders of both nagios's and am =
resending the diff.
After I cleaned it up of course. *S* In the cgiutils.h all I did was =
add
the SORT_ALIAS. I realize this is not proper programming, I was
attempting to see if it would work before sending a message to the
group. I do not know C code, so I am fumbling through. =
Again, I am sorry for the inconvience and will remember what you said.Thank you.Joseph
------=_Part_345_11087145.1139940724013--
------=_Part_344_21686162.1139940724013
Content-Type: application/octet-stream; name=nagios-sort-alias.diff
Content-Transfer-Encoding: 7bit
X-Attachment-Id: f_ejoj7orz
Content-Disposition: attachment; filename="nagios-sort-alias.diff"
diff -urN nagios-2.0b6/cgi/status.c nagios-patched/cgi/status.c
--- nagios-2.0b6/cgi/status.c 2005-11-16 03:49:35.000000000 -0500
+++ nagios-patched/cgi/status.c 2006-02-14 09:48:15.000000000 -0500
@@ -161,7 +161,7 @@
int sort_type=SORT_NONE;
-int sort_option=SORT_HOSTNAME;
+int sort_option=SORT_ALIAS;
int problem_hosts_down=0;
int problem_hosts_unreachable=0;
@@ -1264,7 +1264,7 @@
if(use_sort==TRUE){
printf("Entries sorted by ");
- if(sort_option==SORT_HOSTNAME)
+ if(sort_option==SORT_ALIAS)
printf("host name");
else if(sort_option==SORT_SERVICENAME)
printf("service name");
@@ -1336,7 +1336,7 @@
printf("\n");
printf("\n");
- printf("Host ",temp_url,SORT_ASCENDING,SORT_HOSTNAME,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_HOSTNAME,url_images_path,DOWN_ARROW_ICON);
+ printf("Host ",temp_url,SORT_ASCENDING,SORT_ALIAS,url_images_path,UP_ARROW_ICON,temp_url,SORT_DESCENDING,SORT_ALIAS,url_images_path,DOWN_ARROW_ICON);
printf("Service <IM
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]