Page 1 of 1

Re: [Nagios-devel] Notification slow on Solaris - 27+ seconds spent

Posted: Mon Jan 14, 2008 1:01 pm
by Guest
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steffen Poulsen wrote:
> Re: Notification slow on Solaris - 27+ seconds spent in "set_all_macro_environment_vars(TRUE);"?
>
> Following up on previous debug, in rc1 we have inserted a few more debug statements in base/utils.c:
>
>> log_debug_info(DEBUGL_FUNCTIONS,0,"setting env variables ...\n");
>
> /* set environment variables */
> set_all_macro_environment_vars(TRUE);
>
>> log_debug_info(DEBUGL_FUNCTIONS,0,"closing command file ...\n");
>
> And we got this:
>
> [1200325554.988586] [001.0] [pid=11086] setting env variables ...
> [1200325555.111295] [001.0] [pid=11086] process_macros()
> [1200325555.111602] [001.0] [pid=11086] process_macros()
> [1200325555.111661] [2048.1] [pid=11086] **** BEGIN MACRO PROCESSING ***********
> [1200325555.111702] [2048.1] [pid=11086] Processing: 'xxx...'
> [1200325555.111753] [2048.1] [pid=11086] Done. Final output: 'xxx...'
> [1200325555.111800] [2048.1] [pid=11086] **** END MACRO PROCESSING *************
> [1200325555.112067] [001.0] [pid=11086] process_macros()
> [1200325555.112192] [001.0] [pid=11086] process_macros()
> [1200325555.112301] [001.0] [pid=11086] process_macros()
> [1200325555.112410] [001.0] [pid=11086] process_macros()
> [1200325555.119389] [001.0] [pid=11086] process_macros()
> [1200325555.119520] [001.0] [pid=11086] process_macros()
> [1200325555.119629] [001.0] [pid=11086] process_macros()
> [1200325555.119737] [001.0] [pid=11086] process_macros()
> [1200325555.119847] [001.0] [pid=11086] process_macros()
> [1200325555.119956] [001.0] [pid=11086] process_macros()
> [1200325582.539891] [001.0] [pid=11086] closing command file ...
>
> What can we do to lower this pretty large amount of time spend on setting the macro evn vars?

If you can avoid macros in environment variables (i.e. putting
everything on the command line in your commands) try using:
enable_environment_macros=0
in nagios.cfg

This should be much faster.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHi81b6dZ+Kt5BchYRAkr3AJ95j1KOHbEf5wuXpn0U9hbqzET13wCdF80B
W5HQPN/CMChTi4X79tJidWo=
=TxN/
-----END PGP SIGNATURE-----





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