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

RRD file permission error mitigation/reporting...

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • Professional Edition
    • Scripts
    • None

    Description

      Over the years, files in my rrd directory have inconsistent group ownership (observium or www-data) and inconsistent file permissions (mostly group write issues.)

      Command line accidents (like running poller.php as root) can also mess things up

      Incorrect cron issues aside...

      ASK:

      Would it worth making scripts that create files in the rrd directory enforce the owner/group/permissions for the files?

      My argument here is that a whole class of user confusion can be avoided by enforcing ownership/permissions when possible, and visibly noting a permissions error in the web interface when not.

      I was surprised that poller.php -h foo didn't complain when the rrd/foo directory was owned by root, and that the web interface was silent on the matter.

      Attachments

        Activity

          [OBS-4190] RRD file permission error mitigation/reporting...
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: Pending Response [ 10000 ]

          What would probably be a good idea would be to get the poller to switch to the observium user when configured so in config.php. This would solve this on new installs via the install script as we could automate it.

          adama Adam Armstrong added a comment - What would probably be a good idea would be to get the poller to switch to the observium user when configured so in config.php. This would solve this on new installs via the install script as we could automate it.
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]

          Yes.  Very helpful for troubleshooting.  

           

          JimboMatic James Hayes added a comment - Yes.  Very helpful for troubleshooting.    

          Catching more errors from rrdtool might well be useful, though.

          adama Adam Armstrong added a comment - Catching more errors from rrdtool might well be useful, though.
          adama Adam Armstrong made changes -
          Comment [ _*General questions and device support can be discussed in [our Discord channel, click here to join|https://discord.gg/GjpNXKWm8W].*_
          ----

          Please make and attach additional information about the device:
           * full snmp dump from device:
          {noformat}
          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
          {noformat}
            _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:
          {noformat}
          ./discovery.php -d -h <device>
          ./poller.php -d -h <device>
          {noformat}
           
          * additionally attach device and/or vendor specific MIB files

          ----
          {color:#505F79}_This comment is added automatically._{color} ]

          The Web UI and Poller don't always have direct access to these files, often they're accessed via rrdcached.

          It would likely be fairly slow and wasteful for most users to do permissions checks on every rrd file during polling.

           

          adama Adam Armstrong added a comment - The Web UI and Poller don't always have direct access to these files, often they're accessed via rrdcached. It would likely be fairly slow and wasteful for most users to do permissions checks on every rrd file during polling.  
          bot Observium Bot made changes -
          Status Original: Open [ 1 ] New: Pending Response [ 10000 ]
          JimboMatic James Hayes created issue -

          People

            adama Adam Armstrong
            JimboMatic James Hayes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: