FreeBSD installation

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

Moderators: Developers, Moderators

Post Reply
mystic8319
Posts: 7
Joined: Tue Jun 20, 2006 8:59 am

FreeBSD installation

Post by mystic8319 »

Hey all, please pardon my idiocy but I'm relatively new to this and could use a bit of help. I'm running FreeBSD-6.1. After following instructions on the web (http://www.linux.com/article.pl?sid=05/10/21/1958249" from a clean install of FreeBSD, I installed apache 2.2, then cacti from the ports collection which installed PHP and MySQL as depedendecies. I then installed Cactid and the MySQL server and configured it according to the *nix instructions (http://www.cacti.net/downloads/docs/htm ... _unix.html). At the end, I attempt to connect to it via the http://yourdomain.com/cacti but it just gives me a HTTP 404 not found. Restarting the server doesn't fix it, and neither does attempting to manually start cactid. If anyone could help, I'd greatly appreciate it!

Edit - Tried to manually run the PHP script that was in the cronjob and received an access denied message for user cactiuser @ localhost (using password: YES). I did have to run the command GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword'; twice since the first password I decided against using. Does this not change the password like I thought?
Last edited by mystic8319 on Wed Jun 21, 2006 1:11 pm, edited 1 time in total.
mystic8319
Posts: 7
Joined: Tue Jun 20, 2006 8:59 am

Post by mystic8319 »

Ok, in FreeBSD it's not config.php you're supposed to edit, but another file. So I did that, and the Access Denied went away, but now whenever I run the poller I'm getting the following:

-: not found

and it hangs.

Any ideas short of getting rid of FreeBSD and replacing it with Debian?
mystic8319
Posts: 7
Joined: Tue Jun 20, 2006 8:59 am

Post by mystic8319 »

Any ideas, anyone?? I'll be willing to try anything at this point. :(
mystic8319
Posts: 7
Joined: Tue Jun 20, 2006 8:59 am

Post by mystic8319 »

Ok, I switched it from php /usr/local/share/cacti/php.ini to /usr/local/share/cacti/lib/php.ini and the -: not found error message is gone. It just runs the poller and quits. However, I'm still not getting anything but a 404 not found error when I go to http://192.168.5.5/cacti/

Any ideas for this??
mystic8319
Posts: 7
Joined: Tue Jun 20, 2006 8:59 am

Post by mystic8319 »

Ok, set a symbolic link in the apache22 data directory to point to the cacti install path, and I can at least run the install and login. However, it's saying my localhost is down, and the graphs will not show up. Can anyone help me with this??
mystic8319
Posts: 7
Joined: Tue Jun 20, 2006 8:59 am

Post by mystic8319 »

It's working now. Kind of. It's showing localhost is up, and the graphs appear. However, only if I manually run poller.php as cacti does it SOMETIMES actually draw on the graph. Crontab log shows it running, no errors, and poller.php gives no errors, but it only SOMETIMES draws on the graph if I manually run it, but NEVER when it runs through crontab. A little little help here? I've read through probably the entire Linux subforum and am clueless.

EDIT - If I delete the stuff in the rra directory, graphs show up as broken links and even though the logs show the cronjob as running, it will NOT recreate them. I have to manually do it, but running poller.php as cacti. Then the graphs show no data and do not update.

I'm using cmd.php for all of this.
Graff
Posts: 1
Joined: Thu Jun 29, 2006 2:41 am

Post by Graff »

i had been f*#kin with this problem for couple weeks on freebsd 6.0, now all works, so
first of all, you need to specify full path to php and poller.php in job description of your crontab file, then chown all files in rra dir to user who runs script (www in my configuration), all should work.
mystic8319
Posts: 7
Joined: Tue Jun 20, 2006 8:59 am

Post by mystic8319 »

Thanks for replying Graff. I made sure everything was like you said; I'm using the default cacti as my login and everything has been chown to that and the group of the same name. I also made sure I used the correct pathnames for php and poller.php in the crontab.

It looks like the files are being created in rrd with the correct user and they're being modified at the correct time, but no data is showing in the graphs. Any idea what that could be?

EDIT - I was wrong, it looks like I didn't scroll down far enough to see that data WAS being logged after I made the change to the full path of the php binary (the first graph doesn't display anything, and the second was so low it showed nothing). Thanks for this, I appreciate it VERY much. Now that I've got a fellow FreeBSD user, mind if I ask what kind of things you monitor on your box? :D I'm actually looking to monitor bandwidth since this will be my www box.
Diceman
Cacti User
Posts: 142
Joined: Tue Oct 25, 2005 10:01 am

Post by Diceman »

i practically monitor everything on my boxes. ip interfaces, hard disks, cpu, memory. i have a few scripts that do a few other things as well.
m00h
Posts: 9
Joined: Thu May 18, 2006 12:09 pm

Polling

Post by m00h »

If you poll from a freebsd 6.x box it wont work as there is still a bug in cactid.
Diceman
Cacti User
Posts: 142
Joined: Tue Oct 25, 2005 10:01 am

Re: Polling

Post by Diceman »

m00h wrote:If you poll from a freebsd 6.x box it wont work as there is still a bug in cactid.
what are you talking about specifically? i am running freebsd 6 just fine as my cacti host and it graphs plenty of stuff.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests