I was very upset and frustrated by the lack of a guide half as through as this [if it exists, I apologize but I could not find it if my life depended on it] So once I finally figured it out, I throughly wrote it out for my company's wiki, but I'm happy to share it, to save someone my frustration ^_-
This document assumes you have Cacti installed with the Weathermap plugin with the web editor, it also assumes you're running CentOS or have a similar setup.
•SSH into the desired host machine (that's the one you want to graph/add to Weathermap
•Run:
apt-get install snmpd ( yum install net-snmp net-snmp-utils )
•Move the file /etc/snmp/snmpd.conf to /etc/snmp/snmpd.conf-disabled
•Create a new snmpd.conf where the old one was, it should contain:
trapsink ip-of-cacti-server your-snmp-community-name
trapsink ip-of-cacti-server your-snmp-community-name
rocommunity your-snmp-community-name ip-of-cacti-server
syslocation host_location
syscontact contact_email
sysservices 0
proc
disk
•Run:
service snmpd restart
•Edit the iptables config (on CentOS) /etc/sysconfig/iptables Add these lines:
-A INPUT -m state --state NEW -m udp -p udp --dport 161 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --sport 161 -j ACCEPT
•Run:
service iptables restart
•Login to Cacti at:
http://ip-of-cacti-server/cacti/
•Click Devices
•Click Add (far top right, doesn't look like a link)
•Enter the name and IP for the server/device
•Choose a Host Template (Generic SNMP automatically adds an Associated Data Query for SNMP - Interface Statistics)
•for SNMP Community enter:
your-snmp-community-name
•Click Create
•It it isn't in the Associated Data Queries list, from the Add Data Query pop up, choose SNMP - Interface Statistics and click Add. You must have gotten a response from SNMP in the upper left after creating the host (you'll get an SNMP error in red if you didn't).
(Now we make the traffic graph...)
•Click Create Graphs for this Host
•Find the interface that you want to graph (Linux: eth0, OS X: en0) and put a check in the green circle column on its line
•In the popup for Select a graph type: choose In/Out Bits
•Click Create
•Click Management -> Graph Trees
•Click Default Tree (or whatever one you've made..)
•Click Add
•For the Tree Item Type popup, choose Host
•For the Host popup, choose the host we just created
•Click Create
•Click the Graphs tab
•Click the Host: name-of-host and enjoy your graph!
(Now let's add it to weathermap!)
•Go to the console tab of Cacti
•Click Weathermaps
•Click the name of your map under the Config File column (if you don't have one yet, you have to create a blank file in the configs folder /var/www/html/cacti/plugins/weathermap/configs/ or click Add and then choose a default one and edit it..)
•Click Add Node
•Click where you want the Node
•Click on the Node you just created... Named Node by default
•Change the Internal Name field to something intelligble
•Change the Label field to what you want to see on the map
•Click [Pick_from_Cacti]
•In the popup window, click name-of-host - Traffic - eth0 (or en0 for OS X)
•Click Submit
(Repeat ALL of those steps for your next host until you get back to this point..)
•Click Add Link
•Click on name-of-host (The box will turn red)
•Click on name-of-second-host
•Click on the arrows between the two hosts
•Click [Pick_from_Cacti]
•Click either host's name-of-host - Traffic - eth0 (or en0 for OS X)
•Click Submit (You only do these steps once for each set of arrows which represent the link. Cacti/Weathermap should automatically figure out what traffic is going in each direction if you followed the directions precisely and they haven't changed any of this stuff since I wrote this )
•Go back to Cacti and click the Weathermap tab
•Enjoy the results of the first ever mostly complete Cacti/Weathermap guide!
If someone has a chance, please try following this guide to make sure I didn't miss anything, this was written over the course of a very frustrating week
Derekcat's ridiculously through Adding a device guide
Moderators: Developers, Moderators
Re: Derekcat's ridiculously through Adding a device guide
A lot of this is already covered in http://docs.cacti.net/manual:088 Please suggest updates if needed.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Derekcat's ridiculously through Adding a device guide
Yes is covered but he described the fast way
Who is online
Users browsing this forum: No registered users and 2 guests