HELP: A Few Different Issues

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

Moderators: Developers, Moderators

dinux
Posts: 15
Joined: Tue Dec 20, 2005 6:55 pm
Location: Scottsdale, AZ, USA
Contact:

HELP: A Few Different Issues

Post by dinux »

Hello all. I have been a user of cacti for probably two years now. Though I don't constantly run it, I have never had this many problems with setting it up before. I am not sure if it is my server where cacti is located or if it is SNMP on my remote servers. In short, here is what is going on.

I install cacti using the documentation here http://www.cacti.net/downloads/docs/htm ... _unix.html. I have never had an issue with these instructions until now. After I get it installed and running, I go to setup the another machine besides the local host machine. All of my templates work such as memory usage, ping latency and so on but the one that doesn't is the SNMP Interface Statistics. The Preview Graphs aren't getting built.

Other times, no graphs get built at all. The RRA files are being generated, yet no graphs are being generated. Any help is appreciated.

Distro: F7 (Fedora)
Daemons: Apache 2.2.4, PHP 5.2.2 (php-snmp is installed), MySQL is running on a remote server

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

Post by gandalf »

Please report your cacti version. Make sure, it is fully patched. If problem persists, please post a screenshot
Reinhard
dinux
Posts: 15
Joined: Tue Dec 20, 2005 6:55 pm
Location: Scottsdale, AZ, USA
Contact:

Post by dinux »

Ok, so I looked a little further into the problem and once again, started from scratch. I installed the later version (0.8.6j) and then patched it with all of the patches. Then I added one server to it. Still same problems, plus more.

After the patches, the tree view had no servers in it at all. The preview graphs were generated but there was no data in them.

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

Post by gandalf »

Hmm, very weird. Please try second link of my signature as a start. It was not written to solve such a problem. But I hope we'll get some more information out of it. Please post results of all steps
Reinhard
dinux
Posts: 15
Joined: Tue Dec 20, 2005 6:55 pm
Location: Scottsdale, AZ, USA
Contact:

Post by dinux »

Ok, so I started all over again. This time, everything is working fine except the Ping Latency. The Ping patch doesn't work either as I tried it. Any ideas?

Distro: F7 (Fedora)
Daemons: Apache 2.2.4, PHP 5.2.2 (php-snmp is installed), MySQL is running on a remote server
Cacti: 0.8.6j
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What are you referring to exactly when talking about ping latency. There are several different ping scripts out there
Reinhard
Ahuber
Cacti User
Posts: 59
Joined: Thu Nov 16, 2006 1:57 pm
Location: BC, kootenays

Post by Ahuber »

Regarding the problem with the preview graphs not showing, but some other graphs in other forms showing, doesn't that occur when you have set the incorrect version of rrdtool? I noticed your last post you mentioned you got everything working, what did you do different?
dinux
Posts: 15
Joined: Tue Dec 20, 2005 6:55 pm
Location: Scottsdale, AZ, USA
Contact:

Post by dinux »

Funny thing... all I did was upgraded from 0.8.6h to 0.8.6j. No patches or anything until I noticed that the Unix Ping Latency graphs were there but there was no data in them in. Then I tried using the patch and that didn't work either.

Any other ideas?
User avatar
rcaston
Cacti User
Posts: 204
Joined: Tue Jan 06, 2004 7:47 pm
Location: US-Dallas, TX
Contact:

Post by rcaston »

dinux wrote:Funny thing... all I did was upgraded from 0.8.6h to 0.8.6j. No patches or anything until I noticed that the Unix Ping Latency graphs were there but there was no data in them in. Then I tried using the patch and that didn't work either.

Any other ideas?
verify you set the rrdtool to the correct version # in your settings.
dinux
Posts: 15
Joined: Tue Dec 20, 2005 6:55 pm
Location: Scottsdale, AZ, USA
Contact:

Post by dinux »

