Hello All , I am new to Cacti and Weathermap. I've installed it and it seem to work .
But I am having issues with the graphs. I don't know and struggling to fix that error.
I've found one solution for graph zoo problem that I had. changing graph_image.php from 160000000 to:
/* override: graph start time (unix time) */
if (!empty($_GET["graph_start"]) && $_GET["graph_start"] < 2600000000) {
$graph_data_array["graph_start"] = $_GET["graph_start"];
}
/* override: graph end time (unix time) */
if (!empty($_GET["graph_end"]) && $_GET["graph_end"] < 2600000000) {
$graph_data_array["graph_end"] = $_GET["graph_end"];
}
Now I have zoom when I use weathermap and cacti graph.
But there is problem when I am in weathermap, viewing graph. When I hover over the graph it display it correctly. when I click to get the details and zoom the graph it show me the graph for 1 sec. and I have to click zoom and zoom out many times. not showing me timespan correctly I don't know. this is only when Graphs>Weathermap>graphname.
When I go to Graphs>tree mode they are correct.
Where I can fix those stuf how can I manipulate the graphs. Help will be appreciated . Thank you in advance.
Best Regards,
Mladen
WaetherMAP 0.98a on cacti 0.8.8h Graph display config
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: WaetherMAP 0.98a on cacti 0.8.8h Graph display config
Everything to do with rendering graphs is done by Cacti, not weathermap.
What URL are you using for your INFOURL? Maybe compare that to the one you get by finding the graph directly in Cacti?
What URL are you using for your INFOURL? Maybe compare that to the one you get by finding the graph directly in Cacti?
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!)
Re: WaetherMAP 0.98a on cacti 0.8.8h Graph display config
Oh thank yo for the answer. I know you are the best Cacti GURU around.
when wrong time period 1 sec , the graph show as one line . -> cacti/graph.php?rra_id=all&local_graph_id=52
when I press zoom graph displays - >/cacti/graph.php?action=zoom&local_graph_id=52&rra_id=5&view_type=&graph_start=1612260007&graph_end=1612274407
at /cacti/graph_view.php I have the same graph showing correctly and on another port that I monitor it shows 1 sec graph not for 1 day.
I don't know how to fix the so called timespan or start end of the graph for all graphs. Some are showing 1 sec period some 1 day. I want all show for 1 day.
when wrong time period 1 sec , the graph show as one line . -> cacti/graph.php?rra_id=all&local_graph_id=52
when I press zoom graph displays - >/cacti/graph.php?action=zoom&local_graph_id=52&rra_id=5&view_type=&graph_start=1612260007&graph_end=1612274407
at /cacti/graph_view.php I have the same graph showing correctly and on another port that I monitor it shows 1 sec graph not for 1 day.
I don't know how to fix the so called timespan or start end of the graph for all graphs. Some are showing 1 sec period some 1 day. I want all show for 1 day.
Re: WaetherMAP 0.98a on cacti 0.8.8h Graph display config
I am not exactly sure how these graphs are been extracted from the DB. If there is need to fix something in the file where the command Is polling the info from the rra.
why some graphs are showing correct 1day and why some are not showing correct time 1sec
why some graphs are showing correct 1day and why some are not showing correct time 1sec
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: WaetherMAP 0.98a on cacti 0.8.8h Graph display config
You can press the wrench next to a graph to see the exact rrdtool command used to create a graph.
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!)
Re: WaetherMAP 0.98a on cacti 0.8.8h Graph display config
yes when I press it wrench( or press magnify glass graph show correct).
but if I just click on the graph in weathermap and when page load it is like start/end 0 and from/to 1 sec
after click
/bin/rrdtool graph - \
--imgformat=PNG \
--start='1612267534' \
--end='1612281934' \
--title='SG500X-48 gi1/1/48 ISP-1_G3 Traffic' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2021/02/02 06\:05\:34 To 2021/02/02 10\:05\:34\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12:'CenturyGothic' \
--font AXIS:7:'LucidaSans bold' \
--font LEGEND:8:'Courier New' \
--font UNIT:9:'LucidaSans oblique' \
DEF:a='/usr/share/cacti/rra/2/55.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/2/55.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,8,*' \
LINE1:cdefa#00CF00FF:'' \
AREA:cdefa#00CF0033:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
AREA:cdeff#002A9719:'' \
LINE1:cdeff#002A97FF:'Outbound' \
GPRINT:cdeff:LAST:'Current\:%8.2lf %s' \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdeff:MAX:'Maximum\:%8.2lf %s\n'
When I go to graph management and check turn on graph debug mode >
RRDTool Command:
/bin/rrdtool graph - \
--imgformat=PNG \
--start='0' \
--end='0' \
--title='SG500X-48 gi1/1/48 ISP-1_G3 Traffic' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12:'CenturyGothic' \
--font AXIS:7:'LucidaSans bold' \
--font LEGEND:8:'Courier New' \
--font UNIT:9:'LucidaSans oblique' \
DEF:a='/usr/share/cacti/rra/2/55.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/2/55.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,8,*' \
LINE1:cdefa#00CF00FF:'' \
AREA:cdefa#00CF0033:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
AREA:cdeff#002A9719:'' \
LINE1:cdeff#002A97FF:'Outbound' \
GPRINT:cdeff:LAST:'Current\:%8.2lf %s' \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdeff:MAX:'Maximum\:%8.2lf %s\n'
RRDTool Says:
OK
Where I can manually set start/end and from/to ?
but if I just click on the graph in weathermap and when page load it is like start/end 0 and from/to 1 sec
after click
/bin/rrdtool graph - \
--imgformat=PNG \
--start='1612267534' \
--end='1612281934' \
--title='SG500X-48 gi1/1/48 ISP-1_G3 Traffic' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2021/02/02 06\:05\:34 To 2021/02/02 10\:05\:34\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12:'CenturyGothic' \
--font AXIS:7:'LucidaSans bold' \
--font LEGEND:8:'Courier New' \
--font UNIT:9:'LucidaSans oblique' \
DEF:a='/usr/share/cacti/rra/2/55.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/2/55.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,8,*' \
LINE1:cdefa#00CF00FF:'' \
AREA:cdefa#00CF0033:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
AREA:cdeff#002A9719:'' \
LINE1:cdeff#002A97FF:'Outbound' \
GPRINT:cdeff:LAST:'Current\:%8.2lf %s' \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdeff:MAX:'Maximum\:%8.2lf %s\n'
When I go to graph management and check turn on graph debug mode >
RRDTool Command:
/bin/rrdtool graph - \
--imgformat=PNG \
--start='0' \
--end='0' \
--title='SG500X-48 gi1/1/48 ISP-1_G3 Traffic' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12:'CenturyGothic' \
--font AXIS:7:'LucidaSans bold' \
--font LEGEND:8:'Courier New' \
--font UNIT:9:'LucidaSans oblique' \
DEF:a='/usr/share/cacti/rra/2/55.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/2/55.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdeff='b,8,*' \
LINE1:cdefa#00CF00FF:'' \
AREA:cdefa#00CF0033:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
AREA:cdeff#002A9719:'' \
LINE1:cdeff#002A97FF:'Outbound' \
GPRINT:cdeff:LAST:'Current\:%8.2lf %s' \
GPRINT:cdeff:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdeff:MAX:'Maximum\:%8.2lf %s\n'
RRDTool Says:
OK
Where I can manually set start/end and from/to ?
- Attachments
-
- graph2.jpg (182.4 KiB) Viewed 6046 times
-
- graph.jpg (295.79 KiB) Viewed 6046 times
Who is online
Users browsing this forum: No registered users and 1 guest