Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • CE-22.5
    • Web Interface
    • None

    Description

      For the RANCID integration the PHP function is_file does not follow symlinks. For situations where you might create a link or have extra configurations in your RANCID setup, this can create misleading results for the showconfig tab.

      To allow for a more flexible RANCID setup, I added a small bit of code to the get_rancid_filename() function that uses readlink() in PHP to follow the symlink source substitute it – ensuring the configuration shown is correct.

      Review the suggested change to ./html/includes/integrations.inc.php here: https://gist.github.com/joneswac/e7cd08f768a2f166fa383a05542b27f1

      You can see in the screenshot what it looks like when a symlinked directory exists in the RANCID configuration path.

      Attachments

        Activity

          [OBS-4576] Rancid integration handle symlinks

          Function is_file() always follow for symlinks (mean it return TRUE for symlinks too).
          Your trouble only with file_get_contents().

          Fixed in r12916.

          landy Mike Stupalov added a comment - Function is_file() always follow for symlinks (mean it return TRUE for symlinks too). Your trouble only with file_get_contents() . Fixed in r12916.

          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
            joneswac Wesley Jones
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: