FreeBSD installation
Moderators: Developers, Moderators
-
- Posts: 7
- Joined: Tue Jun 20, 2006 8:59 am
FreeBSD installation
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?
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.
-
- Posts: 7
- Joined: Tue Jun 20, 2006 8:59 am
-
- Posts: 7
- Joined: Tue Jun 20, 2006 8:59 am
-
- Posts: 7
- Joined: Tue Jun 20, 2006 8:59 am
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??
Any ideas for this??
-
- Posts: 7
- Joined: Tue Jun 20, 2006 8:59 am
-
- Posts: 7
- Joined: Tue Jun 20, 2006 8:59 am
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.
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.
-
- Posts: 7
- Joined: Tue Jun 20, 2006 8:59 am
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? I'm actually looking to monitor bandwidth since this will be my www box.
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? I'm actually looking to monitor bandwidth since this will be my www box.
Re: Polling
what are you talking about specifically? i am running freebsd 6 just fine as my cacti host and it graphs plenty of stuff.m00h wrote:If you poll from a freebsd 6.x box it wont work as there is still a bug in cactid.
Who is online
Users browsing this forum: No registered users and 1 guest