* 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
[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 Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ======= =-===== ======= ======= ======- ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
Desired=
| Status=
|/ Err?=(none)
||/ 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: cacti/site/ lib/data_ query.php on line 183, referer: http:// localhost/ cacti/host. php?action= edit&id= 1
PHP Fatal error: Cannot use string offset as an array in /usr/share/
[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 Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ======= =-===== ======= ======= ======- ======= ======= ======= ======= ======= ======= ======= ======= ======= ===
Desired=
| Status=
|/ Err?=(none)
||/ 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 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/