Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hey guys, i've tried to spare you by posting to the cacti forums about this but they don't seem to reply so here goes:
I have cacti up and running on my ubuntu server rc 6.06 with Apache/2.0.55 (Ubuntu) PHP/5.1.2 mod_ssl/2.0.55 OpenSSL/0.9.8a. If it's of any importance it is the .tar.gz that i have installeb becouse with 'apt-get install cacti' it instals cacti on php4 and i's giving me some bad errors.
So cacti is now installed and i've created a new device and some graphics for it, but i can only see the name of the graphic as seen in the picture below. The host is a generic snmp host, i have instaleed 'snmpd' on the linux machine and the snmp is running.
I have up and running 'rrdtool', the path in cacti for rrdtool is correct but i get this error:
RRDTool Command:GRAPH ACCESS DENIEDRRDTool Says:GRAPH ACCESS DENIED
sounds like a file system permissions issue. i would assume that the cacti daemon is running as the "cacti" user so the location where the RRD's are meant to be being written to needs to be either owned by the cacti user or set with sufficiently broad permissions so as to allow them to write to it. concentrate on the former method, maybe using the chown tool to change the ownership of the directory, or possibly changing the location to a more suitable one if that was an option during configuration. it seems strange that this error would occur after a formal installation process so i'd wonder if this location was changed somehow.
The location is '/usr/bin' the file has the same owner as the cacti database, root. The chmod is read write execute for owner, and read and execute for the others. I can't think of any location change, beside that cacti has a 'path' option and the location of 'rrdtool' is se properly.
Oh, and i've done mysql> GRANT ALL ON cacti.* TO root@localhost IDENTIFIED BY 'pass';
As you can see, www-data has read and write access, and everyone else has only read access.
The directory /var/lib/cacti/rra is owned by the user that runs the cronjob to update the database, in my case admin. This directory has permissions of "rwxrwxrwx". (I know this is probably bad, but it works ) I seem to remember that the ownership / permissions of this directory were a problem when I installed cacti.
Unfortunately, it was a long time ago that I setup cacti, so I can't remember much more than that
Sure was helpful to run poller.php. First of all the file didn't have the 'x' flag on even for the owner, i had to chmod it. Then i run the script and it gave me this error:
Fatal error: Call to undefined function: mysql_pconnect() in /var/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 356
I will try to google it some more.
If you need to know i use PHP5, and in php.ini i have:
; Allow or prevent persistent links.
mysql.allow_persistent = On
As for compatibylity with mysql i have this (displayed with phpinfo() ):
Active Persistent Links 0
Active Links 0
Client API version 5.0.22
MYSQL_LIBS -L/usr/lib -lmysqlclient