Re: [Nagios-devel] Question,

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

Re: [Nagios-devel] Question,

Post by Guest »

This is a multi-part message in MIME format.
--------------080005020409040009070801
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

On 11/05/2010 06:42 PM, Jochen Bern wrote:
> On 11/05/2010 04:46 PM, Andreas Ericsson wrote:
>> I'd prefer if you write them against git at git://git.op5.org/nagios.g=
it
>> (which I keep up to date with my tree) and then email patches with
>> git-send-email, Cc'ing me and To'ing this list.

3/3

What: In hosts' and services' extinfo pages, add hyperlinks to the
Command Expansions of check_command and event_handler
Why: Put debugging info at users' fingertips when investigating
(the output of) malfunctioning checks/handlers
--=20
Jochen Bern, Systemingenieur --- LINworks GmbH
Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
PGP (1024D/4096g) FP =3D D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C2=
7
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Gesch=E4ftsf=FChrer Metin Dogan, Oliver Mic=
hel

--------------080005020409040009070801
Content-Type: text/plain;
name="nagios-3.2.3-CommandExpandLink01-patch.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="nagios-3.2.3-CommandExpandLink01-patch.txt"

diff -aur nagios-3.2.3-CVS-20101105/cgi/extinfo.c nagios-3.2.3+Fixes/cgi/extinfo.c
--- nagios-3.2.3-CVS-20101105/cgi/extinfo.c 2010-11-05 00:42:18.000000000 +0100
+++ nagios-3.2.3+Fixes/cgi/extinfo.c 2010-11-05 14:32:29.000000000 +0100
@@ -1092,7 +1092,10 @@
get_time_string(&temp_hoststatus->last_check,date_time,(int)sizeof(date_time),SHORT_DATE_TIME);
printf("Last Check Time:%s\n",date_time);

- printf("Check Type:%s\n",(temp_hoststatus->check_type==HOST_CHECK_ACTIVE)?"ACTIVE":"PASSIVE");
+ if (temp_hoststatus->check_type==HOST_CHECK_ACTIVE)
+ printf("Check Type:ACTIVE\n",
+ CONFIG_CGI,url_encode(temp_host->host_check_command));
+ else printf("Check Type:PASSIVE\n");

printf("Check Latency / Duration:");
if(temp_hoststatus->check_type==HOST_CHECK_ACTIVE)
@@ -1150,7 +1153,9 @@
printf("\n");
printf("\n");

- printf("Active Checks:  %s  \n",(temp_hoststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED");
+ if ((temp_host->host_check_command)&&(*temp_host->host_check_command!='\0'))
+ printf("Active Checks:  %s  \n",CONFIG_CGI,url_encode(temp_host->host_check_command),(temp_hoststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED");
+ else printf("Active Checks:  %s  \n",(temp_hoststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->checks_enabled==TRUE)?"ENABLED":"DISABLED");

printf("Passive Checks:  %s  \n",(temp_hoststatus->accept_passive_host_checks==TRUE)?"ENABLED":"DISABLED",(temp_hoststatus->accept_passive_host_checks)?"ENABLED":"DISABLED");

@@ -1158,7 +1163,9 @@

printf("Notifications:  %s  \n",(temp_hoststatus->notifications_enabled)?"ENABLED":"DISABLED",(temp_hoststatus->notifications_enabled)?"ENABLED":"DISABLED");

- prin

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked