Re: [Nagios-devel] Event Profiler Patch

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] Event Profiler Patch

Post by Guest »

--_002_3679AE44D8C04547A4F3EB83E77905628241945A46MBX01ldschurc_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello Folks,

Here is a version with the event profiler as a config file option.
To turn it on or off, just set event_profiling_enabled=3D1 or 0 respectivel=
y.
You still need to compile with -DEVENT_PROFILER for it to work, but at leas=
t this way you can start and stop the profiler at will.

Sincerely,
Steve

________________________________________
From: Andreas Ericsson [[email protected]]
Sent: Monday, June 08, 2009 9:30 AM
To: Nagios Developers List
Subject: Re: [Nagios-devel] Event Profiler Patch

Steven D. Morrey wrote:
> I made it a compile time option in my patch for ease of insertion in
> the existing code base. It would be trivial to convert it to a config
> file option. Just add a new option and track it with a global
> variable, then search and replace all of the #ifdef EVENT_PROFILE
> tags with a simple if(gEvent_Profile_Enabled) After that it's just a
> matter of tracking down the unmatched #endif's and that should be it.
> If there is interest in it, I can update the code to do this and
> submit a new patch.
>

That would be preferrable, but please stick to the current style of
naming variables. "event_profiling_enabled" would be an acceptable
variable name.

--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

---------------------------------------------------------------------------=
---
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Nagios-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/lis ... gios-devel


NOTICE: This email message is for the sole use of the intended recipient(s=
) and may contain confidential and privileged information. Any unauthorized=
review, use, disclosure or distribution is prohibited. If you are not the =
intended recipient, please contact the sender by reply email and destroy al=
l copies of the original message.



--_002_3679AE44D8C04547A4F3EB83E77905628241945A46MBX01ldschurc_
Content-Type: text/x-patch; name="nagios-3-event_profiler.patch"
Content-Description: nagios-3-event_profiler.patch
Content-Disposition: attachment; filename="nagios-3-event_profiler.patch";
size=25425; creation-date="Mon, 08 Jun 2009 16:58:47 GMT";
modification-date="Mon, 08 Jun 2009 16:58:47 GMT"
Content-Transfer-Encoding: base64

ZGlmZiAtd3VycE4gbmFnaW9zLTMtY2xlYW4vYmFzZS9jb25maWcuYyBuYWdpb3MtMy1tb2RpZmll
ZC9iYXNlL2NvbmZpZy5jCi0tLSBuYWdpb3MtMy1jbGVhbi9iYXNlL2NvbmZpZy5jCTIwMDgtMTIt
MTQgMDc6NTI6MjMuMDAwMDAwMDAwIC0wNzAwCisrKyBuYWdpb3MtMy1tb2RpZmllZC9iYXNlL2Nv
bmZpZy5jCTIwMDktMDYtMDggMTU6MjQ6MTcuMDAwMDAwMDAwIC0wNjAwCkBAIC0yMTIsNyArMjEy
LDcgQEAgZXh0ZXJuIGNoYXIgICAgICAgICAgICAgKmRlYnVnX2ZpbGU7CiBleHRlcm4gaW50ICAg
ICAgICAgICAgICBkZWJ1Z19sZXZlbDsKIGV4dGVybiBpbnQgICAgICAgICAgICAgIGRlYnVnX3Zl
cmJvc2l0eTsKIGV4dGVybiB1bnNpZ25lZCBsb25nICAgIG1heF9kZWJ1Z19maWxlX3NpemU7Ci0K
K2V4dGVybiBpbnQgICAgICAgICAgICAgIGV2ZW50X3Byb2ZpbGluZ19lbmFibGVkOwogCiAKIC8q
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKiovCkBAIC0xMjkxLDYgKzEyOTEsOSBAQCBpbnQgcmVhZF9tYWluX2NvbmZpZ19maWxl
KGNoYXIgKm1haW5fY29uCiAJCWVsc2UgaWYoIXN0cmNtcCh2YXJpYWJsZSwiYmFyZV91cGRhdGVf
Y2hlY2siKSkKIAkJCWJhcmVfdXBkYXRlX2NoZWNrPShhdG9pKHZhbHVlKT4wKT9UUlVFOkZBTFNF
OwogCisJCWVsc2UgaWYoIXN0cmNtcCh2YXJpYWJsZSwiZXZlbnRfcHJvZmlsaW5nX2VuYWJsZWQi
KSkKKwkJCWV2ZW50X3Byb2ZpbGluZ19lbmFibGVkPShhdG9pKHZhbHVlKT4wKT9UUlVFOkZBTFNF
OworCiAJCS8qKiogQVVUSF9GSUxFIFZBUklBQkxFIFVTRUQgQlkgRU1CRURERUQgUEVSTCBJTlRF
UlBSRVRFUiAqKiovCiAJCWVsc2UgaWYoIXN0cmNtcCh

...[email truncated]...


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