sasanrose / phpredmin

Yet another web interface for Redis
BSD 3-Clause "New" or "Revised" License
404 stars 96 forks source link

redmin stats empty for memory/cp, client, and AOF #64

Open msims-okta opened 9 years ago

msims-okta commented 9 years ago

Hello! I've set up cron according to instructions. I've ran it manually and no errors were produced.

redmin stats page has No Data for Memory/CPU, Client, and AOF. But the keys tab shows data.

I'm using the latest Redis 3.0. 'redis-cli info' does show data for keys and clients, etc. Not sure if I'm missing something else?

sasanrose commented 9 years ago

Hi, sorry for delay.

Is there any key prefixed with phpredmin:, stored in your redis?

gabrielwinnberg commented 8 years ago

Hello, I too have this issue. Yes, searching for php* I get this:

phpredmin:terminal:history  List    -   ziplist 1
phpredmin:terminal:history:pointer  String  -   int 2

I run nginx and Phpredmin seems to be working without having edited nginx.conf. Am I wrong in supposing that?

I haven't installed Gearman but that is only needed for bulk deletions, right?

I set log level to debug:

[2016-07-17 03:53:12] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/keys/search/0/0?key=php*
[2016-07-17 03:53:36] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/welcome/stats/0/0
[2016-07-17 03:53:36] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/stats/memory/0/0?from=1468677216&to=1468720416
[2016-07-17 03:53:36] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/stats/cpu/0/0?from=1468677216&to=1468720416
[2016-07-17 03:53:36] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/stats/clients/0/0?from=1468677216&to=1468720416
[2016-07-17 03:53:36] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/stats/keys/0/0?from=1468677216&to=1468720416
[2016-07-17 03:53:36] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/stats/commands/0/0?from=1468677216&to=1468720416
[2016-07-17 03:53:36] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/stats/dbkeys/0/0?from=1468677216&to=1468720416
[2016-07-17 03:53:36] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/stats/dbexpires/0/0?from=1468677216&to=1468720416
[2016-07-17 03:53:36] [178.78.250.15] [Router] [info]: /webbadmin/phpredmin/public/index.php/stats/aof/0/0?from=1468677216&to=1468720416
gabrielwinnberg commented 8 years ago

When I run the script put in cron separately I get:

sudo php index.php cron/index
PHP Notice:  Undefined index: REQUEST_METHOD in /var/www/dev.konsttorget.se/webbadmin/phpredmin/libraries/router.php on line 31
PHP Notice:  Undefined index: HTTP_HOST in /var/www/dev.konsttorget.se/webbadmin/phpredmin/libraries/router.php on line 36
gabrielwinnberg commented 8 years ago

Got it working. Solution was similar to @Airead's here: #10 I use no special location in nginx for phpredmin. Thanks for a great interface!

gabrielwinnberg commented 8 years ago

Actually, I can only see two sampling points in the diagrams. It doesn't seem to be collecting any statistics.

Suggestions?

sasanrose commented 7 years ago

@gabrielwinnberg You have to setup the crob jobs for statistics