Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-2173

Poller failing - Uncaught ArgumentCountError: Too few arguments to function rrdtool_update_ng

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Community Edition
    • Poller
    • 4.4.46-1-ARCH #1 SMP Fri Feb 3 19:02:01 MST 2017 armv7l GNU/Linux
      php 7.1.1-1
      apache 2.4.25-1
      mariadb 10.1.21-1
      Observium Community Edition 0.16.10.8128

    Description

      New install, running into an issue with the poller. poller-wrapper.php 5 min update timer is running fine with no error, however getting error in drawing graphs.

      I found errors in the graph error details, and then ran a manual./poller.php -h all - where I could see the poller itself failing.

      ./discovery.php -h all - works fine, It's pulling all the data from my devices except for graphs, and the rrd/ dir has each device dir created, but no data within.

      Error output from ./poller.php -h all -d:

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

      Attachments

        Activity

          [OBS-2173] Poller failing - Uncaught ArgumentCountError: Too few arguments to function rrdtool_update_ng

          Aha! all working downgraded to 7.0, looks like my php updated to 7.1 in Dec for my distro.
          I tried checking the release notes on Pro but couldn't find anything related, I will look for the CE update in the future. Thanks!

          bofslime Brian Morisette added a comment - Aha! all working downgraded to 7.0, looks like my php updated to 7.1 in Dec for my distro. I tried checking the release notes on Pro but couldn't find anything related, I will look for the CE update in the future. Thanks!

          Yah, this is already fixed issue in Pro version, will be in next CE.

          Currently for CE I recommend switch php version to 7.0.x.
          Since php 7.1 such errors throw fatal error.

          landy Mike Stupalov added a comment - Yah, this is already fixed issue in Pro version, will be in next CE. Currently for CE I recommend switch php version to 7.0.x. Since php 7.1 such errors throw fatal error.

          People

            landy Mike Stupalov
            bofslime Brian Morisette
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: