Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.01k stars 577 forks source link

[dev.icinga.com #11329] API requests from execute-script action are too verbose #4010

Closed icinga-migration closed 7 years ago

icinga-migration commented 8 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11329

Created by tobiasvdk on 2016-03-08 08:48:19 +00:00

Assignee: mfriedrich Status: Resolved (closed on 2016-12-08 00:05:03 +00:00) Target Version: 2.6.0 Last Update: 2016-12-08 00:05:03 +00:00 (in Redmine)

Icinga Version: 2.4.10

Using the directors kickstart the following debug message is shown as [information]()

[2016-03-07 17:37:26 +0000] information/Console: Executing expression: var constants = [];
for (k => v in globals) {
   if (typeof(v) in [String, Number, Boolean]) {
      res = { name = k, value = v }
      constants.add({name = k, value = v})
   }
};
constants

Changesets

2016-12-07 23:59:24 +00:00 by mfriedrich b10a6b75a81d46e8b100099180502e230ffed894

API: Change log level for console endpoint

fixes #11329
icinga-migration commented 8 years ago

Updated by elippmann on 2016-03-08 09:03:26 +00:00

icinga-migration commented 8 years ago

Updated by tgelf on 2016-03-08 10:10:55 +00:00

It's the Icinga 2 log, writing all console actions at this level is too noisy.

icinga-migration commented 8 years ago

Updated by gbeutner on 2016-03-14 07:55:30 +00:00

How about 'notice'?

icinga-migration commented 8 years ago

Updated by gbeutner on 2016-03-14 07:55:43 +00:00

icinga-migration commented 8 years ago

Updated by mfriedrich on 2016-04-14 09:44:33 +00:00

We should add a specified API endpoint for that.

Example:

/v1/globals returns a list of global constants and the type
/v1/globals?name=PluginDir&name=MyConstant returns the selected constants, their value and type
icinga-migration commented 8 years ago

Updated by tgelf on 2016-04-14 09:56:04 +00:00

Such an API endpoint would of course make the shown example easier. But please open a dedicated issue for that one and do not hijack this issue. The original problem reported is that logging is too verbose here. It affects everything you run through console/execute-script if I recall this correctly.

Thanks, Thomas

icinga-migration commented 8 years ago

Updated by mfriedrich on 2016-08-09 12:49:42 +00:00

icinga-migration commented 7 years ago

Updated by mfriedrich on 2016-12-08 00:00:17 +00:00

icinga-migration commented 7 years ago

Updated by mfriedrich on 2016-12-08 00:05:03 +00:00

Applied in changeset b10a6b75a81d46e8b100099180502e230ffed894.