Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #2750] Compat: Write log file #154

Closed
icinga-migration opened this issue Jun 29, 2012 · 17 comments
Closed

[dev.icinga.com #2750] Compat: Write log file #154

icinga-migration opened this issue Jun 29, 2012 · 17 comments
Labels
area/compat Deprecated features from 1.x enhancement New feature or request

Comments

@icinga-migration
Copy link

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

Created by gbeutner on 2012-06-29 10:17:21 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2013-06-28 13:13:39 +00:00)
Target Version: Milestone 1.x Compat
Last Update: 2014-09-16 09:16:19 +00:00 (in Redmine)


The compat module needs to write a log file using Icinga 1.x's log format.

Attachments

Changesets

2013-06-28 11:40:01 +00:00 by (unknown) 147cd81

add downtime message (started,stopped,cancelled) and compat logger

refs #3985
refs #2750

2013-06-28 19:31:38 +00:00 by (unknown) 3af0559

Compat: log notifications (wip)

- we need a way to figure out which last commend id (or, author and
  text) where set when type is CUSTOM or ACKNOWLEDGEMENT
- GetCheckCommandName was required too
- not sure if notifications.cpp is the correct location

refs #4361
refs #3985
refs #2750

Relations:

@icinga-migration
Copy link
Author

Updated by gbeutner on 2012-07-09 06:36:49 +00:00

  • Priority changed from Normal to High

@icinga-migration
Copy link
Author

Updated by gbeutner on 2012-09-21 13:26:57 +00:00

  • Target Version changed from Milestone 1 to Milestone 2

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2012-09-27 16:20:54 +00:00

hm, not milestone1?

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2012-09-28 10:44:13 +00:00

ok clarified. m2 it is.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2012-10-19 10:37:44 +00:00

  • Priority changed from High to Normal

@icinga-migration
Copy link
Author

Updated by gbeutner on 2013-01-30 19:40:44 +00:00

  • Assigned to set to gbeutner

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-02-07 17:35:55 +00:00

log_path is already there from #2796, but the default is now set to localstatedir/log/icinga2/compat not to disturb the i2 logging. any other ideas?

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-03-23 21:58:35 +00:00

works in my first tests.

/*
 * The compat log object optionally allows to log all events GUIs like Icinga
 * Classic UI expect. rotation_method may be set to HOURLY, DAILY, WEEKLY or
 * MONTHLY
 */
local object CompatLog "compatlog" {
        path_prefix = "/home/michi/i2/var/log/icinga/compat",
        rotation_method = "HOURLY",
}

$ less /home/michi/i2/var/log/icinga2/compat/icinga.log 
[1364075367] LOG ROTATION: HOURLY
[1364075367] LOG VERSION: 2.0
[1364075368] SERVICE ALERT: randomhost-2-6;random10;UNKNOWN;SOFT;2;
[1364075368] SERVICE ALERT: randomhost-2-12;random8;OK;HARD;1;
[1364075368] SERVICE ALERT: randomhost-2-14;random1;UNKNOWN;HARD;1;
[1364075368] SERVICE ALERT: randomhost-2-3;random1;CRITICAL;SOFT;3;
[1364075369] SERVICE ALERT: randomhost-2-16;random10;CRITICAL;HARD;1;
[1364075369] SERVICE ALERT: randomhost-2-17;random3;WARNING;SOFT;2;
[1364075369] SERVICE ALERT: randomhost-2-9;random2;OK;HARD;1;
[1364075370] SERVICE ALERT: randomhost-2-16;random4;OK;HARD;1;
[1364075370] SERVICE ALERT: randomhost-2-11;random2;WARNING;HARD;1;
[1364075370] SERVICE ALERT: randomhost-2-10;random10;CRITICAL;SOFT;3;
[1364075370] SERVICE ALERT: randomhost-2-16;random9;OK;HARD;1;
[1364075371] SERVICE ALERT: randomhost-2-5;random6;CRITICAL;HARD;1;
[1364075371] SERVICE ALERT: randomhost-i2-2;random9;OK;SOFT;1;
[1364075371] SERVICE ALERT: randomhost-i2-2;random6;UNKNOWN;HARD;1;
[1364075371] SERVICE ALERT: randomhost-2-17;random7;CRITICAL;HARD;1;
[1364075372] SERVICE ALERT: randomhost-2-15;random6;OK;SOFT;1;
[1364075372] SERVICE ALERT: randomhost-2-4;random3;OK;SOFT;1;

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-03-23 22:01:20 +00:00

  • File added icinga2_compat_log_classicui_event_log.png
  • File added icinga2_compat_log_classicui_alert_histogram.png
  • File added icinga2_compat_log_classicui_availibity_reports.png
  • File added icinga2_compat_log_classicui_trends.png

and for the fancy gui stuff in Classic UI

event log

icinga2_compat_log_classicui_event_log.png

Alert Histogram

icinga2_compat_log_classicui_alert_histogram.png

Availibility Reports

icinga2_compat_log_classicui_availibity_reports.png

Trends

icinga2_compat_log_classicui_trends.png

w00t xD

@icinga-migration
Copy link
Author

Updated by gbeutner on 2013-05-14 08:07:00 +00:00

  • Target Version changed from Milestone 2 to Milestone 1.x Compat

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-06-26 18:13:54 +00:00

all missing parts are documented/discussed in #3985

@icinga-migration
Copy link
Author

Updated by gbeutner on 2013-06-27 09:28:28 +00:00

  • Assigned to changed from gbeutner to mfriedrich

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-06-27 09:53:51 +00:00

  • Status changed from New to Assigned

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-06-28 13:12:00 +00:00

  • Status changed from Assigned to 8

split into seperate issues.

  • downtimes #4359
  • flapping #4360
  • notifications #4361
  • extcmd, eventhandler, passive checks #4362 (on demand enabled in 1.x)

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-06-28 13:13:39 +00:00

  • Status changed from 8 to Resolved
  • Done % changed from 0 to 100

basic feature set is done.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-09-23 14:09:11 +00:00

  • Project changed from Icinga 2 to 35

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-09-16 09:16:19 +00:00

  • Project changed from 35 to Icinga 2
  • Category set to Compat

@icinga-migration icinga-migration added enhancement New feature or request area/compat Deprecated features from 1.x labels Jan 17, 2017
@icinga-migration icinga-migration added this to the Milestone 1.x Compat milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compat Deprecated features from 1.x enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant