How to build the link using the two rrd file with one DS ?
Moderators: Developers, Moderators
How to build the link using the two rrd file with one DS ?
Howie:
Making some efforts, your PHP-weathermap can be working on my machine.
However, there is a problem to need your support.
Questons:
Assuming two nodes - nodeA, nodeB
Ever building the link using the XXX_traffic_in_XXX.rrd file between them is OK.
I want to show the pop-up figure about the successful rate (nodeA--> nodeB and nodeA <--- nodeB) and the successful rate value on each of the arrows
But, the data in each of the two rrd files collected by the scripts is one DS.
So, how to the "Target" part in the "link-specific configuraton directives" using the two rrd files which collect one DS, respectively to be adopted the specific arrow in the weathermap?
Thanks a lot
B.R
Making some efforts, your PHP-weathermap can be working on my machine.
However, there is a problem to need your support.
Questons:
Assuming two nodes - nodeA, nodeB
Ever building the link using the XXX_traffic_in_XXX.rrd file between them is OK.
I want to show the pop-up figure about the successful rate (nodeA--> nodeB and nodeA <--- nodeB) and the successful rate value on each of the arrows
But, the data in each of the two rrd files collected by the scripts is one DS.
So, how to the "Target" part in the "link-specific configuraton directives" using the two rrd files which collect one DS, respectively to be adopted the specific arrow in the weathermap?
Thanks a lot
B.R
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: How to build the link using the two rrd file with one DS
Do you mean like this?shineyang wrote:Howie:
Making some efforts, your PHP-weathermap can be working on my machine.
However, there is a problem to need your support.
Questons:
Assuming two nodes - nodeA, nodeB
Ever building the link using the XXX_traffic_in_XXX.rrd file between them is OK.
I want to show the pop-up figure about the successful rate (nodeA--> nodeB and nodeA <--- nodeB) and the successful rate value on each of the arrows
But, the data in each of the two rrd files collected by the scripts is one DS.
So, how to the "Target" part in the "link-specific configuraton directives" using the two rrd files which collect one DS, respectively to be adopted the specific arrow in the weathermap?
Thanks a lot
B.R
Code: Select all
TARGET file1.rrd:fish:- file2.rrd:-:dogs
It won't help you with the popup graph though - you will need a custom graph template in Cacti to do that.
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!)
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!)
Howie:
At first, thank a lot for your reply.
Based on your directions, I build it into my config. It can work when I checked the DEBUG log.
But it is strange that the percentage value is always zero.
####
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1155959400: 9.8033500000e+01
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (0,0)
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1155959400: 7.5413700000e+01
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadData: Setting 0,0
###
In addition, I will remind you that the DS in rrd is the percetage value.
Of course, I attach the original conf. file and the DEBUG log to let you investigate it !!!
Keep waiting for your reply !!
At first, thank a lot for your reply.
Based on your directions, I build it into my config. It can work when I checked the DEBUG log.
But it is strange that the percentage value is always zero.
####
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1155959400: 9.8033500000e+01
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (0,0)
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1155959400: 7.5413700000e+01
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadData: Setting 0,0
###
In addition, I will remind you that the DS in rrd is the percetage value.
Of course, I attach the original conf. file and the DEBUG log to let you investigate it !!!
Keep waiting for your reply !!
- Attachments
-
- 0819-config.txt
- This is the original conf. file
- (2.31 KiB) Downloaded 448 times
-
- debug-log.TXT
- This is the original DEBUG log
- (7.59 KiB) Downloaded 590 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
LOL sorry. I meant that you should put in the REAL DS names from your rrd files where fish and dogs are It is showing 0% because there isn't a DS called 'fish' in your rrd file, and zero is the default value. You should be able to find out the DS names by running rrdtool info tat_kcm1_rate_mo_1441.rrd. The DS names are near the top of the output.shineyang wrote:Howie:
At first, thank a lot for your reply.
Based on your directions, I build it into my config. It can work when I checked the DEBUG log.
But it is strange that the percentage value is always zero.
####
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1155959400: 9.8033500000e+01
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (0,0)
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1155959400: 7.5413700000e+01
08/19/2006 11:51:44 AM - WEATHERMAP: Poller[0] ReadData: Setting 0,0
###
In addition, I will remind you that the DS in rrd is the percetage value.
Of course, I attach the original conf. file and the DEBUG log to let you investigate it !!!
Keep waiting for your reply !!
(I think that log file is not for the the config file that you posted either - the line with two targets in commented out in the config file)
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!)
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!)
Hellow! Howie:
ha !!
Basd on your directions, the set of values is not always zero. However, the value seem to be incorrect.
The value should be (98.20,69.67), not (785.6,557.36)
What's wrong??
####
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] Setting bandwidth (100, 100)
(timestamp tat_kcm1_rate_MO
)
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1156005300: 9.8200000000e+01
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (785.6,0)
(timestamp tat_kcm1-rate_MT
)
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1156005300: 6.9670000000e+01
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (0,557.36)
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadData: Setting 785.6,557.36
#####
Of course, I aslo attach the complete debug log for the reference!!
Thank a ton from my heart.
ha !!
Basd on your directions, the set of values is not always zero. However, the value seem to be incorrect.
The value should be (98.20,69.67), not (785.6,557.36)
What's wrong??
####
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] Setting bandwidth (100, 100)
(timestamp tat_kcm1_rate_MO
)
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1156005300: 9.8200000000e+01
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (785.6,0)
(timestamp tat_kcm1-rate_MT
)
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadFromRRD: Our line is 1156005300: 6.9670000000e+01
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadFromRRD: Returning (0,557.36)
08/20/2006 12:36:42 AM - WEATHERMAP: Poller[0] ReadData: Setting 785.6,557.36
#####
Of course, I aslo attach the complete debug log for the reference!!
Thank a ton from my heart.
- Attachments
-
- 0820-debug-log.TXT
- the complete debug log
- (7.77 KiB) Downloaded 356 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
One last thing... sorry!shineyang wrote:Hellow! Howie:
ha !!
Basd on your directions, the set of values is not always zero. However, the value seem to be incorrect.
The value should be (98.20,69.67), not (785.6,557.36)
What's wrong??
Because weathermap is expecting byte-counts from routers, it multiplies everything by 8. To make your percentages back into percentages, you should set BANDWIDTH 800. I hope that will fix everything for you.
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!)
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!)
Howie:
Today, before getting out of bed, I am still thinking about this problem. I have got the idea - maybe from bites or bytes.
Thanks a lot for your fast reply, although the distance between you and me is so far.
Finally, my weathermap is done. Attach that to share it with you !!!
The two questions are
1) how to fine tune the labe position (regarding the percetange value) on the link ? Because the label was covered between TNM1 and TAT_SMSC.
2) The figure should be automatically refreshed ? Yes or no ?? If yes, I felt that the refreshing rate seem to delay ?? Could I tune the time to be refreshed when the poller per 5 min is done !!
Thanks a lot again !!
Still wait for your response !!
Today, before getting out of bed, I am still thinking about this problem. I have got the idea - maybe from bites or bytes.
Thanks a lot for your fast reply, although the distance between you and me is so far.
Finally, my weathermap is done. Attach that to share it with you !!!
The two questions are
1) how to fine tune the labe position (regarding the percetange value) on the link ? Because the label was covered between TNM1 and TAT_SMSC.
2) The figure should be automatically refreshed ? Yes or no ?? If yes, I felt that the refreshing rate seem to delay ?? Could I tune the time to be refreshed when the poller per 5 min is done !!
Thanks a lot again !!
Still wait for your response !!
- Attachments
-
- The complete weathermap
- weathermap_2.png (59.02 KiB) Viewed 7046 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
The labels are always halfway along, but you CAN change where the link starts. You can add an offset to each of the node names in the NODES line:shineyang wrote: 1) how to fine tune the labe position (regarding the percetange value) on the link ? Because the label was covered between TNM1 and TAT_SMSC.
NODES TNM1:S TAT_SMSC:N
This will make the link start from the 'south' of TNM1 and 'north' of TAT_SMSC, which means the labels move out from underneath the icon.
The map is refreshed at the end of the poller cycle, just after the data has been updated in Cacti. This is usually every 5 minutes.shineyang wrote: 2) The figure should be automatically refreshed ? Yes or no ?? If yes, I felt that the refreshing rate seem to delay ?? Could I tune the time to be refreshed when the poller per 5 min is done !!
The webpage doesn't know when the poller cycle happens, so that isn't always in sync with the poller updates - there isn't much to do about that, apart from press Refresh yourself.
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!)
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!)
Howie:
I think this "ticket" should be able to be closed. By your hint, this weathermap is perfect. Today, I show it to my officemates. They are shocked by this tool/map
As what you said that, your supports really save a lot of my time, I am thinking about donating something as thanks a tone for a series of supports.
Of course, after lauching this cool tool, my boss asked me if the rrd file can be output as the readable log or file.
So, I want to ask you :
Do you know that if inputting the time range, there is any plugin to generate the log or file which has the following fields:
Date ,Time, DS value
Wait for your reply!
B.R
I think this "ticket" should be able to be closed. By your hint, this weathermap is perfect. Today, I show it to my officemates. They are shocked by this tool/map
As what you said that, your supports really save a lot of my time, I am thinking about donating something as thanks a tone for a series of supports.
Of course, after lauching this cool tool, my boss asked me if the rrd file can be output as the readable log or file.
So, I want to ask you :
Do you know that if inputting the time range, there is any plugin to generate the log or file which has the following fields:
Date ,Time, DS value
Wait for your reply!
B.R
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
For a single RRD file, you can do it with rrdtool fetch yourfile.rrd AVERAGE --start now-1day --end now, but the output isn't very pretty - it uses unix time_t instead of date/time. This is how weathermap gets that information.shineyang wrote:Of course, after lauching this cool tool, my boss asked me if the rrd file can be output as the readable log or file.
So, I want to ask you :
Do you know that if inputting the time range, there is any plugin to generate the log or file which has the following fields:
Date ,Time, DS value
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Now I understand. You are correct - there is no plugin to do this.shineyang wrote:Howie:
I know that using the command line. So, that's why I ask you whether the plugin is easy to generate the decoding raw data !!
From your words, there seems to be no the plugins for this function so far. . Is it right ??
It wouldn't be very hard to write one. You would have limited data for older times though, due to rrdtool's averaging.
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!)
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!)
Who is online
Users browsing this forum: No registered users and 3 guests