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 #9235] in_notification_period for notification objects #2992
Comments
Updated by ricardo on 2015-05-07 09:16:43 +00:00
Hi, just checked it. This is not possible without a lot of pain. We would have to copy paste quite a bit of code just to present this one line. But you could do it as well. Witch would cause a lot of pain on your side. You can request the config of all hosts, services and timeperiodes as json and determine the notification state based on this data. And you have to request this data only if the "program_start" timestamp has changed. Would this help you? Cheers |
Updated by ddegois on 2015-05-07 09:52:29 +00:00 And all this wihout even considering time zones ... I think I'll pass on this one :D Regards, |
Updated by mfriedrich on 2015-05-07 10:46:18 +00:00 in_notification_period is not a core status item which will cause plenty of changes inside the core, interfaces and compatibility. I think that's qualified for an Icinga 2 API, but not 1.x legacy interfaces. Livestatus has it as custom value. |
Updated by ricardo on 2015-05-07 22:29:35 +00:00 The configured timezone of the icinga server is always in the "icinga_status" part of every json output. |
Updated by mfriedrich on 2015-05-08 08:00:39 +00:00
After thinking about that - it does not make sense to add that to 1.x nor 2.x, as with Icinga 2 there are new notification objects which qualify the notification period, but not the host or service itself. We should consider that while implementing the Icinga 2 API. |
Updated by mfriedrich on 2015-05-08 08:06:55 +00:00
|
Updated by ddegois on 2015-05-08 18:11:14 +00:00 ricardo wrote:
I know but it's way too much work. dnsmichi wrote:
I'm still looking for a documentation or something to take a look on that and maybe help. |
Updated by mfriedrich on 2015-06-23 13:30:50 +00:00
|
Updated by mfriedrich on 2015-09-03 16:47:57 +00:00
This could be considered some virtual object column which we should discuss whether this makes sense or not. |
Updated by mfriedrich on 2015-11-10 09:03:17 +00:00
/v1/objects/notifications?joins=period.is_inside |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9235
Created by ddegois on 2015-05-07 07:54:46 +00:00
Assignee: (none)
Status: Closed (closed on 2015-11-10 09:03:17 +00:00)
Target Version: (none)
Last Update: 2015-11-10 09:03:17 +00:00 (in Redmine)
Would it be possible, if [Feature #9231] is implemented to retroport it also on Icinga 1.x CGIs ?
D.
Relations:
The text was updated successfully, but these errors were encountered: