VNstat2 и PF 2.1 calendar problem
-
- Please upload a zip of your /usr/local/www/vnstat directory
- Paste result of find / -name *vnstat*
- Paste result of find / -name *re1*
- Paste result of ls in /conf/vnstat
- backup your /conf/vnstat folder
- delete all files inside /conf/vnstat
- add the interfaces to vnstat : vnstat -u -i re1 vnstat -u -i re2 vnstat -u -i re3
- check php front end again to see if the date is fixed.
upload my file /usr/local/www/vnstat here?
- vnstat : vnstat -u -i re1 vnstat -u -i re2 vnstat -u -i re3 - command not found
![4 ls conf vnstat.jpg](/public/imported_attachments/1/4 ls conf vnstat.jpg)
![4 ls conf vnstat.jpg_thumb](/public/imported_attachments/1/4 ls conf vnstat.jpg_thumb)
![error adding interface.jpg](/public/imported_attachments/1/error adding interface.jpg)
![error adding interface.jpg_thumb](/public/imported_attachments/1/error adding interface.jpg_thumb) -
-
- Please upload a zip of your /usr/local/www/vnstat directory
- Paste result of find / -name *vnstat*
- Paste result of find / -name *re1*
- Paste result of ls in /conf/vnstat
- backup your /conf/vnstat folder
- delete all files inside /conf/vnstat
- add the interfaces to vnstat : vnstat -u -i re1 vnstat -u -i re2 vnstat -u -i re3
- check php front end again to see if the date is fixed.
upload my file /usr/local/www/vnstat here?
- vnstat : vnstat -u -i re1 vnstat -u -i re2 vnstat -u -i re3 - command not found
I cleaned up my post. Please use the command one at a time. vnstat -u -i interfacename.
1. I cleared /cf/vnstat/ folder
2. I executed command, they are created new DB with normal date (today date), then i copied old vnstat data (re1 re2 re3 files) and it shows me old date 16 jan (again).
How can I can save my old vnstat data in new DataBase re1 re 2 re3?
-
1. I cleared /cf/vnstat/ folder
2. I executed command, they are created new DB with normal date (today date), then i copied old vnstat data (re1 re2 re3 files) and it shows me old date 16 jan. How can I can save my old vnstat data?This means that something has gone wrong with your old database. Did you change your server date sometime? Make a timezone change? Or something?
1. With new database do vnstat –dumpdb -i re1 and vnstat --dumpdb -i .re1
2. With old database put back do vnstat --dumpdb -i re1 and vnstat --dumpdb -i .re1
3. Please zip .re1 & re1 files and attach to your post -
1. I cleared /cf/vnstat/ folder
2. I executed command, they are created new DB with normal date (today date), then i copied old vnstat data (re1 re2 re3 files) and it shows me old date 16 jan. How can I can save my old vnstat data?This means that something has gone wrong with your old database. Did you change your server date sometime? Make a timezone change? Or something?
1. With new database do vnstat –dumpdb -i re1 and vnstat --dumpdb -i .re1
2. With old database put back do vnstat --dumpdb -i re1 and vnstat --dumpdb -i .re1I do not remember, I changed timezone in old server - 2.0.x
then we bought new PC and i installed clean PF 2.1, imported some config (from backup/restore) but vnstat database I did not copy. But I have one server, whith clean install and clean configurations, whithout backups and restore and it have same problem.
Is there right command? They look same in first and second part.
I done first command:
vnstat –dumpdb -i re1
then
vnstat --dumpdb -i .re1
then copied old base re1 and .re1 with ovewright files
then in cmd - vnstat --dumpdb -i re1 and vnstat --dumpdb -i .re1 and not see data from new base, only old data with 16 jan, and not 17 jan... -
Please paste the results and zip the old .re1 and re1 files and upload them here http://www.sendspace.com/ and give me link
-
Please paste the results and zip the old .re1 and re1 files and upload them here http://www.sendspace.com/ and give me link
http://www.sendspace.com/file/a95550
-
Please post your /etc/crontab
-
Please post your /etc/crontab
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#minute hour mday month wday who commandpfSense specific crontab entries
Created: January 17, 2014, 4:27 pm
0 * * * * root /usr/bin/nice -n20 newsyslog
1,31 0-5 * * * root /usr/bin/nice -n20 adjkerntz -a
1 3 1 * * root /usr/bin/nice -n20 /etc/rc.update_bogons.sh
*/60 * * * * root /usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 sshlockout
1 1 * * * root /usr/bin/nice -n20 /etc/rc.dyndns.update
*/60 * * * * root /usr/bin/nice -n20 /usr/local/sbin/expiretable -v -t 3600 virusprot
30 12 * * * root /usr/bin/nice -n20 /etc/rc.update_urltables
0 0 * * * root /bin/rm /var/squid/cache/swap.state; /usr/pbi/squid-i386/sbin/squid -k rotate
*/15 * * * * root /usr/local/pkg/swapstate_check.php
*/1 * * * * root /usr/local/pkg/vnstat2.sh
*/1 * * * * root /root/tolog.sh
*/10 * * * * root /usr/bin/perl /usr/pbi/lightsquid-i386/www/lightsquid/lightparser.pl today
15 0 * * * root /usr/bin/perl /usr/pbi/lightsquid-i386/www/lightsquid/lightparser.pl yesterday
0 0 * * * root /usr/bin/nice -n20 /usr/pbi/squidguard-i386/etc/rc.d/squidGuard_logrotateIf possible do not add items to this file manually.
If you do so, this file must be terminated with a blank line (e.g. new line)
-
If you do vnstat -u are the dates correct?
-
-
If you do vnstat -u are the dates correct?
In cmd? in cmd result of vnstat -u empty
Look at php front end dates now. does it say 17th
-
If you do vnstat -u are the dates correct?
In cmd? in cmd result of vnstat -u empty
Look at php front end dates now. does it say 17th
Yes, but in Moscow 18 jan…
-
If you do vnstat -u are the dates correct?
In cmd? in cmd result of vnstat -u empty
Look at php front end dates now. does it say 17th
Yes, but in Moscow 18 jan…
so does it say 18th now?
-
If you do vnstat -u are the dates correct?
In cmd? in cmd result of vnstat -u empty
Look at php front end dates now. does it say 17th
Yes, but in Moscow 18 jan…
so does it say 18th now?
No 17…
Today, 18 jan I (have) test:
I del files re1 re2 re3 .re1 .re2 .re3 and cmd vnstat -u -i re1 and others
I got at the phpfrontend clean base with zero data and date 17 jan (but today 18)
-
add:
Then I copied old base (end data 16 jan) and refresh phpfrontend - programm add 17 jan, not 18…
In russian thread is another person with same problem - in the base he has two 2013 year. (And I have two 2013 year too)
-
1. I cleared /cf/vnstat/ folder
2. I executed command, they are created new DB with normal date (today date), then i copied old vnstat data (re1 re2 re3 files) and it shows me old date 16 jan (again).
How can I can save my old vnstat data in new DataBase re1 re 2 re3?So when you create new database files for re1 re2 and re3 is the date right or wrong? You seem to have contradicted yourself. Forget about copying back the old files. We need to know if the new database files have the correct date or not.
-
1. I cleared /cf/vnstat/ folder
2. I executed command, they are created new DB with normal date (today date), then i copied old vnstat data (re1 re2 re3 files) and it shows me old date 16 jan (again).
How can I can save my old vnstat data in new DataBase re1 re 2 re3?So when you create new database files for re1 re2 and re3 is the date right or wrong? You seem to have contradicted yourself. Forget about copying back the old files. We need to know if the new database files have the correct date or not.
Today - 18jan date wrong - 17jan.
But when i created clean DB yesterday (17 jan) it was normal 17 jan!
18 jan I decided to forget about problem and begin life with new base and was shocked when my new base got wrong date!
In 10 minutes I do new test with scrennshots. -
1 screenshot - current base (old data)
2 - kill all DB files
3 cmd command to create DB - wrong data :(After that
1. I copied old base with ovewright - in base old data - to 16 jan
2. in cmd exc command vnstat -u -i re1 and others
and in phpfrontend
I saw plus one day - 16 jan and 17 jan
P.S. today 18 jan![current base.jpg](/public/imported_attachments/1/current base.jpg)
![current base.jpg_thumb](/public/imported_attachments/1/current base.jpg_thumb)
![killed all data.jpg](/public/imported_attachments/1/killed all data.jpg)
![killed all data.jpg_thumb](/public/imported_attachments/1/killed all data.jpg_thumb)
![new base.jpg](/public/imported_attachments/1/new base.jpg)
![new base.jpg_thumb](/public/imported_attachments/1/new base.jpg_thumb) -
Ok. Very strange. with this clean database can you please post the output of vnstat -i re1 –dumpdb