Need Help with cacti?
Moderators: Developers, Moderators
-
- Posts: 9
- Joined: Fri Jan 09, 2009 3:32 am
Need Help with cacti?
We want to monitor java heap size of remote machine using cacti. Any one who have any tutorial or hint how can I do that?
-
- Posts: 9
- Joined: Fri Jan 09, 2009 3:32 am
-
- Posts: 9
- Joined: Fri Jan 09, 2009 3:32 am
-
- Posts: 9
- Joined: Fri Jan 09, 2009 3:32 am
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1260368340 \
--end=1260454740 \
--title="10.236.70.50 - JVM Heap Utilization" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2009/12/09 09\:19\:00 To 2009/12/10 09\:19\:00\c" \
COMMENT:" \n" \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/apache_msa/cacti/rra/10_236_70_50_jvmmemoryheapmaxsiz_67.rrd":jvmMemoryHeapMaxSiz:AVERAGE \
DEF:b="/usr/local/apache_msa/cacti/rra/10_236_70_50_jvmmemoryheapcommit_66.rrd":jvmMemoryHeapCommit:AVERAGE \
DEF:c="/usr/local/apache_msa/cacti/rra/10_236_70_50_jvmmemoryheapused_68.rrd":jvmMemoryHeapUsed:AVERAGE \
LINE1:a#FF0000FF:"Max" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:b#00FF00FF:"Committed" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:c#0000FFFF:"Used" \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n"
I did tried constructing the Memory Usage graph too and it is working.
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1260368623 \
--end=1260455023 \
--title="10.236.70.50 - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2009/12/09 09\:23\:43 To 2009/12/10 09\:23\:43\c" \
COMMENT:" \n" \
--vertical-label="kilobytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/apache_msa/cacti/rra/10_236_70_50_mem_buffers_25.rrd":mem_buffers:AVERAGE \
DEF:b="/usr/local/apache_msa/cacti/rra/10_236_70_50_mem_swap_26.rrd":mem_swap:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
AREA:cdefa#FF4105FF:"Free" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
AREA:cdefe#FFC73BFF:"Swap":STACK \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
-
- Posts: 9
- Joined: Fri Jan 09, 2009 3:32 am
Who is online
Users browsing this forum: slademan and 0 guests