php -q mikrotikTOphp.php
Notice: Undefined offset: 1 in /root/mikrotikTOphp.php on line 13
Notice: Undefined offset: 1 in /root/mikrotikTOphp.php on line 14
Timeout: No Response from 192.168.2.1.
Notice: Undefined offset: 0 in /root/mikrotikTOphp.php on line 19
Notice: Undefined offset: 1 in /root/mikrotikTOphp.php on line 20
And before you ask, the community string was correct. snmpwalk does return data…
I know that guys from Bulgaria are genies, so, can you spend a little time and make php or whatever so you can pick up html page from .cgi file and put it in lets say microsoft access .mdb database. This I need for putting traffic accounting into one database and after that, I’ll make prog myself to analyze .mdb (see accounting).
Ofcourse I bet this will use plenty of mikrotik users so we can record what/when/howmuch users used internet, not just with mrtg. Also if you do this if you can please resolve ip addresses to their names via dns and put also those names in database not only the ip’s.
Yep, ofcourse, I also mentioned traffic accounting, just to point ASM to that section in case he or others doesn’t know what I was talking about. But with /ip accounting, for now we can use either your program provided in the downloads which is not so good :(, or that wget that I never had chanse to see it couse I dont have any ‘extra’ linux machine, but I have Windows and I’ll like to have some soft. to pick up that http://routerIP/accounting/ip.cgi content and put it in .mdb database and also resolve ip’s into names, OR if you can provide us with source code of Log Downloader and we’ll play with it and make it put things in .mdb instead of plain .txt file.
If you have 100 users and you log the data every day, then at day 100 you will have 10 000 database records… that’s the reason that every database is “commpressed”. 7 days are stored as 1 week record, 4 weeks are stored as 1 mount record and so on…