Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
livebox:xap_cacti [2013/05/29 01:13] – [Setting up the xAP data cache] brett | livebox:xap_cacti [2013/05/31 11:57] (current) – [Customizing for xAP] garrydwilms | ||
---|---|---|---|
Line 60: | Line 60: | ||
===== Configuring CACTI ===== | ===== Configuring CACTI ===== | ||
- | The installation of [[http:// | + | The installation of [[http:// |
+ | |||
+ | ==== Installing Cacti on CentOS6 ==== | ||
+ | |||
+ | For CentOS6.x installing is a snap | ||
+ | |||
+ | If you don't already have the EPEL repository installed into / | ||
+ | < | ||
+ | rpm -Uvh http:// | ||
+ | </ | ||
+ | Check how to install for older release and Fedora @ http:// | ||
+ | |||
+ | Then install cacti | ||
+ | < | ||
+ | yum install cacti | ||
+ | </ | ||
+ | |||
+ | ===== Customizing for xAP ===== | ||
You need to include one custom script that will called by the cacti data poller to reach our to our LUA caching web applet to grab xAP data values. | You need to include one custom script that will called by the cacti data poller to reach our to our LUA caching web applet to grab xAP data values. | ||
- | On my system this script appear on a linux server at: ''/ | + | On my system this script appear on a linux server at: ''/ |
< | < | ||
Line 83: | Line 100: | ||
import sys | import sys | ||
import time | import time | ||
- | from os import | + | import |
def getValue(target, | def getValue(target, | ||
- | | + | |
- | ret = x.read() | + | ret = f.read() |
- | | + | |
- | if ret: | + | if ret == " |
- | return ret | + | elif ret: |
- | return | + | return ret |
+ | return 0 | ||
if len(sys.argv) < 3: | if len(sys.argv) < 3: | ||
Line 99: | Line 117: | ||
# Useful for debugging | # Useful for debugging | ||
- | #f = open("/ | + | #f = open("/ |
# | # | ||
#f.close() | #f.close() |