On 30/08/2016 22:56, Robbie Wright wrote:
Derek, yes, we updated the router.db file to use semi-colons and are waiting for the cron job to run and see if it works without throwing an error. 

Daniel, that code does look like it would catch what version of rancid is being used, but either it can't do it by itself or the rancid version is a variable in the observium config file that needs to be set.

What makes Obersvium decide to hide or display the config tab on a device? Just the presence of a valid backup in rancid?
Yes.


Robbie Wright
541-902-5101

On Tue, Aug 30, 2016 at 1:40 PM, Daniel Horth <dan@horth.com.au> wrote:
If you read the code that is generating you rancid config file there is a big clue in there for you, i.e. in observium/scripts/generate-rancid.php:


if (isset($config['rancid_version']) && strpos($config['rancid_version'], '3') !== FALSE)
{
  // v3 delimiter
  $delimiter = ';';
} else {
  // v2 delimiter
  $delimiter = ':';

}



On 31 Aug 2016, at 5:55 AM, Robbie Wright <robbie@siuslawbroadband.com> wrote:

# RANCID router.db autogenerated by /opt/observium/scripts/generate-rancid.php
# Do not edit this file directly!

bbc-gw1.tld.net:mikrotik:up
bc-gw1.tld.net:mikrotik:up
etc, etc

We've got maybe 30 devices in that have been pulling down configs perfectly until recently. Google isn't too much help but did find a few things with people having a hard time with the colon in router.db and rancid expecting it to be a semi-colon instead. Not sure if if a rancid update changed that, but if it did, I'd expect a lot more people to be having issue besides us. Thanks Adam.


On Tue, Aug 30, 2016 at 12:47 PM, Adam Armstrong <adama@memetic.org> wrote:

What /is/ in the router.db?

Adam.

Sent from BlueMail

On 30 Aug 2016, at 14:39, Robbie Wright <robbie@siuslawbroadband.com> wrote:
Just wanted to throw this out there again. It looks like the /opt/observium/scripts/generate-rancid.php script is creating a router.db that rancid doesn't like. Which we're running 3.3. Any seen issues after the recent upgrade, throwing these errors in the log?

property 'svn:ignore' set on '.'
property 'svn:ignore' set on 'configs'
Updating '.':
At revision 521.
WARNING: Have you forgotten to update the FS in router.db?