[TESTCASE]

 * With cacti installed and configured, go to the /cacti/host.php page
(via the "devices" link on every cacti page) and select a device (e.g.
localhost)

kubuntu@kubuntu:~$ dpkg --list cacti
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                   Description
+++-=========================-=========================-==================================================================
ii  cacti                     0.8.7e-2ubuntu0.2         Frontend to rrdtool for 
monitoring systems and services

 * Make sure that in the SNMP Options section the SNMP Version is set to
"Not In Use"

Check

 * In the "Associated Data Queries" part, select "SNMP - Interface
Statistics" in the "Add data query" drop down selection box and press
"Add".

Check

 * The next screen is blank.

Indeed

 * In the apache error.log you will find:
   PHP Fatal error: Cannot use string offset as an array in 
/usr/share/cacti/site/lib/data_query.php on line 183, referer: 
http://localhost/cacti/host.php?action=edit&id=1

[Thu Aug 02 18:05:10 2012] [error] [client 127.0.0.1] PHP Fatal error:
Cannot use string offset as an array in
/usr/share/cacti/site/lib/data_query.php on line 183, referer:
http://localhost/cacti/host.php?action=edit&id=1

 * After the patch the result will be return to the host.php file, but
it will show the added "SNMP - Interface Statistics" with "Success [0
Items, 0 Rows]"

Indeed

kubuntu@kubuntu:~$ dpkg --list cacti
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                   Description
+++-=========================-=========================-==================================================================
ii  cacti                     0.8.7e-2ubuntu0.3         Frontend to rrdtool for 
monitoring systems and services

kubuntu@kubuntu:~$ sudo grep "PHP Fatal error:" /var/log/apache2/error.log 
[Thu Aug 02 18:05:10 2012] [error] [client 127.0.0.1] PHP Fatal error:  Cannot 
use string offset as an array in /usr/share/cacti/site/lib/data_query.php on 
line 183, referer: http://localhost/cacti/host.php?action=edit&id=1


** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/914746

Title:
  cacti SNMP verbose query PHP error

To manage notifications about this bug go to:
https://bugs.launchpad.net/cacti/+bug/914746/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to