[SOLVED]Graph Title tuning :integrate 'Device Name'

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
Gilles.29
Posts: 15
Joined: Tue Aug 11, 2009 9:27 am

[SOLVED]Graph Title tuning :integrate 'Device Name'

Post by Gilles.29 »

Hello,

I try to monitoring Disk Space of linux server .

How can i integrate automatically, 'Device Name' and 'Mount point' values in the Graph title after the action 'Create Graphs for this Host' ?

Actually, the lasted 2 digits 'Device Name' are trunked in the Graph Title after creating graph like below with the template 'Unix Available Disk Space'.

+ Created graph: adm01-my - Disk Space - /dev/cciss/c0d0
+ Created graph: adm01-my - Disk Space - /dev/cciss/c0d0
+ Created graph: adm01-my - Disk Space - /dev/cciss/c0d0
+ Created graph: adm01-my - Disk Space - /dev/cciss/c0d0
+ Created graph: adm01-my - Disk Space - /dev/cciss/c0d0

I prefer to show the full Device Name in the title like this :
adm01-my - Disk Space - /dev/cciss/c0d0p1 - /usr

Image

Any idea ?

Thanks
Last edited by Gilles.29 on Tue Aug 11, 2009 2:19 pm, edited 1 time in total.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Console/Collection Methods/Data Queries/Unix - Get Mounted Partitions

Under Associated Graph Templates, click on 'Available Disk Space'.

Add a new Suggested Value for Graph Template and move it to the top.

Then, use the 'Reapply Suggested Values' option in the 'Graph Management' page to adjust your current graphs.

Future graphs will use the top method.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Gilles.29
Posts: 15
Joined: Tue Aug 11, 2009 9:27 am

Post by Gilles.29 »

Many thanks Linegod 8)

Do you have any suggestion to change query_dskDevice with ?

the actual Graph template :
name |host_description| - Free Space - |query_dskDevice|
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

query_dskMount

You can see what is available by looking at the .xml file. ie:

<code>
cacti/resource/script_queries/unix_disk.xml
</code>

Anything with 'input' is a valid 'query' to be used in a graph.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Gilles.29
Posts: 15
Joined: Tue Aug 11, 2009 9:27 am

Post by Gilles.29 »

I test this configuration tomorrow .
Thanks Linegod for your inputs and your quick response
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests