Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:config:snmp-cacti-monitoring [2015/07/30 18:29]
Michael Alegre created
litespeed_wiki:config:snmp-cacti-monitoring [2017/05/11 21:20]
Michael Alegre
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  =====
Line 235: Line 271:
 ==== 4. Sample Graphs === ==== 4. Sample Graphs ===
  
-{{http://​www.litespeedtech.com/​static/​image/​cacti_graph1.png}} +{{https://​www.litespeedtech.com/​static/​image/​cacti_graph1.png}} 
-{{http://​www.litespeedtech.com/​static/​image/​cacti_graph2.png}} +{{https://​www.litespeedtech.com/​static/​image/​cacti_graph2.png}} 
-{{http://​www.litespeedtech.com/​static/​image/​cacti_graph3.png}} +{{https://​www.litespeedtech.com/​static/​image/​cacti_graph3.png}} 
-{{http://​www.litespeedtech.com/​static/​image/​cacti_graph4.png}} +{{https://​www.litespeedtech.com/​static/​image/​cacti_graph4.png}} 
-{{http://​www.litespeedtech.com/​static/​image/​cacti_graph5.png}}+{{https://​www.litespeedtech.com/​static/​image/​cacti_graph5.png}}
  • Admin
  • Last modified: 2017/05/11 21:20
  • by Michael Alegre