![]() |
Cacti Templates "ExtApp" and "Vhost" queries not working
I've setup LiteSpeed's Cacti templates according to this article: http://www.litespeedtech.com/support...cti_monitoring
However, the data queries for "ExtApp" and "Vhost" return 0 items and 0 rows. The "General" data query is working fine though and it's graphs too. Cacti version: 0.8.7i LiteSpeed version: 4.1.10 Standard SNMPD: net-snmp-5.3.2.2 ExtApp query debug: Code:
+ Running data query [11].Code:
+ Running data query [10].Code:
rocommunity xxxCode:
<? |
Can you try "Monitor LiteSpeed Server Status via RRD Graph"
http://www.litespeedtech.com/support...aph_monitoring it's simple and easy to setup, and we recommend it. if RRD working fine, probably "class.litespeed_snmp_bridge.php" need some update, to fix your cacti issue. |
Code:
[root@xxx]# /usr/local/lsws/lsphp5/bin/php /xxx/ls_stats/update.php |
/path/to/lsphp5 usually refers to /usr/local/lsws/fcgi-bin/lsphp5 (/usr/local/lsws is the lsws install root). iow, the correct command is:
Quote:
|
Thanks for your reply, but same result, I've already tried that.
|
class.litespeed_stats.php
change;
$found = preg_match_all("/REQ_RATE \[([^\]]*)\]: REQ_PROCESSING: ([0-9]+), REQ_PER_SEC: ([0-9]+).([0-9]+), TOT_REQS: ([0-9]+)/i",$content,$result); and $found = preg_match_all("/EXTAPP \[([^\]]*)\] \[([^\]]*)\] \[([^\]]*)\]: CMAXCONN: ([0-9]+), EMAXCONN: ([0-9]+), POOL_SIZE: ([0-9]+), INUSE_CONN: ([0-9]+), IDLE_CONN: ([0-9]+), WAITQUE_DEPTH: ([0-9]+), REQ_PER_SEC: ([0-9]+).([0-9]+), TOT_REQS: ([0-9]+)/i",$content,$result); |
| All times are GMT -7. The time now is 02:12 AM. |