[solved] Graph not displaying a value

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

Moderators: Developers, Moderators

Post Reply
cs-cam
Posts: 3
Joined: Tue Sep 29, 2009 11:50 pm

[solved] Graph not displaying a value

Post by cs-cam »

Hey all, I've written a little PHP script to get memory usage values from a Windows server via SNMP. The script works fine and I've set up the templates and they all seem ok however the graph is only showing one value correctly when there should be two.

Any ideas? I'm fairly sure it's something simple but I've checked everything a few times and can't find the mistake. Attached a bunch of screenshots to show where I'm at. If theres anything I've missed let me know.

Any help would be greatly appreciated!
Attachments
Graph with debug on
Graph with debug on
graph_debug.jpg (58.34 KiB) Viewed 948 times
Data source with debug on
Data source with debug on
data_debug.jpg (65.38 KiB) Viewed 948 times
rrdtool output for the rra file. As far as I can see, it shows both values there?
rrdtool output for the rra file. As far as I can see, it shows both values there?
rrdtool_output.jpg (53.53 KiB) Viewed 948 times
Output from my script, also showing the output of a known working one for format comparison
Output from my script, also showing the output of a known working one for format comparison
script_output.jpg (19.08 KiB) Viewed 948 times
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Your max value for data source phy_total is set to 100

Code: Select all

ds[phy_total].max=1.0000000000e+02
You should set that to a higher value.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
cs-cam
Posts: 3
Joined: Tue Sep 29, 2009 11:50 pm

Post by cs-cam »

Thanks very much, that fixed it :)

Now I'm trying to get the vertical axis to show the number in thousands, not shorten it to xx k :( I tried changing the Base Value (--base) to 1 but rrdtool complained that it can only be set to 1000 or 1024.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Adjust 'Unit Exponent Value'
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
cs-cam
Posts: 3
Joined: Tue Sep 29, 2009 11:50 pm

Post by cs-cam »

Thanks very much again! :)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests