994 Commits

Author SHA1 Message Date
Michael Friedrich
904830ee3e livestatus: add sum aggregator, refactor Filter/Stats handling
refs #4398
2013-07-11 17:54:36 +02:00
Michael Friedrich
4f75ba03ff livestatus: add basic aggregator support
refs #4398
2013-07-11 16:08:53 +02:00
Michael Friedrich
55d9eb3548 livestatus: log which table misses the column 2013-07-11 14:20:43 +02:00
Michael Friedrich
4731faea89 livestatus: add timeperiods table
refs #4372
2013-07-11 13:03:14 +02:00
Michael Friedrich
3184fee145 livestatus: fix host/servicegroup tables
add empty data providers for all requestable columns.

refs #4372
2013-07-11 12:43:27 +02:00
Michael Friedrich
f631304a23 livestatus: fix check_type (0..active, 1..passive)
refs #4372
2013-07-11 11:55:32 +02:00
Michael Friedrich
96e1935fb4 livestatus: add commandstable name/line
requires conversion of commandline (plain text or array).

refs #4372
2013-07-11 11:47:32 +02:00
Michael Friedrich
0a033b0f87 livestatus: add parentObjectAccessor to function prototypes
comments and downtimes where missing, even if unused.
2013-07-11 11:10:56 +02:00
Michael Friedrich
d6d61354ed livestatus: time values must be integer seconds
fixes #4406
2013-07-11 10:57:21 +02:00
Gunnar Beutner
540e63c157 Make sure new comments/downtimes are added to the ID cache right away. 2013-07-11 08:58:11 +02:00
Gunnar Beutner
033389d243 Fix invalid function call. 2013-07-11 08:40:02 +02:00
Michael Friedrich
2a097d0b04 livestatus: more fixes on joins, ptrs
refs #4372
2013-07-10 16:11:40 +02:00
Michael Friedrich
8033586f66 livestatus: close socket on component Stop()
refs #4376
2013-07-10 14:19:01 +02:00
Michael Friedrich
ff61df9d71 livestatus: use generic Value() as row accessor instead of Object()
This will allow comments/downtimes to be stashed as string (id) while
existing objects will still be available as Value().

refs #4372
2013-07-10 14:11:03 +02:00
Michael Friedrich
540489e408 livestatus: add host and service group getters
refs #4372
2013-07-09 18:33:27 +02:00
Michael Friedrich
6ce71489c8 livestatus: add commands table (thruk now shows extinfo)
refs #4372
2013-07-09 18:09:03 +02:00
Michael Friedrich
82ae632389 livestatus: fix typo 2013-07-09 18:05:47 +02:00
Michael Friedrich
c4aae5bdba livestatus: add empty logtable
refs #4372
2013-07-09 17:46:48 +02:00
Michael Friedrich
aefda9f124 livestatus: add contact*, status, service table attributes
comments and downtimes require special object treatment -> linked to
services?

refs #4372
2013-07-09 17:15:38 +02:00
Gunnar Beutner
0f56513087 Merge remote-tracking branch 'origin/master' 2013-07-09 08:46:02 +02:00
Gunnar Beutner
4961523e91 Add DECLARE_PTR_TYPEDEFS macro for Ptr/WeakPtr typedefs. 2013-07-09 08:43:52 +02:00
Michael Friedrich
0d3bf55e46 livestatus: add service table accessors
not yet complete, but the same level as host table accessors.

refs #4372
2013-07-08 17:09:15 +02:00
Michael Friedrich
16adc9a0c5 livestatus: add more hosttable todos
refs #4372
2013-07-05 19:14:10 +02:00
Michael Friedrich
ec3e8cfe1c livestatus: move host attribute getter into host->service again
refs #4372
2013-07-05 13:42:40 +02:00
Michael Friedrich
03c18367ff livestatus: hosttable: fix checkperiod null ptr
refs #4372
2013-07-05 11:46:20 +02:00
Michael Friedrich
7b0c27acc5 livestatus: hosttable: check if custom dictionary exists
refs #4372
2013-07-05 11:32:19 +02:00
Michael Friedrich
69cb48242f livestatus: hoststable: lock service object for acknowledgement getters
refs #4372
2013-07-05 11:28:05 +02:00
Michael Friedrich
e448374674 livestatus: fix missing symbols
refs #4372
2013-07-05 10:51:09 +02:00
Michael Friedrich
88197d216a livestatus: add first part of host data providers
refs #4372
2013-07-05 09:35:49 +02:00
Michael Friedrich
1db349df18 livestatus: stop reading data if stream was closed
fixes #4371
2013-07-04 09:45:44 +02:00
Michael Friedrich
80c91aa91e stream/livestatus: refactor ReadLine with context saving 2013-07-03 16:16:38 +02:00
Gunnar Beutner
8e880a3f39 Fix include directory for ltdl.h. 2013-07-02 16:56:01 +02:00
Michael Friedrich
43793a1884 compatlog: fix boost algorithm include 2013-07-02 13:38:06 +02:00
Gunnar Beutner
1179d37fa0 compat: Refactor check_command/event_handler code. 2013-07-02 10:24:27 +02:00
Gunnar Beutner
bf58700c10 compat: Make sure commands have unique names. 2013-07-02 09:35:03 +02:00
Gunnar Beutner
049fbcb3cb compat: Escape new-lines in commands. 2013-07-02 09:16:06 +02:00
Gunnar Beutner
eb95e9a718 Make sure the CGIs don't croak on our objects.cache file. 2013-07-02 08:52:47 +02:00
Gunnar Beutner
03e019580a Implement dumping commands and timeperiods. 2013-07-02 08:44:03 +02:00
Michael Friedrich
207b91224b compat: dump commands to objects.cache
service->notifications may create duplicates.
2013-07-01 20:12:03 +02:00
Michael Friedrich
91e36eb90d compat: add more missing attributes 2013-07-01 19:04:08 +02:00
Michael Friedrich
9334c1e346 notifications: refactor NotificationSent message
like flapping and downtimes behave now.

refs #4361
2013-07-01 17:56:21 +02:00
Michael Friedrich
ce9c390ed9 flapping: fix division by 0, add compat status, extcmds
and some debug output.

refs #4360
refs #2711
2013-07-01 17:25:30 +02:00
Michael Friedrich
bd6e5d11ac compatlog: use flapping threshold/current
fixes #4360
2013-07-01 14:49:04 +02:00
Michael Friedrich
4de7908b94 compatlog: add flapping messages
refs #4360
2013-07-01 14:44:56 +02:00
Gunnar Beutner
e2714525c9 Remove the built-in attributes notes_url and action_url. 2013-07-01 13:55:25 +02:00
Gunnar Beutner
4766e801a2 objects.cache: Add support for the "notes" attribute. 2013-07-01 13:51:00 +02:00
Gunnar Beutner
23c87f6eaf Implement support for custom variables.
Fixes #4344
2013-07-01 13:46:50 +02:00
Michael Friedrich
b906b51d3b refactor downtime message handling (wip) 2013-07-01 11:28:49 +02:00
Michael Friedrich
6f7b231302 compatlog: refactor custom/acknowledgement notifications with author/commenttext
refs #4361
2013-07-01 11:17:58 +02:00
Michael Friedrich
cd48a4946a compatlog: fix checkcommand name
refs #4361
2013-07-01 10:03:00 +02:00