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? 


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?


On Fri, Aug 26, 2016 at 6:57 AM, Robbie Wright <robbie@siuslawbroadband.com> wrote:
I don't disagree Adam. Just trying to figure out how an observium update could do that. I'm by no means a rancid expert, but this is the error in /var/log/rancid/observium*

starting: Fri Aug 26 00:00:01 PDT 2016

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?


Observium is creating the router.db file and it would appear there is a problem with that file. 


On Fri, Aug 26, 2016 at 6:15 AM, Adam Armstrong <adama@memetic.org> wrote:

Hi,

Seems like you may have somehow broken rancid, which is ofc not part of observium ;)

Adam.

Sent from BlueMail

On 25 Aug 2016, at 12:57, Robbie Wright < robbie@siuslawbroadband.com> wrote:
MIke, what do you mean by user level? The show tech tab, which appears super useful btw has this:

Hostname: pud-gw1.tld.net
Short hostname: pud-gw1
Hostname different from short hostname, looking for both
Looking in configured directory:  /var/lib/rancid/observium/configs/
File  /var/lib/rancid/observium/configs/pud-gw1.tld.net  not found.
File  /var/lib/rancid/observium/configs/pud-gw1  not found.


Trying to chase this down, I've got this in the observium.yearmonthday log file:


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?

Running rancid 3.3 btw, which appears to be the most up to date on Ubuntu 16.04. Cron looks like it is running correctly and creating a log file ever time it runs and they all look like this. Of note, our config directory in /var/lib/rancid/observium is also empty now....


On Thu, Aug 25, 2016 at 2:53 AM, Mike Stupalov <mike@observium.org> wrote:
Hi,

On 25.08.16 2:37, Robbie Wright wrote:
As the title says, upgraded via svn to 8068 and the config tab is gone. Integration to smokeping still works, as well as the user agents and everything else, but no rancid. Rancid setup is still in the config file too. Anyone else seen it disappear after any update?
Which user level used?

Try to view showtech tab for device (add at end of url: "/tab=showtech/"), ie:
https://observium/device/device=101/tab=showtech/


On a side note, svn is reporting at revision 8069 while the gui is reporting 8068.


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium 



-- 
Mike Stupalov
http://observium.org

______________________________ _________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium


              

observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

______________________________ _________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium



 

observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium