All DiskSpaces in one graph
Moderators: Developers, Moderators
All DiskSpaces in one graph
Hi.
During customising cacti to our requirments for our TC I noted that the design of the disk spaces is not well arranged, because of the multiplicity of logical disks.
Does there exist a template which shows all diskspaces in one graph?
Thanks a lot.
idg-pm
During customising cacti to our requirments for our TC I noted that the design of the disk spaces is not well arranged, because of the multiplicity of logical disks.
Does there exist a template which shows all diskspaces in one graph?
Thanks a lot.
idg-pm
- mokeybrains
- Posts: 42
- Joined: Mon Aug 22, 2005 9:39 pm
- Location: San Francisco, CA
- Contact:
multiple partition percents
I'm having trouble getting a CDEF to act on different pairs of data... I am trying do this:
I had to go into debug mode and edit the RRDTOOL command manually to this:
I tried to create a graph template, but it only plots one line
... also, all the CDEFs only use the 'a' and 'b' data source...
Do I need to use SIMILAR_DATA_SOURCES_NODUPS or something other than b,a?
I had to go into debug mode and edit the RRDTOOL command manually to this:
Code: Select all
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-8640000 \
--end=-300 \
--title="jamon - % Used Disk Space" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--upper-limit=100 \
--vertical-label="%" \
--slope-mode \
DEF:a="/usr/local/share/cacti/rra/jamon_hdd_total_102.rrd":hdd_total:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/jamon_hdd_total_102.rrd":hdd_used:AVERAGE \
DEF:c="/usr/local/share/cacti/rra/jamon_hdd_total_104.rrd":hdd_total:AVERAGE \
DEF:d="/usr/local/share/cacti/rra/jamon_hdd_total_104.rrd":hdd_used:AVERAGE \
DEF:e="/usr/local/share/cacti/rra/jamon_hdd_total_106.rrd":hdd_total:AVERAGE \
DEF:f="/usr/local/share/cacti/rra/jamon_hdd_total_106.rrd":hdd_used:AVERAGE \
DEF:g="/usr/local/share/cacti/rra/jamon_hdd_total_107.rrd":hdd_total:AVERAGE \
DEF:h="/usr/local/share/cacti/rra/jamon_hdd_total_107.rrd":hdd_used:AVERAGE \
DEF:i="/usr/local/share/cacti/rra/jamon_hdd_total_319.rrd":hdd_total:AVERAGE \
DEF:j="/usr/local/share/cacti/rra/jamon_hdd_total_319.rrd":hdd_used:AVERAGE \
CDEF:cdefa=b,a,/,100,* \
CDEF:cdefe=d,c,/,100,* \
CDEF:cdefi=f,e,/,100,* \
CDEF:cdefbc=h,g,/,100,* \
CDEF:cdefbg=j,i,/,100,* \
AREA:cdefa#4900f4:"/" \
GPRINT:a:LAST:" Size\:%8.2lf %s" \
GPRINT:cdefa:LAST:" - %4.2lf %s %% used\n" \
LINE2:cdefe#CA1165:"/data" \
GPRINT:e:LAST:" Size\:%8.2lf %s" \
GPRINT:cdefe:LAST:" - %4.2lf %s %% used\n" \
LINE2:cdefi#3B5276:"/usr" \
GPRINT:e:LAST:" Size\:%8.2lf %s" \
GPRINT:cdefi:LAST:" - %4.2lf %s %% used\n" \
LINE2:cdefbc#EC83f7:"/var" \
GPRINT:g:LAST:" Size\:%8.2lf %s" \
GPRINT:cdefbc:LAST:" - %4.2lf %s %% used\n" \
LINE2:cdefbg#FDa418:"/data2" \
GPRINT:i:LAST:" Size\:%8.2lf %s" \
GPRINT:cdefbg:LAST:" - %4.2lf %s %% used\n"
... also, all the CDEFs only use the 'a' and 'b' data source...
Code: Select all
CDEF:cdefa=b,a,/,100,* \
CDEF:cdefe=b,a,/,100,* \
CDEF:cdefi=b,a,/,100,* \
CDEF:cdefbc=b,a,/,100,* \
CDEF:cdefbg=b,a,/,100,* \
Last edited by mokeybrains on Fri May 11, 2007 5:40 pm, edited 1 time in total.
- mokeybrains
- Posts: 42
- Joined: Mon Aug 22, 2005 9:39 pm
- Location: San Francisco, CA
- Contact:
What I am looking for
Feature request:
When defining a CDEF {graph management -> CDEFs}, one of the options is Special Data Source. I'd like a Special Data Source that is all Graph Input Items associated with this Graph Item. ...
A 'Graph item' can be associated with multiple 'Graph item inputs'. The cacti layout doesn't make this easy. I'd like to make a graph item that sums up 3 out of 8 inputs, another that divides input item by another ... in a user defined mater and not an 'a' 'b' fashion. A big problem I have with cacti, is that how do you know which item will be a and which b? If you rename the input items, they are resorted alphabetically... how about a method of locking them into specific slots?
Am I approaching this wrong? Should I just make a whole bunch of CDEFs? What do other people do?
--------------------------------------------------------------------------------------------
Still learning the cacti lingo -- when I figure out how to ask a
questions about cacti, sometimes the answer become apparent.
When defining a CDEF {graph management -> CDEFs}, one of the options is Special Data Source. I'd like a Special Data Source that is all Graph Input Items associated with this Graph Item. ...
A 'Graph item' can be associated with multiple 'Graph item inputs'. The cacti layout doesn't make this easy. I'd like to make a graph item that sums up 3 out of 8 inputs, another that divides input item by another ... in a user defined mater and not an 'a' 'b' fashion. A big problem I have with cacti, is that how do you know which item will be a and which b? If you rename the input items, they are resorted alphabetically... how about a method of locking them into specific slots?
Am I approaching this wrong? Should I just make a whole bunch of CDEFs? What do other people do?
--------------------------------------------------------------------------------------------
Still learning the cacti lingo -- when I figure out how to ask a
questions about cacti, sometimes the answer become apparent.
- mokeybrains
- Posts: 42
- Joined: Mon Aug 22, 2005 9:39 pm
- Location: San Francisco, CA
- Contact:
Got it working!
What a hard process!
Anyhow, I learned a lot and wrote a helper script that will 'replicate' sections of the graph template making the addition of lines to an existing template easier.
Here is a question for gandalf: when looking at the RRDTool Command in debug mode, all the CDEFs are run twice. How would I modify the XML to prevent this. I found that if I mucked around with the hashes inside the <items> section of the <inputs> I could change the 'a' and 'b' order... seems like an ugly hack. Will RTFM help me understand this?
Anyhow, I learned a lot and wrote a helper script that will 'replicate' sections of the graph template making the addition of lines to an existing template easier.
Here is a question for gandalf: when looking at the RRDTool Command in debug mode, all the CDEFs are run twice. How would I modify the XML to prevent this. I found that if I mucked around with the hashes inside the <items> section of the <inputs> I could change the 'a' and 'b' order... seems like an ugly hack. Will RTFM help me understand this?
- Attachments
-
- Sample output.
- combined_disk_used.png (32.97 KiB) Viewed 19800 times
-
- cacti_graph_template_combined_used_disk_space_test.xml
- And the graph template to do it (includes the 5 CDEFs needed).
- (12.53 KiB) Downloaded 1397 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: What I am looking for
Please post to the Feature Request Forummokeybrains wrote:Feature request:
When defining a CDEF {graph management -> CDEFs}, one of the options is Special Data Source. I'd like a Special Data Source that is all Graph Input Items associated with this Graph Item. ...
A 'Graph item' can be associated with multiple 'Graph item inputs'. The cacti layout doesn't make this easy. I'd like to make a graph item that sums up 3 out of 8 inputs, another that divides input item by another ... in a user defined mater and not an 'a' 'b' fashion. A big problem I have with cacti, is that how do you know which item will be a and which b? If you rename the input items, they are resorted alphabetically... how about a method of locking them into specific slots?
Reinhard
Re: Got it working!
[quote="mokeybrains"]What a hard process!
Anyhow, I learned a lot and wrote a helper script that will 'replicate' sections of the graph template making the addition of lines to an existing template easier.
[color=indigo]Here is a question for gandalf:[/color] when looking at the [b]RRDTool Command[/b] in debug mode, all the CDEFs are run [u]twice[/u]. How would I modify the XML to prevent this. I found that if I mucked around with the hashes inside the <items> section of the <inputs> I could change the 'a' and 'b' order... seems like an ugly hack. Will [b]RTFM[/b] help me understand this?
:wink:[/quote]
In which folder I have to copy the xml.script?
Anyhow, I learned a lot and wrote a helper script that will 'replicate' sections of the graph template making the addition of lines to an existing template easier.
[color=indigo]Here is a question for gandalf:[/color] when looking at the [b]RRDTool Command[/b] in debug mode, all the CDEFs are run [u]twice[/u]. How would I modify the XML to prevent this. I found that if I mucked around with the hashes inside the <items> section of the <inputs> I could change the 'a' and 'b' order... seems like an ugly hack. Will [b]RTFM[/b] help me understand this?
:wink:[/quote]
In which folder I have to copy the xml.script?
- mokeybrains
- Posts: 42
- Joined: Mon Aug 22, 2005 9:39 pm
- Location: San Francisco, CA
- Contact:
XML.script how to ;)
Import the XML file (see image below).
Click on
*Console
*Graph Management
*Add (upper right of screen)
*Pick Combined - Used Disk Space - 5 partitions
*Pick a host
*Click Create
*fill out all the partitions
(cacti wizards: how can this be automated to pre-populate paritions 1-4 with / /var /tmp /usr?)
Click on
*Console
*Graph Management
*Add (upper right of screen)
*Pick Combined - Used Disk Space - 5 partitions
*Pick a host
*Click Create
*fill out all the partitions
(cacti wizards: how can this be automated to pre-populate paritions 1-4 with / /var /tmp /usr?)
- Attachments
-
- How to import an XML file.
- HowToImportXML.png (92.09 KiB) Viewed 19635 times
Re: XML.script how to ;)
[quote="mokeybrains"]Import the XML file (see image below).
Click on
*Console
*Graph Management
*Add (upper right of screen)
*Pick [i]Combined - Used Disk Space - 5 partitions[/i]
*Pick a host
*Click Create
*fill out all the partitions
(cacti wizards: how can this be automated to pre-populate paritions 1-4 with / /var /tmp /usr?)[/quote]
It doesn't work!?!?!?!?
I imported the template as discribed, but no graph ist shown.
What's the reason?
Thanks
idg-pm
@Reinhard: Hallo Reinhard.
Kann ich das angebotene Script einfach so im Cacti importieren? Bei mir wird daraufhin leider kein Graph angezeigt...
Vielen Dank
Pat
Click on
*Console
*Graph Management
*Add (upper right of screen)
*Pick [i]Combined - Used Disk Space - 5 partitions[/i]
*Pick a host
*Click Create
*fill out all the partitions
(cacti wizards: how can this be automated to pre-populate paritions 1-4 with / /var /tmp /usr?)[/quote]
It doesn't work!?!?!?!?
I imported the template as discribed, but no graph ist shown.
What's the reason?
Thanks
idg-pm
@Reinhard: Hallo Reinhard.
Kann ich das angebotene Script einfach so im Cacti importieren? Bei mir wird daraufhin leider kein Graph angezeigt...
Vielen Dank
Pat
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: XML.script how to ;)
In general, you may simply import the Template and copy any script to the scripts folder. Please make a screenshot of RRA settings before importing. Especially if you're using non-standard RRA definitions, the will be overwritten by the templateidg-PM wrote:@Reinhard: Hallo Reinhard.
Kann ich das angebotene Script einfach so im Cacti importieren? Bei mir wird daraufhin leider kein Graph angezeigt...
Vielen Dank
Pat
Ja, man kann das Template einfach importieren. RRA Settings bitte vorher ausdrucken, die werden immer ueberschrieben (wenn es die standard Einstellungen sind ist das nicht weiter schlimm). Wenn ein Skript dabei ist, bitte nicht vergessen dieses in das ./scripts Verzeichnis zu kopieren
Reinhard
- mokeybrains
- Posts: 42
- Joined: Mon Aug 22, 2005 9:39 pm
- Location: San Francisco, CA
- Contact:
Re: XML.script how to ;)
Du hast template gemacht Hast du jetzt die graph machen? Du must alles lesen, meine Freund!idg-PM wrote: It doesn't work!?!?!?!?
I imported the template as discribed, but no graph ist shown.
------------
haha, haven't used German in a long time. Anyhow, follow ALL the steps. Import the graph is one step, making the graph is another.
Re: XML.script how to ;)
[quote="mokeybrains"][quote="idg-PM"]
It doesn't work!?!?!?!?
I imported the template as discribed, but no graph ist shown.
[/quote]
Du hast template gemacht Hast du jetzt die graph machen? Du must alles lesen, meine Freund!
------------
haha, haven't used German in a long time. Anyhow, follow ALL the steps. Import the graph is one step, making the graph is another.[/quote]
I read everything :D , and created the graph after the import. I observed the graph during a day working but no lines are schown.
Don't know the reason. I try to import it again and copy the same script to the scipt folder as Reinhard added.
I'll tell, if it works....
Pat
It doesn't work!?!?!?!?
I imported the template as discribed, but no graph ist shown.
[/quote]
Du hast template gemacht Hast du jetzt die graph machen? Du must alles lesen, meine Freund!
------------
haha, haven't used German in a long time. Anyhow, follow ALL the steps. Import the graph is one step, making the graph is another.[/quote]
I read everything :D , and created the graph after the import. I observed the graph during a day working but no lines are schown.
Don't know the reason. I try to import it again and copy the same script to the scipt folder as Reinhard added.
I'll tell, if it works....
Pat
Who is online
Users browsing this forum: No registered users and 1 guest