network map

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
luckyksc
Posts: 22
Joined: Tue Apr 19, 2005 5:24 pm

Post by luckyksc »

Howie wrote:
luckyksc wrote: was able to get everything to work except I am not getting any data on the graph produce.
I don't understand... Do you mean that you just get grey arrows? Do you get any error message? Have you tried the --debug option?
I get just gray arrows. The message I am getting is

ReadData: Link sync-core had no valid data

When I ran --debug I get:

ReadFromRRD: Target DS names are traffic_in and traffic_out
ReadFromRRD: Running: c:/rrdtool/rrdtool.exe fetch rra/temp.rrd AVERAGE --start now-400
> 1121114700: 2.4402516944e+002 1.8321355482e+002
> 1121115000: -1.#IND000000e+000 -1.#IND000000e+000
> 1121115300: -1.#IND000000e+000 -1.#IND000000e+000
> --
--1121115300: -1.#IND000000e+000 -1.#IND000000e+000

ReadFromRRD: Found a good line: 1121115300: -1.#IND000000e+000 -1.#IND000000e+
000
(timestamp traffic_out traffic_in
)
--1121115000: -1.#IND000000e+000 -1.#IND000000e+000

--1121114700: 2.4402516944e+002 1.8321355482e+002

ReadFromRRD: Our line is 1121115300: -1.#IND000000e+000 -1.#IND000000e+000

Then I tried fetch with the command line, I get data up to line #1121115000. It seem like it's grabbing the last line, how can I tell it to grab the 3 to last line? or what last line that is valid?

1121113200: 2.1975066667e+002 1.8881333333e+002
1121113500: 2.3955269103e+002 2.0088316279e+002
1121113800: 2.2897729786e+002 1.7848487054e+002
1121114100: 2.3684959863e+002 1.8866251739e+002
1121114400: 2.3781774582e+002 1.8960478261e+002
1121114700: 2.4402516944e+002 1.8321355482e+002
1121115000: 2.3593688612e+002 2.1624295629e+002
1121115300: -1.#IND000000e+000 -1.#IND000000e+000
1121115600: -1.#IND000000e+000 -1.#IND000000e+000

Thanks
luckyksc
Posts: 22
Joined: Tue Apr 19, 2005 5:24 pm

Post by luckyksc »

Howie,

I figure how to do that. Now I am getting live data. Thanks for telling me to use the --debug option. It was really helpful.

Thanks!!!!
Dave
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

luckyksc wrote:Howie,

I figure how to do that. Now I am getting live data. Thanks for telling me to use the --debug option. It was really helpful.
What did you change? Is there something I need to fix? It looks like my method for matching the valid RRD output is still not right... I have a backup plan for that though.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
luckyksc
Posts: 22
Joined: Tue Apr 19, 2005 5:24 pm

Post by luckyksc »

Howie wrote:
luckyksc wrote:Howie,

I figure how to do that. Now I am getting live data. Thanks for telling me to use the --debug option. It was really helpful.
What did you change? Is there something I need to fix? It looks like my method for matching the valid RRD output is still not right... I have a backup plan for that though.
I am using still using rrdtool 1.0 so when it was pulling the data it was thinking that the last line was good, so it took the last line instead of the good line.
ReadFromRRD: Found a good line: 1121115300: -1.#IND000000e+000 -1.#IND000000e+

So I saw the line where you comment out,
# if($col=='nan') { $dataok=0; } //this is probably needed for rrdtool > 1.0.

I added:
if($col=='-1.#IND000000e+000') { $dataok=0; } //to solve this problem, so now it ignore anything that has the -1.#IND000000e+000 value, which is the last data.

I am doing this in windows because I couldn't get gd to work in unix.

I was wondering if there is a way to draw one arrow instead of two because I am doing a ping legacy map, instead of traffic.

Thanks!
Nepu
Posts: 14
Joined: Fri Jul 22, 2005 2:17 am

Post by Nepu »

Can you tell me how to implement the map?
qpduong
Posts: 11
Joined: Tue Jul 26, 2005 7:59 pm
Contact:

Post by qpduong »

Thanks howie for ur good map
Thanks luckyksc for good finding, i got the same prob like you after apply ur patch everything's fine
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Hi,
I use Howie's weathermap. But I have a problem:
I have two backbone connection between two routers and I dont know how can I show both links.
When I try to create two links between nodes one of them is covered by other. I think that it occurs due to same position coordinate of nodes.
So I need to cornered links.
IS there any way to show both links between nodes?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TFC wrote:Hi,
I use Howie's weathermap. But I have a problem:
I have two backbone connection between two routers and I dont know how can I show both links.
When I try to create two links between nodes one of them is covered by other. I think that it occurs due to same position coordinate of nodes.
So I need to cornered links.
IS there any way to show both links between nodes?
Not at the moment with my map. The only solution right now would be to have two nodes for the same router. You can make one of the nodes invisible by having no label or icon for it.

The other solution is weathermap4rrd, which I believe lets you go round corners in a link.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

but i prefer yours :)
And, i prefer to wait new version :)
weathermap4rrd
Posts: 6
Joined: Sat Jan 22, 2005 10:02 am

Post by weathermap4rrd »

what a pity ! Weathermap4rrd is great ! ;-)

Seriously you're right Howie's tool is good too. I just confirmed that Weathermap4rrd support corner arrows.

bye

Alex
cksrealm
Cacti User
Posts: 140
Joined: Sun May 08, 2005 5:45 pm
Location: Sydney,Australia
Contact:

Post by cksrealm »

This looks great well done to the guy doing it , looks amazing
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

php-weathermap 0.6 now available

Post by Howie »

http://wotsit.thingy.com/haj/cacti/php-weathermap/

Lots of bugfixes. Lots of tweaks - font sizes, formattable timestamps & text changes, more config error warnings. There's a full changelist on the page.

Most important: weathermap.php is now just called weathermap! If you overwrite your old version, then be sure to change any scripts, otherwise you'll have half of one version, and half of another. The reason is to make it clear that the command-line script is not a 'normal' PHP page.

Also, you can now subscribe to an RSS for new releases, if you like that sort of thing. There's likely to be a 0.7 along fairly soon. This was mainly to get all the fixes that have piled up. My Real Job has calmed down a bit, so I have a few more features to put in pretty soon.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mgb
Cacti User
Posts: 124
Joined: Mon Jun 21, 2004 4:06 am
Location: North of the Netherlands

Post by mgb »

Hello Howie,

Thanks for the upgrade, will install it soon.
Are you still working on the editor too?
The Editor from weathermap4rrd is quite impressive and it would be great to have an editor like that for weathermap integrated in cacti (plugin).

Michael
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

mgb wrote:Are you still working on the editor too?
The Editor from weathermap4rrd is quite impressive and it would be great to have an editor like that for weathermap integrated in cacti (plugin).
Yes. I have a chunk of Javascript and CSS done for it. Now that I have a little spare time again, I hope to get back to it :-) Got to pay the bills somehow first though! It doesn't help that I keep adding new options and moving the goalposts.

I'm still not sure how integrated it could be with Cacti though. The Powers That Be for Cacti didn't seem very keen, and I still don't know exactly how it would fit in. The only thing I'd like is that it's possible to embed a weathermap in a Graph Tree, so that you can give it to a customer along with their normal graphs, and so that they don't have to mess around with logging in to get popups like the do now.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
dragec
Posts: 17
Joined: Mon Sep 19, 2005 11:14 am

howie's weathermap on windows

Post by dragec »

Did anyone tried howie's map on windows? i've tried php version and did not get it to work. Then i switched to perl but come up to problems.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests