Commit graph

25 commits

Author SHA1 Message Date
Sukhwinder Dhillon
5655f095f8 IcingaRedis: Remove now obsolete code 2025-06-11 14:25:58 +02:00
Sukhwinder Dhillon
2459655739 IcingaRedis: state_type is now a string 2025-06-11 14:24:36 +02:00
Sukhwinder Dhillon
9283135144 Support new column is_sticky_acknowledgement 2025-06-11 14:24:36 +02:00
Will_i_code
56371be50c
Add support for redis acl/username and database selection (#1165)
resolves #1044
2025-05-14 09:53:32 +02:00
Sukhwinder Dhillon
c0a04cdf53 Predis: Use xread command/method (introduced in predis v2.3.0)
- module.info: Increase the required version of `icinga-php-thirdparty` which includes predis v2.3.0

NOTE: The result array (`$rs`) has changed, `icinga:stat` was previously a `value` in the array, now it is a `key`:
   Path to get the real values:
	previously : $rs[0][1][0][1]
	new : $rs['icinga:stats'][0][1]
2025-05-07 15:21:48 +02:00
Johannes Meyer
1a23a6b3cc IcingaRedis: Use the new singleton instead 2024-12-17 16:33:05 +01:00
Johannes Meyer
cd41a207a1 IcingaRedis: Don't throw in method isUnavailable
fixes #883
2023-09-27 10:24:50 +02:00
Sukhwinder Dhillon
a21e0d2443 IcingaRedis: Call private static methods with self instead of static 2023-09-05 14:26:43 +02:00
Sukhwinder Dhillon
7c66c0ee20 IcingaRedis: Fix incorrect PhpDoc 2023-09-05 14:26:43 +02:00
Johannes Meyer
90a68788f9 IcingaRedis: Introduce fetchHostState and fetchServiceState..
..as well as `isUnavailable`. Transferred from `VolatileStateResults`
to be re-used outside of it.
2023-08-09 10:53:28 +02:00
stupiddr
3c5785db37 Fix Secondary Redis being ignored when the Primary Redis in inaccessible/down 2023-02-17 09:14:21 +01:00
VerboEse
c5d842f156
Support for redis password (#496) 2022-03-31 15:33:58 +02:00
Yonas Habteab
aefd0e1f7d Add PHP 7 argument & return type declarations to all member methods 2021-11-03 16:06:59 +01:00
Johannes Meyer
50babae5a0 IcingaRedis: Don't connect endlessly in case of failures 2021-09-21 15:30:32 +02:00
Johannes Meyer
2b480c881d Make Icinga\Module\Icingadb\Common\IcingaRedis a singleton
This limits the connection attempts and established connections
to a single one. Previously we made as many as we've accessed redis.
2021-09-21 15:30:29 +02:00
Johannes Meyer
1f1c33b8f4 Store redis connections in a separate file 2021-09-10 14:21:33 +02:00
Johannes Meyer
7f3eb8e86c IcingaRedis: Make getPrimaryRedis and getSecondaryRedis public
Necessary to make the wizard work
2021-07-16 10:56:47 +02:00
Johannes Meyer
bbef9fd363 RedisConfigForm: Store pem files on disk, not in config 2021-07-15 18:02:04 +02:00
Alexander A. Klimov
0e1771a3c2 Redis connection: support TLS 2021-07-15 18:02:04 +02:00
Alexander A. Klimov
34f46393c3 Use Predis, not PHP-Redis 2021-07-15 18:02:04 +02:00
Johannes Meyer
5e441c93a0 Add license note to every file 2020-03-13 10:36:24 +01:00
Johannes Meyer
7a29e7ead0 IcingaRedis: Assume localhost as default hostname
refs #24
2020-03-12 10:31:17 +01:00
Johannes Meyer
7223714cdc Don't make Web 2 unusable on PHP 5.6 2020-02-19 14:21:46 +01:00
Eric Lippmann
aa968fd7c4 Add timeout to Redis::connect() 2019-12-12 14:16:33 +01:00
Eric Lippmann
09fb9f6011 Add trait IcingaRedis 2019-12-12 14:16:33 +01:00