All settings are fine and correct. RRDTool is set to 1.2.x and I am running 1.2.3. Any other ideas?
av8orjon
Posts: 10
Joined: Wed Aug 08, 2007 2:54 am
Location: Johannesburg, South Africa

My problem too...where's the graphs!?

Post by av8orjon »

Hi guys!

My reply unfortunately does not have any answers but rather more questions :(

I'm jumping onto the bandwagon as I'm running into the same problem!

Running 0.8.6j on Fedora core 6

php-5.1.6-3.6.fc6
mysql-5.0.22-2.1
httpd-2.2.3-5
net-snmp-5.3.1-15.fc6
net-snmp-utils-5.3.1-15.fc6

I am a first timer with cacti and am NEARLY NEARLY there....

I am able to connect (127.0.0.1) and query snmp on the local linux box that is running cacti....returns data and the graphs are running....only when I go to view the graphs through my browser there's nothing to be seen.....a page of whitespace and if viewed though IE6 (uuugh), good ol red x's ? ?

Any idea's to help us out!?

Thanks

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

Post by gandalf »

Please check the rrdtool version settings and the rrdtool font path issues mentioned in this thread
Reinhard
av8orjon
Posts: 10
Joined: Wed Aug 08, 2007 2:54 am
Location: Johannesburg, South Africa

Post by av8orjon »

Hi gandalf, thanks for the reply!

I have tried running cacti with both rrdtool versions set?

At the moment I have RRDTool version 1.2.x set?

I have been receiving assistance from another cacti forum member who was trying to help...

Here is the exact breakdown as I e-mailed to him...

I have am logging to cacti.log under DEBUG mode and it's nice and verbose....when viewed through the cacti browser I see that it also displays the data in a nicely readable and colour coded format. Tailing the file I cannot see any errors being logged...SQL calls etc are all occuring with no sign of error?

I am receiving data through the stdout on the screen however?? When I go to view the graphs through my browser I notice that the following is pumped through stdout...

Code: Select all


audit(1186754911.455:48): avc: denied {execute} for pid=3493 comm="httpd" name="bash" dev=dm-0 ino=2457630 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file
...that output is displayed on the cacti server console screen as each respective graph is "viewed"...or at least when I try and view a graphs through my browser? ?

Any ideas I would be very grateful!

TIA
JON
He came back and asked whether I could see anything if I were to click on the red cross (x)

..my reply
Hi,

Unfortunately not

When I click on the graph I can see that cacti takes one to a sort of history section whereby it displays that particular graphs history over the past week, month etc...

Only as each graph "populates" itself on the screen i see the stdout on the cacti box streaming these avc: denied {execute} type listings and the browser then returns the red X. The typical error in IE when it cannot link to a jpg for instance ? ?

Something in this code appears to be blocking/denying the building of the graphs for my browser? Do you know if the graphs are built dynamically when one tries to view them through their browser?? If so, it appears as though httpd is being "BLOCKED" from building/serving the data? ?

I'm flying off theories here...again as I mentioned, I'm still kinda new to the cacti way of doing things!

Thanks

JON
I appreciate your time, sorry, if I'm overwhelming you but aside from researching and researching I'm running out of options!

TIA

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

Post by gandalf »

av8orjon wrote:

Code: Select all


audit(1186754911.455:48): avc: denied {execute} for pid=3493 comm="httpd" name="bash" dev=dm-0 ino=2457630 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file
That's obviously SELinux enabled. Either change the rules or-what-the-hell-the-stuff-is-called-there or deactivate it
Reinhard
av8orjon
Posts: 10
Joined: Wed Aug 08, 2007 2:54 am
Location: Johannesburg, South Africa

Post by av8orjon »

Hi Gandalf,

Ok, I've set SELinux to permissive which is essentially open only it will log access that would usually be blocked! I'm going to give the graphs a couple of minutes so as to see what happens...? ?here's hoping!!

I'll post here shortly...

JON
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests