Graph Numbers don't make any sense

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
fantasygoat
Posts: 21
Joined: Wed May 16, 2007 5:17 pm

Graph Numbers don't make any sense

Post by fantasygoat »

I have a graph that is based on a single attribute, but the graphed values don't make any sense to me at all.

The script that generates the value seems to be working fine, in that the total keeps going up the expected amount:
hrsp2xx:5349812
hrsp2xx:5352500
... etc
But the graph that is produced *looks okay* but the scales are way off, as per the attached graph. Clearly we are serving more than 9.82 hits per 5min interval. Why is the scale so wrong?
Attachments
Screen shot 2011-08-11 at 12.23.07 PM.gif
Screen shot 2011-08-11 at 12.23.07 PM.gif (19.57 KiB) Viewed 1425 times
fantasygoat
Posts: 21
Joined: Wed May 16, 2007 5:17 pm

Re: Graph Numbers don't make any sense

Post by fantasygoat »

Also, other graphs based on the same script output show wildly different info - 4 million hits in 5min vs 2?
Attachments
Screen shot 2011-08-11 at 12.29.28 PM.gif
Screen shot 2011-08-11 at 12.29.28 PM.gif (28.17 KiB) Viewed 1424 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Graph Numbers don't make any sense

Post by gandalf »

m == milli
it's a FAQ
R.
fantasygoat
Posts: 21
Joined: Wed May 16, 2007 5:17 pm

Re: Graph Numbers don't make any sense

Post by fantasygoat »

I see that it's mentioned, but why is my graph showing them?

I would expect that if cacti sees the number has increased by 3000 in the five minutes since it last checked, it should put 3000 on the graph.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Graph Numbers don't make any sense

Post by gandalf »

Is it a COUNTER or a GAUGE?
R.
fantasygoat
Posts: 21
Joined: Wed May 16, 2007 5:17 pm

Re: Graph Numbers don't make any sense

Post by fantasygoat »

Counter. The number only goes up unless the service is restarted and clears the counters.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Graph Numbers don't make any sense

Post by gandalf »

The value printed has then to be read as a rate, that is, changes per second
R.
fantasygoat
Posts: 21
Joined: Wed May 16, 2007 5:17 pm

Re: Graph Numbers don't make any sense

Post by fantasygoat »

But the numbers still don't make any sense - the server is doing more than one hit a second.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Graph Numbers don't make any sense

Post by gandalf »

Then please debug as instructed by 2nd link of my sig. YOu will find the numbers that are returned by the script(s) in the log. You may perform your math, then, to compare to the "real world".
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests