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

Error in table structure 'ports-state'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • Poller

    Description

      After commit #3309, poller write errors like this:

      PHP Warning:  QDB - Insert failed. in /usr/local/www/observium/includes/dbFacile.php on line 81
      PHP Warning:  QDB - Insert failed. in /usr/local/www/observium/includes/dbFacile.php on line 81
      

      This is due to the fact that in file ports.inc.php (line 402) is an attempt to add data:

      $insert = dbInsert(array('port_id' => $port['port_id']), 'ports-state');
      

      But the structure of the table 'posts-state' does not allow an NULL field for the `ifInOctets_perc` and `ifOutOctets_perc`.

      Attached patch for fix this.

      Attachments

        Activity

          People

            adama Adam Armstrong
            landy Mike Stupalov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: