Disable 'm' for some graphs

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
chrome
Posts: 13
Joined: Fri May 13, 2005 1:38 am

Disable 'm' for some graphs

Post by chrome »

Hi guys,

I just made a nice template and script for graphing exim stats, but there is one annoyance.

It doesn't really make much sence to say "998.53 milli messages / second". I want "998.53 m" displayed as "0.99".

I read the previous threads at http://forums.cacti.net/viewtopic.php?t=7571 and http://forums.cacti.net/viewtopic.php?t=6278 but they didn't really answer what I need.

Is there any way to make cacti/rrdtool to not use the other measurements?

TIA
Attachments
graph_image.png
graph_image.png (37.17 KiB) Viewed 7692 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you tried setting the Graph Items GPRINT Type to Exact Numbers?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
chrome
Posts: 13
Joined: Fri May 13, 2005 1:38 am

Post by chrome »

Yes, but it rounds every number to the nearest whole number; what I want is just plain decimals.

Still, you've given me a good hint; it seems you can customize the GPRINT strings. I'll go and read RRDTool hints to see what string I need to do what I need.

Thanks! :)
chrome
Posts: 13
Joined: Fri May 13, 2005 1:38 am

Post by chrome »

Right!

"%8.3lf" is what I need. Easy :)

Thanks for pointing me in the right direction.
Paul Thexton
Posts: 49
Joined: Tue Jan 18, 2005 7:50 am

Post by Paul Thexton »

How are you getting the statistics out of exim? are you regularly running eximstats on the mainlog file or are you collating the data by some other means?

We have been looking at graphing data for exim (indeed we are currently graphing the number of messages on the queue using a passthru script in the net-snmpd daemon, to a script that will proxy a request to exim -bpc when it retrieves a request for MTA-MIB::mtaStoredMessages) .... but given the volume of traffic our mail servers carry I cannot afford from an efficiency point of view to have eximstats running on a regular basis ....
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I've split off the posts about exim stats. Finde them at http://forums.cacti.net/viewtopic.php?t=14143
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests