![icinga ウェブインターフェースで「バックエンド icinga が実行されていません」というエラーが発生する](https://rvso.com/image/1592140/icinga%20%E3%82%A6%E3%82%A7%E3%83%96%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%95%E3%82%A7%E3%83%BC%E3%82%B9%E3%81%A7%E3%80%8C%E3%83%90%E3%83%83%E3%82%AF%E3%82%A8%E3%83%B3%E3%83%89%20icinga%20%E3%81%8C%E5%AE%9F%E8%A1%8C%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%9B%E3%82%93%E3%80%8D%E3%81%A8%E3%81%84%E3%81%86%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%99%E3%82%8B.png)
「システム > ヘルスの監視」で、「バックエンド icinga が実行されていません」というエラーが表示され、次のような詳細が表示されます。
致命的なエラー: キャッチされない ErrorException: キャッチされない ErrorException: setcookie() はパラメータ 3 が整数であることを想定していますが、/usr/share/php/Icinga/Web/Response.php:326 では float が指定されています。スタック トレース: #0 [内部関数]: Icinga\Application\ApplicationBootstrap->Icinga\Application{closure}(2, 'setcookie() exp...', '/usr/share/php/...', 326, Array) #1 /usr/share/php/Icinga/Web/Response.php(326): setcookie('icingaweb2-appl...', '{"acknowledged-...', 2147483648, '/icingaweb2/', NULL, true, true) #2 /usr/share/php/Icinga/Web/Response.php(338): Icinga\Web\Response->sendCookies() #3 /usr/share/icingaweb2/library/vendor/Zend/Controller/Response/Abstract.php(762): Icinga\Web\Response->sendHeaders() #4 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(975): Zend_Controller_Response_Abstract->sendResponse() #5 /usr/share/php/Icinga/Application/Web.php(300): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #6 /usr/share/php/Icinga/Application/webrouter.php(104): Icinga\Application\Web->dispatch() (/usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php の 259 行目)
これは Icinga Web コードの例外のように思えますが、私の側の問題かもしれません。誰かこれを見たことがありますか? 私は raspbian を使用しています。
答え1
私の場合、エラーを詳しく調べたところ、次のコマンドでエラーが発生していました。
icinga2 daemon -C
以下は所有権エラーを示しています
ls -la /etc/icinga2/features-available/
修理:
chown icinga:icinga /etc/icinga2/features-available/ido-mysql.conf icinga2 daemon -C systemctl reload rh-php71-php-fpm.service systemctl reload icinga2