You seem to have very helpfully left out your observium version...!

Adam.

Sent from BlueMail
On 16 Mar 2017, at 22:00, Sir l33tname <sirl33tname@gmail.com> wrote:
I switch to the latest php version and suddenly all graphs stopped
working. (I'm not really sure that this is the reason)

But if anyone have the same problem my stacktraces and how I fixed it
with changing the line 484 in
/usr/local/www/observium/includes/rrdtool.inc.php
from
function rrdtool_update_ng($device, $type, $ds, $index, $create = TRUE)
to
function rrdtool_update_ng($device, $type, $ds, $index = NULL, $create =
TRUE)

If anyone have an idea why this is broken or if I'm using it wrong or
has more infos on this would be nice.

stacktrace:

/usr/local/www/observium # /usr/bin/env php
/usr/local/www/observium/poller.php -d -h 1

##### Software versions #####

o OS FreeBSD GENERIC [amd64] ( 11.0-RELEASE-p2)
o Apache 2.4.25
o PHP 7.1.2
o Python 3.6.0
o MySQL 10.1.21-MariaDB (extension: mysqli 5.0.12-dev)
o SNMP NET-SNMP 5.7.3
o RRDtool 1.6.0


o Device status Device is reachable by PING (2.31ms) and SNMP
(17.58ms)
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to
function rrdtool_update_ng(), 3 passed in
/usr/local/www/observium/includes/polling/functions.inc.php on line 566
and at least 4 expected in
/usr/local/www/observium/includes/rrdtool.inc.php:484
Stack trace:
#0 /usr/local/www/observium/includes/polling/functions.inc.php(566):
rrdtool_update_ng(Array, 'status', Array)
#1 /usr/local/www/observium/poller.php(170): poll_device(Array, Array)
#2 {main}
thrown in /usr/local/www/observium/includes/rrdtool.inc.php on line 484

Fatal error: Uncaught ArgumentCountError: Too few arguments to function
rrdtool_update_ng(), 3 passed in
/usr/local/www/observium/includes/polling/functions.inc.php on line 566
and at least 4 expected in
/usr/local/www/observium/includes/rrdtool.inc.php:484
Stack trace:
#0 /usr/local/www/observium/includes/polling/functions.inc.php(566):
rrdtool_update_ng(Array, 'status', Array)
#1 /usr/local/www/observium/poller.php(170): poll_device(Array, Array)
#2 {main}
thrown in /usr/local/www/observium/includes/rrdtool.inc.php on line 484





observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium