Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
livebox:xap_cacti [2013/05/27 12:04] – [Putting it on the Graph Console Tab] brett | livebox:xap_cacti [2013/05/29 02:00] – [Installing Cacti on CentOS] brett | ||
---|---|---|---|
Line 5: | Line 5: | ||
With a xAP caching Lua applet running as a [[hah_plugboard_v2|plugboard]] script on the [[HAH]] and one small python script for CACTI to use this indeed is possible. | With a xAP caching Lua applet running as a [[hah_plugboard_v2|plugboard]] script on the [[HAH]] and one small python script for CACTI to use this indeed is possible. | ||
- | {{: | + | {{: |
===== Setting up the xAP data cache ===== | ===== Setting up the xAP data cache ===== | ||
Line 17: | Line 17: | ||
local vfs = { | local vfs = { | ||
| | ||
- | xap.Filter{[" | + | xap.Filter{[" |
- | xap.Filter{[" | + | |
- | xap.Filter{[" | + | |
+ | xap.Filter{[" | ||
+ | | ||
+ | | ||
+ | xap.Filter{[" | ||
+ | | ||
+ | | ||
}, | }, | ||
| | ||
} | } | ||
</ | </ | ||
+ | Read more about the [[hah_plugboard_v2# | ||
After restarting the [[hah_plugboard_v2|plugboad]] engine we can point our web browser at < | After restarting the [[hah_plugboard_v2|plugboad]] engine we can point our web browser at < | ||
Line 29: | Line 36: | ||
Once some xAP messages have been cached you should see a web page like this: | Once some xAP messages have been cached you should see a web page like this: | ||
- | <note>NOTE: The URLs listed here are not valid hyperlinks. | + | <code> |
+ | Cached xap-header source keys | ||
- | < | + | |
- | < | + | |
- | < | + | dbzoo.nanode.jeenode: |
- | < | + | dbzoo.nanode.jeenode: |
- | < | + | |
- | </ul></ | + | dbzoo.nanode.jeenode: |
+ | | ||
+ | | ||
+ | dbzoo.livebox.jeenode: | ||
+ | dbzoo.nanode.jeenode: | ||
+ | dbzoo.livebox.jeenode:outside.light | ||
+ | dbzoo.nanode.jeenode: | ||
+ | dbzoo.livebox.jeenode: | ||
+ | dbzoo.nanode.jeenode: | ||
+ | dbzoo.nanode.jeenode: | ||
+ | dbzoo.nanode.jeenode: | ||
+ | dbzoo.nanode.jeenode: | ||
+ | dbzoo.nanode.jeenode: | ||
+ | </code> | ||
===== 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 78: | Line 116: | ||
# Useful for debugging | # Useful for debugging | ||
- | #f = open("/ | + | #f = open("/ |
# | # | ||
#f.close() | #f.close() | ||
Line 163: | Line 201: | ||
That's all there is to it! | That's all there is to it! | ||
- | ==== Polling faster ==== | + | ===== Polling faster |
I like to poll every minute instead of the default 5 mins. | I like to poll every minute instead of the default 5 mins. |