Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:config:snmp-cacti-monitoring [2015/07/30 18:29] Michael Alegre created |
litespeed_wiki:config:snmp-cacti-monitoring [2016/10/13 13:43] Johathan Kagan |
||
---|---|---|---|
Line 32: | Line 32: | ||
<code> | <code> | ||
- | cd /lswsinstall/add-ons/snmp_monitoring/ | + | cd /usr/local/lsws/add-ons/snmp_monitoring/ |
cp litespeed_general.xml /cacti_install_path/resource/snmp_queries/ | cp litespeed_general.xml /cacti_install_path/resource/snmp_queries/ | ||
cp litespeed_vhostxml /cacti_install_path/resource/snmp_queries/ | cp litespeed_vhostxml /cacti_install_path/resource/snmp_queries/ | ||
Line 55: | Line 55: | ||
=== I. Install PHP 5 === | === I. Install PHP 5 === | ||
- | For CentOS 5 users. | + | As of latest versions of LiteSpeed WebServer, PHP comes preinstalled. Check if it is installed and if it is at least PHP5 by running the following: |
+ | |||
+ | <code> | ||
+ | /usr/local/lsws/lsphp5/bin/php -v | ||
+ | </code> | ||
+ | |||
+ | If not follow the steps here: | ||
+ | |||
+ | For CentOS 5/6/7 users. | ||
<code> | <code> | ||
Line 88: | Line 96: | ||
.1.3.6.1.4.1.22253 is the official OID registered to LiteSpeed Technologies so there should not be any OID conflict. | .1.3.6.1.4.1.22253 is the official OID registered to LiteSpeed Technologies so there should not be any OID conflict. | ||
+ | |||
+ | Be sure to replace /usr/bin/php and /litespeed_snmp_scripts/sample.php with the paths that you have setup on your server. | ||
Content of "sample.php" included with package. | Content of "sample.php" included with package. | ||
<code> | <code> | ||
- | <? | + | <?php |
require_once("class.litespeed_snmp_bridge.php"); | require_once("class.litespeed_snmp_bridge.php"); | ||
Line 161: | Line 171: | ||
Time to generate all those pretty graphs everyone love so much. | Time to generate all those pretty graphs everyone love so much. | ||
+ | |||
+ | === IV. Issues === | ||
+ | Sometimes people run into issues setting up Cacti with LiteSpeed. Here are a couple of the most common. | ||
+ | |||
+ | Double check PHP | ||
+ | |||
+ | <code> | ||
+ | # If you installed via yum | ||
+ | /usr/bin/php -v | ||
+ | # If you are using prebuilt | ||
+ | /usr/local/lsws/lsphp5/bin/php -v | ||
+ | </code> | ||
+ | |||
+ | Receiving error "End of MIB" when running snmpwalk? | ||
+ | |||
+ | This usually means there is an error with you snmpd.conf . Try replacing your snmpd.conf with the sample we provide above. | ||
+ | |||
+ | Bad paths in snmpd.conf. | ||
+ | |||
+ | Double check your paths for PHP and snmp_monitoring in your snmpd.conf . If there is a mistake with either, it will not communicate with cacti. | ||
+ | |||
+ | Make sure snmp is running. | ||
+ | |||
+ | <code> | ||
+ | service snmpd status | ||
+ | </code> | ||
===== C. Graphs & Cacti ===== | ===== C. Graphs & Cacti ===== |