Enabling icingadb: Class 'Redis' not found

When I enable the icingadb module in icinga web, the following error shows up:

Method Icinga\Web\Widget\ApplicationStateMessages::__toString() must not throw an exception, caught Error: Class ‘Redis’ not found

I followed the instructions, checked the requirements and checked that icingadb-redis is running. Can anyone give a hint?

It looks like you are missing the Redis PHP module.

Can you try installing php-redis? e.g. on CentOS 7:

yum install rh-php71-php-pecl-redis

1 Like

doing this and restarting icinga and icingadb-redis after that didnt help

Thanks for your help!

What does your Icinga Web install look like?

Operating System/PHP Version/etc.

Can you do php -i | grep redis and make sure the redis module is being recognised?

This is the output of php -i | grep redis:

Registered save handlers => files user redis rediscluster
This program is free software; you can redistribute it and/or modify

So it seems to recognize it.

I’m using CentOS Linux release 7.7.1908 with PHP 5.6.40


Just a little hint:
After installing php-redis, it is required to restart php-fpm.

it is not recommended to use icingadb with php 5.6, but it should work