Problem with Graph generation

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

Moderators: Developers, Moderators

Post Reply
Amadeus
Posts: 8
Joined: Tue Aug 21, 2007 4:52 am

Problem with Graph generation

Post by Amadeus »

Hi,

I am kinda new to cacti. Jus got to install it on RHEL 4 and added couple of devices.

The problem that I face is that when i go to the tree view and select any device, I am not getting any graphs. :cry:

I jus get a X.

But when I click on these i get the graphs that pertain to the device and the monitored parameter.

Again on these graphs when I click on the magnifying glass, I get that X again.

I am not sure where I am goin wrong !!

HELP APPRECIATED !!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Which browser are you using? Did you double check Settings->RRDTool Utility Version? Do you use specific rrd font files?
Reinhard
Amadeus
Posts: 8
Joined: Tue Aug 21, 2007 4:52 am

Post by Amadeus »

Hi Gandalf,

I am using IE 6.
I checked for the RRDTool version and it is correct.

I am not using any specific RRD Font files, just the default ones.

Roger
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

SELinux enabled?
Reinhard
Amadeus
Posts: 8
Joined: Tue Aug 21, 2007 4:52 am

Post by Amadeus »

I am not sure that is done?
Could you tell me how do I check if it has been enabled ?

Regards,
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

run /usr/sbin/selinuxenabled. If noting is reported, it is disabled
Reinhard
Amadeus
Posts: 8
Joined: Tue Aug 21, 2007 4:52 am

Post by Amadeus »

Hi Gandalf,

Thanks ..

It reported nothin

[root@HSCHNETLTPK0001 /]# /usr/sbin/selinuxenabled
[root@HSCHNETLTPK0001 /]#


So how do I enable this ? and what is this used for ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Leave it alone, if you don't want to increase your problems!
Please visit graph management for a failing gaph, switch to debug mode and post the whole rrdtool graph statement
Reinhard
Amadeus
Posts: 8
Joined: Tue Aug 21, 2007 4:52 am

Post by Amadeus »

Hi Reinhard,

Is this what u asked for ?
Also I am attaching a screeshot document of what problem I am facing.


/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
DEF:a="/usr/local/apache/htdocs/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
DEF:b="/usr/local/apache/htdocs/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
Attachments
cacti.doc
(488 KiB) Downloaded 128 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please copy the rrdtool graph command of a FAILING graph to some arbitrary file. Change rrdtool graph - \ to rrdtool graph /tmp/foo.png \ and run the whole command line as a shell command. Any errors?
And, please, do not post non-standardized formats. The forums allow for attaching graphs directly. That reduces my effort by far!
Reinhard
Amadeus
Posts: 8
Joined: Tue Aug 21, 2007 4:52 am

Post by Amadeus »

Hi Reinhard,

I ran the same command after changing /usr/local/rrdtool/bin/rrdtool graph - \ to /usr/local/rrdtool/bin/rrdtool graph /tmp/foo.png \
I did not encounter any error.

The output of the command was :-

597x213

and the file foo.png was created.

Sorry about the attachment last time, am kinda new and was not aware.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Last resort: Please enable debug settings for graphing commands (Settings). It will be quite verbose! Please try to find the statements associated to your failing graphs.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests