Because it's not actually cronned ;)

On 2015-08-06 14:28, Nate Mellendorf wrote:
Here's an example of my CRON job for RANCID:
30 23 * * *   root  php /core1/observium/scripts/generate-rancid.php >
/var/lib/rancid/all/router.db && chown rancid: /var/lib/rancid/all/router.db

Not quite sure why yours isn't working though.
Permissions, maybe?

Nate Mellendorf | NETWORK ANALYST | Netgain
720 West Saint Germain Street | St. Cloud | MN | 56301
Phone: 320.251.4700 x183 | 877.797.4700 x183 
www.NetgainHosting.com


-----Original Message-----

----------------------------------------------------------------------

Message: 1
Date: Thu, 6 Aug 2015 10:01:25 +0000
From: "chott@praha1.net" <chott@praha1.net>
To: "observium@observium.org" <observium@observium.org>
Subject: [Observium] RANCID Script
Message-ID:
	<8DE59ADBFC8D06458B47A51E9C02A25CB8A759F6@exchange1.airess.cz>
Content-Type: text/plain; charset="iso-8859-2"

Hello team

i have question about Automation of
/opt/observium/scripts/generate-rancid.php

i have added this

 0 5 * * * /var/lib/rancid/bin/rancid-run  #hourly router dump
 50 23 * * * /usr/bin/find /var/lib/rancid/logs -type f -mtime   +2 -exec rm
{} \;

Into Crontab, but yesterday we are add new switch but Rancid doesnt have in
ROUTERS DB file

after run manualy /opt/observium/scripts/generate-rancid.php

new switch is now in rancid DB file

Tomas



[email-header-praha1]


Tomas Chott
technick? ?editel
chott@praha1.net<mailto:chott@praha1.net>
Phone: +420 245 004 005
Mobile: +420 604 930 119

Metropolitn? s?? Praha 1 z.s.p.o.
Jindrisska 18
110 00 Praha 1
Czech Republic
www.praha1.net<http://www.praha1.net>
[Popis: Facebook]<http://www.facebook.com/praha1net>
<http://www.linkedin.com/pub/tomas-chott/49/97a/1aa>

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://postman.memetic.org/pipermail/observium/attachments/20150806/225df4a
a/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 06 Aug 2015 11:04:17 +0100
From: Adam Armstrong <adama@memetic.org>
To: Observium Network Observation System <observium@observium.org>
Subject: Re: [Observium] RANCID Script
Message-ID:
	<14f0277e500.275b.0fa97865a0e1ab36152b6b2299eedb49@memetic.org>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

The things you added to crontab aren't running the observium script. You
need to put that into crontab :)

Adam.

Sent with AquaMail for Android
http://www.aqua-mail.com


On 6 August 2015 11:01:46 am "chott@praha1.net" <chott@praha1.net> wrote:

Hello team

i have question about Automation of 
/opt/observium/scripts/generate-rancid.php

i have added this

 0 5 * * * /var/lib/rancid/bin/rancid-run  #hourly router dump
 50 23 * * * /usr/bin/find /var/lib/rancid/logs -type f -mtime   +2 -exec
rm 
 {} \;

Into Crontab, but yesterday we are add new switch but Rancid doesnt 
have in ROUTERS DB file

after run manualy /opt/observium/scripts/generate-rancid.php

new switch is now in rancid DB file

Tomas



[email-header-praha1]


Tomas Chott
technick? ?editel
chott@praha1.net<mailto:chott@praha1.net>
Phone: +420 245 004 005
Mobile: +420 604 930 119

Metropolitn? s?? Praha 1 z.s.p.o.
Jindrisska 18
110 00 Praha 1
Czech Republic
www.praha1.net<http://www.praha1.net>
[Popis: Facebook]<http://www.facebook.com/praha1net>
<http://www.linkedin.com/pub/tomas-chott/49/97a/1aa>




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

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://postman.memetic.org/pipermail/observium/attachments/20150806/55ba50b
c/attachment-0001.html>

------------------------------

Message: 3
Date: Thu, 6 Aug 2015 10:17:49 +0000
From: "chott@praha1.net" <chott@praha1.net>
To: Observium Network Observation System <observium@observium.org>
Subject: Re: [Observium] RANCID Script
Message-ID:
	<8DE59ADBFC8D06458B47A51E9C02A25CB8A75A3D@exchange1.airess.cz>
Content-Type: text/plain; charset="iso-8859-2"

Right

but if i start manualy procedure by http://www.observium.org/docs/rancid/

1)  Run Generate DB from Observium to DB file (Work fine)
rancid@observium:/opt/observium/scripts$ php generate-rancid.php
2) Copy from Observium to DB file (Working fine) php
/opt/observium/scripts/generate-rancid.php >
/var/lib/rancid/observium/router.db
3) run (working)

/var/lib/rancid/bin/rancid-run


But this working only for manual start, if add New switch into observium,
CRONTAB with

 0 5 * * * /var/lib/rancid/bin/rancid-run  #hourly router dump
 50 23 * * * /usr/bin/find /var/lib/rancid/logs -type f -mtime   +2 -exec rm
{} \;

Dumping only Generate Config from old DB file, and there missing New switch
added yesterday

What must all will be in CRONTAB for Automation Rancid?


[email-header-praha1]


Tomas Chott
technick? ?editel
chott@praha1.net<mailto:chott@praha1.net>
Phone: +420 245 004 005
Mobile: +420 604 930 119

Metropolitn? s?? Praha 1 z.s.p.o.
Jindrisska 18
110 00 Praha 1
Czech Republic
www.praha1.net<http://www.praha1.net>
[Popis: Facebook]<http://www.facebook.com/praha1net>
<http://www.linkedin.com/pub/tomas-chott/49/97a/1aa>

________________________________
Od: observium [observium-bounces@observium.org] za u?ivatele Adam Armstrong
[adama@memetic.org]
Odesl?no: 6. srpna 2015 12:04
Komu: Observium Network Observation System
P?edm?t: Re: [Observium] RANCID Script


The things you added to crontab aren't running the observium script. You
need to put that into crontab :)

Adam.

Sent with AquaMail for Android
http://www.aqua-mail.com

On 6 August 2015 11:01:46 am "chott@praha1.net" <chott@praha1.net> wrote:

Hello team

i have question about Automation of
/opt/observium/scripts/generate-rancid.php

i have added this

 0 5 *
* *
/var/lib/rancid/bin/rancid-run
 #hourly router dump
 50 23 * * *
/usr/bin/find /var/lib/rancid/logs -type f -mtime   +2 -exec rm {}
\;

Into Crontab, but yesterday we are add new switch but Rancid doesnt have in
ROUTERS DB file

after run manualy
/opt/observium/scripts/generate-rancid.php

new switch is now
in rancid DB file

Tomas



[email-header-praha1]


Tomas Chott
technick? ?editel
chott@praha1.net<mailto:chott@praha1.net>
Phone: +420 245 004 005
Mobile: +420 604 930 119

Metropolitn? s?? Praha 1 z.s.p.o.
Jindrisska 18
110 00 Praha 1
Czech Republic
www.praha1.net<http://www.praha1.net>
[Popis: Facebook]<http://www.facebook.com/praha1net>
<http://www.linkedin.com/pub/tomas-chott/49/97a/1aa>

_______________________________________________
observium mailing list
observium@observium.org<mailto:observium%40observium.org>
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://postman.memetic.org/pipermail/observium/attachments/20150806/5866500
8/attachment.html>

------------------------------

Subject: Digest Footer

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


------------------------------

End of observium Digest, Vol 61, Issue 30
*****************************************


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