Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #4754] logentries: add object_id (host, service, etc) if applicable #1345

Closed
icinga-migration opened this issue Sep 25, 2013 · 4 comments

Comments

@icinga-migration
Copy link

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

Created by mfriedrich on 2013-09-25 17:05:53 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2013-10-03 02:22:50 +00:00)
Target Version: 1.10
Last Update: 2014-12-08 14:38:15 +00:00 (in Redmine)


currently the full message string is parsed and dumped, but it would be reasonable to look for a valid object_id and insert that into the table as well (allowing to link logentries easily with objects, e.g. on alerts).

Changesets

2013-09-27 21:48:14 +00:00 by (unknown) ca06672

core: pass host/service obj ptr to logger on event.

refs #4754

2013-09-27 23:01:26 +00:00 by (unknown) 84b08a0

idoutils: add object_id to logentries (only populated on host/service events)

refs #4754

2013-10-03 00:09:49 +00:00 by (unknown) 58f8dd4

change defaults to NULL

refs #4754

2013-10-03 00:22:13 +00:00 by (unknown) c2c8c3d

log states also get objects

refs #4754

2013-10-03 00:25:45 +00:00 by (unknown) 40b5694

change function prototypes

refs #4754

2013-10-03 01:11:24 +00:00 by (unknown) db6e113

only insert object_id if not zero (leaving nulls)

refs #4754

2013-10-03 01:20:18 +00:00 by (unknown) 3af81e6

update Changelog

refs #4754

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-09-25 17:06:14 +00:00

(in icinga2 db_ido it's pretty easy to add)

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-10-03 01:17:37 +00:00

  • Target Version set to 1.10

got that running for a week now, with some feedback from mr. gelf

  • alerts and state changes are passed with host/service objects where idomod extracts the name/description, and ido2db fetches the according object_id
  • if object_id is 0, the database field is NULL
  • the new field will allow to link the most important entries with host/services in icinga web

required some functions to be changed, but kept compatibility by creating wrappers for existing function prototypes.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2013-10-03 02:22:50 +00:00

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

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-12-08 14:38:15 +00:00

  • Project changed from 18 to Core, Classic UI, IDOUtils
  • Category changed from 82 to IDOUtils

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant