Details

    • Bug
    • Resolution: Fixed
    • Critical
    • None
    • Professional Edition
    • Default
    • None
    • Observium 22.1.11858 (rolling)

    Description

      Hello,

       

      We have update our Linux server today and after that Observium discovery, polling do not work.

      observium@observium:~$ python /opt/observium/poller-wrapper.py
      PHP Fatal error:  Uncaught phpFastCache\Exceptions\phpFastCacheIOException: Path "/tmp/observium_cache/cli/Files" is not writable, please set a chmod 0777 or any writable permission and make sure to make use of an absolute path !
      Additional information provided by error_get_last():
      chmod(): Operation not permitted in /opt/observium/libs/phpFastCache/Core/Pool/IO/IOHelperTrait.php line 103 in /opt/observium/libs/phpFastCache/Core/Pool/IO/IOHelperTrait.php:121
      Stack trace:
      #0 /opt/observium/libs/phpFastCache/Drivers/Files/Driver.php(58): phpFastCache\Drivers\Files\Driver->getPath()
      #1 /opt/observium/libs/phpFastCache/Drivers/Files/Driver.php(48): phpFastCache\Drivers\Files\Driver->driverCheck()
      #2 /opt/observium/libs/phpFastCache/CacheManager.php(218): phpFastCache\Drivers\Files\Driver->__construct(Array)
      #3 /opt/observium/includes/cache.inc.php(612): phpFastCache\CacheManager::getInstance('Files')
      #4 /opt/observium/includes/sql-config.inc.php(310): include_once('/opt/observium/...')
      #5 /opt/observium/config_to_json.php(20): req in /opt/observium/libs/phpFastCache/Core/Pool/IO/IOHelperTrait.php on line 121
      ERROR: Could not load or parse observium configuration, are PATHs correct?

       

      Fastcache disabling solve problem, but without fastcache Observium is slow.

      Can you please help us.

       

      Br,

       

      Dmitri

      Attachments

        Activity

          [OBS-4008] poller-wrapper.py do not working

          Cache dir removing helps, thank you!

          dkiriljuk Dmitri Kiriljuk added a comment - Cache dir removing helps, thank you!

          As I see, main trouble that you run poller as root.

          Remove cache dir as root:

          sudo rm -rf /tmp/observium_cache/cli

          landy Mike Stupalov added a comment - As I see, main trouble that you run poller as root. Remove cache dir as root: sudo rm -rf /tmp/observium_cache/cli

          the new update do not solved the problem.

          When i execute command from cli, this ends on a first one.

          observium:~$ python /opt/observium/poller-wrapper.py 30
          WARNING! Using number of threads without command argument (-w or --workers) is deprecated! 
          Please replace your poller wrapper command line with:
          observium-wrapper poller -w 30
          This is the default poller. Will only poll devices with no specified poller set.
          INFO: starting the poller at 2022/01/27 15:47:12 with 40 threads
          INFO: poller-wrapper.py poller processed 1002 devices in 7.34 seconds with 40 threads, load average (5min) 7.40

           

          dkiriljuk Dmitri Kiriljuk added a comment - the new update do not solved the problem. When i execute command from cli, this ends on a first one. observium:~$ python /opt/observium/poller-wrapper.py 30 WARNING! Using number of threads without command argument (-w or --workers) is deprecated!  Please replace your poller wrapper command line with: observium-wrapper poller -w 30 This is the default poller. Will only poll devices with no specified poller set. INFO: starting the poller at 2022/01/27 15:47:12 with 40 threads INFO: poller-wrapper.py poller processed 1002 devices in 7.34 seconds with 40 threads, load average (5min) 7.40  

          On r11862 now is working.

          Thank you!

          dkiriljuk Dmitri Kiriljuk added a comment - On r11862 now is working. Thank you!

          Please try on r11862. (Enable caching again).

          If still get this error, now you can disable caching for cli only in config.php:

          $config['cache']['enable_cli']             = FALSE;
          

          landy Mike Stupalov added a comment - Please try on r11862. (Enable caching again). If still get this error, now you can disable caching for cli only in config.php : $config['cache']['enable_cli'] = FALSE;

          Outputs:

          observium:/opt/observium# ./discovery.php -VV
          Observium 22.1.11858

                  1.  Software versions  #####

           o OS                   Linux 4.15.0-166-generic [amd64] (Ubuntu 18.04)
           o Apache               2.4.29
           o PHP                  7.2.24-0ubuntu0.18.04.10 (OPcache: DISABLED)
           o Python               2.7.17
           o MariaDB              10.1.48-MariaDB-0ubuntu0.18.04.1 (extension: mysqli 5.0.12-dev)
           o SNMP                 NET-SNMP 5.7.3
           o RRDtool              1.7.0
           o Fping                4.0 (IPv4 and IPv6)

                  1.  Memory Limit  #####

           o PHP                  10GB

                  1.  MariaDB mode  #####

           o MariaDB              NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

                  1.  Charset info  #####

           o PHP                  UTF-8
           o MariaDB              utf8

                  1.  Timezones info  #####

           o Date                 Thursday, 27-Jan-22 14:09:00 EET
           o PHP                  +02:00
           o MariaDB              +02:00

           

          ls -l /tmp/observium_cache/cli/
          total 4
          drwxr-xr-x 2 root root 4096 Jan 27 09:00 Files

           

          1. ls -l /tmp/ | grep observium
            drwxrwxrwx 4 syslog  syslog       4096 Jan 27 09:00 observium_cache
          dkiriljuk Dmitri Kiriljuk added a comment - Outputs: observium:/opt/observium# ./discovery.php -VV Observium 22.1.11858  Software versions  #####  o OS                   Linux 4.15.0-166-generic [amd64] (Ubuntu 18.04)  o Apache               2.4.29  o PHP                  7.2.24-0ubuntu0.18.04.10 (OPcache: DISABLED)  o Python               2.7.17  o MariaDB              10.1.48-MariaDB-0ubuntu0.18.04.1 (extension: mysqli 5.0.12-dev)  o SNMP                 NET-SNMP 5.7.3  o RRDtool              1.7.0  o Fping                4.0 (IPv4 and IPv6)  Memory Limit  #####  o PHP                  10GB  MariaDB mode  #####  o MariaDB              NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION  Charset info  #####  o PHP                  UTF-8  o MariaDB              utf8  Timezones info  #####  o Date                 Thursday, 27-Jan-22 14:09:00 EET  o PHP                  +02:00  o MariaDB              +02:00   ls -l /tmp/observium_cache/cli/ total 4 drwxr-xr-x 2 root root 4096 Jan 27 09:00 Files   ls -l /tmp/ | grep observium drwxrwxrwx 4 syslog  syslog       4096 Jan 27 09:00 observium_cache

          Additionally, please show dir permissions for:

          ls -l /tmp/observium_cache/cli/
          ls -l /tmp/ | grep observium

          landy Mike Stupalov added a comment - Additionally, please show dir permissions for: ls -l /tmp/observium_cache/cli/ ls -l /tmp/ | grep observium

          Please show versions which installed on your install:

          ./discovery.php -VV
          

          landy Mike Stupalov added a comment - Please show versions which installed on your install: ./discovery.php -VV

          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 -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -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 -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -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
            dkiriljuk Dmitri Kiriljuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: