You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assignee: (none)
Status: Resolved (closed on 2016-01-28 11:31:54 +00:00)
Target Version: 2.2.0
Last Update: 2016-01-28 11:31:54 +00:00 (in Redmine)
Bug show, Fatal error, "icingacli monitoring list --format=csv"
root@deb-icinga-test:~# icingacli monitoring list --format=csv
PHP Fatal error: Call to undefined method Icinga\Module\Monitoring\Backend\Ido\Query\ServicestatusQuery::getQuery() in /usr/share/php/Icinga/File/Csv.php on line 29
Fatal error: Call to undefined method Icinga\Module\Monitoring\Backend\Ido\Query\ServicestatusQuery::getQuery() in /usr/share/php/Icinga/File/Csv.php on line 29
root@deb-icinga-test:~#
The local installation is up and running, "icingacli monitoring list"
root@deb-icinga-test:~# icingacli monitoring list
UP deb-icinga-test.koboldmaki: PING OK - Packet loss = 0%, RTA = 0.05 ms
OK ├─ icinga (For 32m 43s)
OK ├─ procs (For 32m 40s)
OK └─ swap (For 32m 33s)
root@deb-icinga-test:~#
Reason for Fatal error, "icingacli monitoring list --format=csv"
In the file
/usr/share/php/Icinga/File/Csv.php
inside the funtion
public function __toString()
the bug comes from an unnecessary call of "getQuery"
foreach ($this->query->getQuery()->fetchAll() as $row) {
Fix by remove "getQuery()"
It could be fixed by removing "getQuery()"
foreach ($this->query->fetchAll() as $row) {
Affected packages
root@deb-icinga-test:~# dpkg -l php-icinga
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================-==================-==================-===========================================================
ii php-icinga 2.1.2+snapshot2015 all PHP library to communicate with and use Icinga
root@deb-icinga-test:~#
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10921
Created by kobmaki on 2016-01-01 11:34:39 +00:00
Assignee: (none)
Status: Resolved (closed on 2016-01-28 11:31:54 +00:00)
Target Version: 2.2.0
Last Update: 2016-01-28 11:31:54 +00:00 (in Redmine)
Bug show, Fatal error, "icingacli monitoring list --format=csv"
The local installation is up and running, "icingacli monitoring list"
Reason for Fatal error, "icingacli monitoring list --format=csv"
In the file
inside the funtion
the bug comes from an unnecessary call of "getQuery"
Fix by remove "getQuery()"
It could be fixed by removing "getQuery()"
Affected packages
and on github
https://github.com/Icinga/icingaweb2/blob/master/library/Icinga/File/Csv.php
After fix is apply, " icingacli monitoring list --format=csv"
Changesets
2016-01-27 08:09:52 +00:00 by kobmaki 9f79f9a
The text was updated successfully, but these errors were encountered: