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

Updated to the latest version and getting PHP errors

Details

    • Bug
    • Resolution: Not A Bug
    • Critical
    • None
    • CE-22.5
    • Discovery

    Description

      I'm upgrading from 23.4.12651 to 23.6.12860.  I run 'svn update' in /opt/observium.  When I try to run 'discovery -u' I get the following:

      Updated to revision 12863.
      root@observium1:/opt/observium# ./discovery.php -u
      PHP Parse error:  syntax error, unexpected '=' in /opt/observium/includes/observium.inc.php on line 427

       

      This is running on: 

      PRETTY_NAME="Ubuntu 18.04.6 LTS"

       

      Please let me know if you need to see any logs or anything else.  

      Attachments

        Issue Links

          Activity

            [OBS-4532] Updated to the latest version and getting PHP errors
            landy Mike Stupalov added a comment - - edited

            You should upgrade your php version to 7.2 or greater.

            Mail list and Discord announcement:

            Our latest STABLE merge will permanently break compatibility with PHP versions below
            7.1.x. Our official minimum is 7.2 (though we strongly recommend 7.4 or 8.1).
            Please make sure you're compatible before you next update! :)
            We're not yet sure when our minimum will switch to 8.1, but if you can,
            we'd recommend upgrading to that. Upgrading on most distributions from
            the past 8 or so years is not too difficult, but if you're on very old distributions,
            we might recommend upgrading the entire distro.
            Newer rrdtool and MySQL is a benefit too.
            

            landy Mike Stupalov added a comment - - edited You should upgrade your php version to 7.2 or greater. Mail list and Discord announcement: Our latest STABLE merge will permanently break compatibility with PHP versions below 7.1.x. Our official minimum is 7.2 (though we strongly recommend 7.4 or 8.1). Please make sure you're compatible before you next update! :) We're not yet sure when our minimum will switch to 8.1, but if you can, we'd recommend upgrading to that. Upgrading on most distributions from the past 8 or so years is not too difficult, but if you're on very old distributions, we might recommend upgrading the entire distro. Newer rrdtool and MySQL is a benefit too.

            General questions and device support can be discussed in our Discord channel, click here to join.


            Please make and attach additional information about the device:

            • full snmp dump from device:

              snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk
              snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk

              If device not support SNMP version 2c, replace -v2c with -v1.

            • If you have problems with discovery or poller processes, please do and attach these debugs:

              ./discovery.php -d -h <device>
              ./poller.php -d -h <device>

            • additionally attach device and/or vendor specific MIB files

            This comment is added automatically.

            bot Observium Bot added a comment - General questions and device support can be discussed in our Discord channel, click here to join . Please make and attach additional information about the device: full snmp dump from device: snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk If device not support SNMP version 2c, replace -v2c with -v1. If you have problems with discovery or poller processes, please do and attach these debugs: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files This comment is added automatically.

            People

              landy Mike Stupalov
              jason@unitedlayer.com Jason Berenson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: