Commit Graph

1788 Commits

Author SHA1 Message Date
Michael Friedrich ccd60bbc4b macros: fix param name for ResolveMacros 2013-07-16 17:11:18 +02:00
Michael Friedrich 917f7d363b compat: add next_notification to status.dat 2013-07-16 16:51:02 +02:00
Michael Friedrich e9eb40c1f7 livestatus: fix missing object lock on array in attribute filter 2013-07-16 15:38:59 +02:00
Michael Friedrich 32a1f50116 livestatus: contacts table fixes (ignore special custom attr)
refs #4372
2013-07-16 14:56:32 +02:00
Michael Friedrich d5579d9e2f Config: add macros/custom dictionaries to Host Service definition
additive inheritance (+=) works with templates too.
2013-07-16 14:53:21 +02:00
Michael Friedrich 2cc8ef17e1 livestatus: finish host|servicegroup table attributes
refs #4372
2013-07-16 13:26:16 +02:00
Michael Friedrich df1d47a996 livestatus: finish contacts table attributes
refs #4372
2013-07-16 13:18:02 +02:00
Michael Friedrich 9ad0b11442 User: register enable_notifications, add GetEnableNotifications() 2013-07-16 13:17:53 +02:00
Gunnar Beutner 81b3b57b11 Make libido a library, rather than a user-loadable module. 2013-07-16 10:40:55 +02:00
Gunnar Beutner 3a7bae618a Implement IDO (well, part of it anyway). 2013-07-16 10:19:13 +02:00
Gunnar Beutner ed28ae1b3f compat: Make sure host is not null. 2013-07-16 10:18:03 +02:00
Michael Friedrich 42dcd854fb livestatus: add array delimiter based on level for csv output
... 0 uses comma, 1 uses the pipe for csv output. for json we do not
make any difference.

fixes #4412
2013-07-15 10:50:41 +02:00
Michael Friedrich e81fd48bbd livestatus: use Empty instead of Value()
fixes #4410
2013-07-12 19:20:12 +02:00
Michael Friedrich 358aa3a6a5 livestatus: use enum for error codes, fix empty line
refs #4372
2013-07-12 18:25:18 +02:00
Michael Friedrich 45db7e08a2 livestatus: finish commentstable attributes
refs #4372
2013-07-12 18:10:27 +02:00
Michael Friedrich 8c02c3a75a livestatus: servicegroup members as host/service array
refs #4372
2013-07-12 17:50:41 +02:00
Michael Friedrich 9f9f3623fc livestatus: add servicegroupstable attributes
refs #4372
2013-07-12 16:47:37 +02:00
Michael Friedrich 1b5f4dcde7 livestatus: join csv arrays into comma seperated string
refs #4374
2013-07-12 16:32:13 +02:00
Michael Friedrich 6dc88e770b livestatus: add hostgroup attributes
refs #4372
2013-07-12 15:35:32 +02:00
Michael Friedrich 36e9e9adbd custom attr: move into DynamicObject using GetCustom() 2013-07-12 15:13:05 +02:00
Michael Friedrich cfb3c9cf9f livestatus: implement avg,min,max,std,invsum,invavg stats aggregators
fixes #4398
2013-07-12 12:07:32 +02:00
Michael Friedrich 2a3b41f948 livestatus: remove stop function again 2013-07-12 11:04:04 +02:00
Michael Friedrich a5d3b74da6 tcpsocket: fix fd on setsockopt SO_REUSEADDR 2013-07-12 11:03:36 +02:00
Michael Friedrich 26cc0ecb02 livestatus: bugfixes. 2013-07-12 10:54:57 +02:00
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
Gunnar Beutner 664916dffb Fix nullptr deref in Service::GetLastCheckPerfData(). 2013-07-10 09:57:18 +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
Michael Friedrich 3023686042 service: add IsHostCheck helper 2013-07-09 16:59:31 +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 989c979ea7 contrib: add simple dummy config generator 2013-07-06 20:53:07 +02:00
Michael Friedrich 9249af1c66 log an error to debug when check_command not found on service execution
refs #4391
2013-07-06 20:46:09 +02:00