|
|
| Author |
Message |
Wushu
Joined: 19 Jun 2007 Posts: 15
|
Posted: Wed Jun 27, 2007 6:11 am Post subject: Confused |
|
|
Hi,
Sorry to be such a noob. But i have read weathermap basic etc and forum posts but still its not giving me a very good image of how weathermap works.
My cacti does work and does graph interfaces..
If im graphing my localhost for total bandwidth on cacti - and want it to be shown on weathermap as a link, so i put my friends pc on, who also graphs on cacti and is on the same network.
Do i just go to weathermap and input an info url for an RRD? in cacti/rrd/ ? if so which one, since there are in's out's n more.
Sorry about this but i just need to clear things up and need to understand this, i should mention i have installed weathermaps successfully and also installed the editor.php successfully. - afaik. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Wed Jun 27, 2007 6:21 am Post subject: |
|
|
The TARGET is what tells Weathermap which data to read.
The INFOURL is the URL that you would go to if you clicked on the link in a browser.
So you would have at least two NODEs and one LINK:
| Code: |
NODE yourpc
POSTITION 100 100
LABEL MY PC
NODE yourrouter
POSTITION 200 100
LABEL Internet Router
LINK link1
NODES yourrouter yourpc
TARGET router_traffic_in_1234.rrd
|
Important thing here: I'm guessing that you measure your bandwidth on the router interface, the first node in the NODES line is the router, not the PC.
If you do this with the editor, then it will slot in INFOURL and OVERLIBGRAPH lines automatically to point into your Cacti web interface. |
|
| Back to top |
|
 |
Wushu
Joined: 19 Jun 2007 Posts: 15
|
Posted: Wed Jun 27, 2007 8:09 am Post subject: |
|
|
Ok, thanks for the fast reply. Very much appreciated. Understanding more and more.
Another slight query - how do you know what rrd file to choose? Supposing i have a 24 port switch and a PC, want to measure load from pc n switch.. just look at the what file cacti generates for the pc, and select that one? |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Wed Jun 27, 2007 8:14 am Post subject: |
|
|
| Wushu wrote: | Ok, thanks for the fast reply. Very much appreciated. Understanding more and more.
Another slight query - how do you know what rrd file to choose? Supposing i have a 24 port switch and a PC, want to measure load from pc n switch.. just look at the what file cacti generates for the pc, and select that one? |
If you have the editor set up correctly, you can pick from a list. If you have Cacti set up correctly, the names in the list will be the names of your switch ports  |
|
| Back to top |
|
 |
Wushu
Joined: 19 Jun 2007 Posts: 15
|
Posted: Wed Jun 27, 2007 8:39 am Post subject: |
|
|
Ok, originally editor-config.php wasnt there and so i just edited editor-config.php-dist and renamed it.
But it seems it created it anyway but i did need to go in and comment out lines and amend some paths.
But anyway, that is now working. I get a link for pick from cacti when i click the link, but not when i click a node (i will investigate this further for possible bad paths i may have entered)
But, im guessing you just get a huge list of rrd files (i only have my localhost running atm as the core switches need to be rebooted :s ) and you have to pick the correct one.. since there are always more than one rrd files for one pc, and how does generating an rrd file from cacti using total bandwidth able to give me the load from the pc to the switch?
Sorry if im confusing you...
Thanks for taking time to reply and help btw |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 1989 Location: United Kingdom
|
Posted: Wed Jun 27, 2007 8:55 am Post subject: |
|
|
| Wushu wrote: | Ok, originally editor-config.php wasnt there and so i just edited editor-config.php-dist and renamed it.
But it seems it created it anyway but i did need to go in and comment out lines and amend some paths.
But anyway, that is now working. I get a link for pick from cacti when i click the link, but not when i click a node (i will investigate this further for possible bad paths i may have entered)
But, im guessing you just get a huge list of rrd files (i only have my localhost running atm as the core switches need to be rebooted :s ) and you have to pick the correct one.. since there are always more than one rrd files for one pc, and how does generating an rrd file from cacti using total bandwidth able to give me the load from the pc to the switch? |
You don't pick the rrd filename - you get a list of the Data Source names from Cacti - so they'll be things like "ATM-SL - Traffic - ATM4/0.6-aal5 l - A41-ESG" (an example from my Cacti). Hopefully if your Cacti is naming your data sources so you know what they are, then this list will make sense to you
If I understand the second part, then you need to measure each switch port to get the bandwidth for each PC. |
|
| Back to top |
|
 |
|