Hello,
I installed rrdgraph as per the instructions here (https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config:rrd-graph-monitoring) but experience authorization issues when running the cron.
This is what I see when I manually run 'ls_stats/update.php'
I went into 'ls_stats/sources/lsws_stats.php' and changed line 80 from
to
(using my LiteSpeed WebAdmin Console username/password)
but it didn't help either.
When I curl the above URL manually, I get the following:
Is there any other setting I need to enable in LiteSpeed, for rrdgraph to operate?
Best regards,
George T.
I installed rrdgraph as per the instructions here (https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config:rrd-graph-monitoring) but experience authorization issues when running the cron.
This is what I see when I manually run 'ls_stats/update.php'
Code:
#!/usr/bin/php
Working on cpu
Updating RRD-file
Working on load
Updating RRD-file
Working on memory
Updating RRD-file
Working on lsws_stats
Warning: file_get_contents(http://localhost:7080/status?rpt=summary): failed to open stream: HTTP request failed! HTTP/1.0 401 Unauthorized
in /home/[my_cpanel_user]/public_html/ls_stats/sources/lsws_stats.php on line 80
Notice: Trying to get property of non-object in /home/[my_cpanel_user]/public_html/ls_stats/sources/lsws_stats.php on line 265
Notice: Trying to get property of non-object in /home/[my_cpanel_user]/public_html/ls_stats/sources/lsws_stats.php on line 267
Notice: Trying to get property of non-object in /home/[my_cpanel_user]/public_html/ls_stats/sources/lsws_stats.php on line 268
Notice: Trying to get property of non-object in /home/[my_cpanel_user]/public_html/ls_stats/sources/lsws_stats.php on line 270
Notice: Trying to get property of non-object in /home/[my_cpanel_user]/public_html/ls_stats/sources/lsws_stats.php on line 271
Notice: Trying to get property of non-object in /home/[my_cpanel_user]/public_html/ls_stats/sources/lsws_stats.php on line 272
Notice: Trying to get property of non-object in /home/[my_cpanel_user]/public_html/ls_stats/sources/lsws_stats.php on line 273
Updating RRD-file
Code:
$content = file_get_contents('http://localhost:7080/status?rpt=summary');
Code:
$content = file_get_contents('http://username:password@localhost:7080/status?rpt=summary');
but it didn't help either.
When I curl the above URL manually, I get the following:
Code:
# curl -I http://localhost:7080/status?rpt=summary
HTTP/1.1 401 Unauthorized
Date: Tue, 26 Jul 2016 11:27:37 GMT
Accept-Ranges: bytes
Server: LiteSpeed
WWW-Authenticate: Basic realm="StatusAccess"
Connection: Keep-Alive
Best regards,
George T.