Email Message to Reads Bits instead Megs

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
nedo
Cacti User
Posts: 60
Joined: Thu Nov 16, 2006 8:58 pm

Email Message to Reads Bits instead Megs

Post by nedo »

Hey all i want to make a small change in the email alerts header (subject) i get for the threshold when ever it breaches a treshhold it reads in bits instead the of the correct way i have it in the graph

see graph or attachments can this be changed in any of the plugin threshold files to match whatever the graph reads

thanks in advance
Attachments
Cacti Graph.PNG
Cacti Graph.PNG (80.74 KiB) Viewed 2385 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Moved to correct forum
[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]
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Create a CDEF and apply it to the threshold
NetAdmin
Cacti User
Posts: 98
Joined: Wed Aug 30, 2006 8:45 pm

Post by NetAdmin »

cigamit wrote:Create a CDEF and apply it to the threshold
Can you provide an example of what the CDEF should look like? :D
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

CDEFs are just math functions, just convert Bits to Megs. This would probably work.

cdef=CURRENT_DATA_SOURCE,1024,/,1024,/,8,*
NetAdmin
Cacti User
Posts: 98
Joined: Wed Aug 30, 2006 8:45 pm

Post by NetAdmin »

But this will just show the value, without the "M", correct? What if the speed is only 80K? Is this the only way to represent the exact number that appears on the graph as illustrated in the above pic?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

NetAdmin wrote:But this will just show the value, without the "M", correct? What if the speed is only 80K? Is this the only way to represent the exact number that appears on the graph as illustrated in the above pic?
Yes, correct that will only show the value. The problem is, thold doesn't know what type of number it is looking at, nor does it truly know exactly what format you are wanting it back in. It just looks at the raw numbers.

I could execute a lot of SQL queries, and determine what CDEFs the graph template is using and how it formats it, whether it is suppose to use base 2 or base 10 to determine the number, etc... or whether it is even suppose to output "pretty numbers".

Thold may one day be at the point where it has pretty human readable numbers, but its not there yet and its not high on my lists of things to actually implement (thold v1.0 is radically changed)

Until that point you will just have to remember that if I have a 3 or .080 in your traffic thresholds (which you applied a Bits to MBs CDEF) means the traffic is in MBs.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest