[dev.icinga.com #638] call unknown check result handler on passive checks from unknown hosts/services #319
Comments
Updated by mfriedrich on 2010-08-04 21:05:56 +00:00
|
Updated by mfriedrich on 2010-08-09 20:51:40 +00:00 base/commands.c passive hostchecks
passive servicechecks
config options to set
same as running handle_host_event(hst); this needs eventhandlers defined for the passively defined host. e.g. host { whereas detect-wrong-host will be called if the host defined in the passive check command does not fit. basically the script should then take the macros handed over. |
Updated by mfriedrich on 2010-09-17 15:33:38 +00:00
fits perfect into an unstable release. |
Updated by mfriedrich on 2010-10-10 12:13:32 +00:00
|
Updated by mfriedrich on 2011-01-04 17:11:20 +00:00
feature for 1.4, no time currently. anyone else interested though? |
Updated by berk on 2011-02-14 08:42:07 +00:00 i think we need that as a workaround until we have a dynamic configurable core |
Updated by pdeneu on 2011-02-14 08:45:06 +00:00 Excellent idea. |
Updated by mfriedrich on 2011-02-14 08:47:12 +00:00 what is a "dynamic configurable core"? :p i've already declined a feature request on the feedback tracker regarding configurable states ;-) but yes, that feature is on my todo list, just no time til now. possibly something for mike dupont? ;D |
Updated by mfriedrich on 2011-04-27 21:31:03 +00:00
|
Updated by mfriedrich on 2011-05-27 16:19:07 +00:00
although it's an interesting feature, i don't have time for that. patches welcome - the algorithm above tells already more than necessary. |
Updated by mfriedrich on 2011-06-29 14:19:29 +00:00
|
Updated by mfriedrich on 2011-07-12 18:47:52 +00:00
|
Updated by mfriedrich on 2011-11-01 11:01:57 +00:00 doesn't work like proposed. can't assign that result handler to a non existing object. most likely this must be defined somewhere else, same as perfdata commands or similar. |
Updated by mfriedrich on 2011-11-01 11:48:52 +00:00
furthermore, doing it with a command object defined, calling that withing reap check result won't work with macros, so how to pass host, service, checkresult to that command either way? |
Updated by mfriedrich on 2011-11-01 11:50:12 +00:00 what comes to mind, would be a new callback for neb, telling that an unknown checkresult was received, passing a new struct with hostname, servicedesc and checkresult over there. |
Updated by mfriedrich on 2011-12-01 23:01:37 +00:00 interesting. a user was just asking about a so called unconfigured objects strategy by a commercial product. what they do, is parsing the event log, creating a serialization database and provide that gui based to the user, allowing the addition of more passive checks. and event handler could possibly resolve the parsing and serialize problem. |
Updated by mfriedrich on 2011-12-01 23:01:50 +00:00
|
Updated by mfriedrich on 2012-02-18 14:30:41 +00:00 the effective problem is, that this can't be implemented like notifications, because at the stage of parsing the passive check result, there is no object available, so no macros, no attributes, nothing but a host or host/service with some more checkresult attributes. given that this handler must be a global command, perfdata commands come to mind, where you can define a command to be called when such a thing occurs. the main problem will be, that those attributes of the checkresult itsself must be passed itsself as argument somehow in order to provide all the information to the handler. this can get complicated, if the command set is not a path to a binary, but a command definition itsself. SERVICES HOSTS if we are doing so, we should also create the base shell script as an example and install that accordingly, to prevent users to create their own and failing. if we go the way with calling a script directly. @birger |
Updated by mfriedrich on 2012-04-03 12:33:59 +00:00
since it requires more feedback, i'll remote the release target again. |
Updated by mfriedrich on 2012-07-31 19:27:19 +00:00
as we cannot attach handlers to non-existant configobjects, someone would rather query a core api to see if it's there, or, after having handler configuration within icinga, defining such in a more general way. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/638
Created by bschmidt on 2010-07-26 10:02:55 +00:00
Assignee: (none)
Status: Closed (closed on 2012-07-31 19:27:19 +00:00)
Target Version: (none)
Last Update: 2012-07-31 19:27:19 +00:00 (in Redmine)
It would be very nice if Icinga not just log an error if a check result for an unknown passive check comes in, but call a "unknown check result handler" instead.
This would make it possible to handle check results for "til now" unknown hosts/services.
This leads to various options how we could handle such events.
For example we could
This feature should be implemented like the notification commands.
Of course it should be optional - and be disabled by default.
Thanks,
Birger
Relations:
The text was updated successfully, but these errors were encountered: