![](https://secure.gravatar.com/avatar/c6a3da526f1933684c0a89612275a46a.jpg?s=120&d=mm&r=g)
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.netmailto: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.nethttp://www.praha1.net [Popis: Facebook]http://www.facebook.com/praha1net http://www.linkedin.com/pub/tomas-chott/49/97a/1aa
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
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.netmailto: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.nethttp://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
![](https://secure.gravatar.com/avatar/c6a3da526f1933684c0a89612275a46a.jpg?s=120&d=mm&r=g)
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.netmailto: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.nethttp://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.netmailto: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.nethttp://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.orgmailto:observium%40observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Adam Armstrong
-
chott@praha1.net