|
|
| Author |
Message |
shanali
Joined: 20 Feb 2003 Posts: 20
|
|
| Back to top |
|
 |
georgew
Joined: 22 May 2005 Posts: 21
|
Posted: Thu Nov 10, 2005 6:04 am Post subject: |
|
|
You forgot the php.ini file...
Freebsd doesn't have one by default, and so your poller script
will run out of memory, and fail to display graphs.
Whomever is maintaining the freebsd php port is causing a lot
of headaches by leaving this important file out.
|
|
| Back to top |
|
 |
shanali
Joined: 20 Feb 2003 Posts: 20
|
Posted: Sat Nov 12, 2005 2:58 pm Post subject: |
|
|
hmm... interesting comment because i never touch php.ini (infact freebsd doesn't have one as you rightly mentioned)...
so far my poller script hasn't ran out of memory... (6mths of uptime)... but i believe if you happen to hit this problem then perhaps i'll keep an eye on it.
thanks!
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5469 Location: Wisconsin, USA
|
Posted: Sat Nov 12, 2005 7:22 pm Post subject: |
|
|
Poller will run out of memory on larger installations when you use over 8 megs of ram.
Also depends on the type of metrics the poller is pulling, snmp, scripts, php script server, etc.
|
|
| Back to top |
|
 |
shanali
Joined: 20 Feb 2003 Posts: 20
|
Posted: Mon Oct 23, 2006 10:50 pm Post subject: Re: Cacti Install Howto on a FreeBSD |
|
|
| shanali wrote: | hi,
Thought it would be great to share with the rest of the you one of the most hasslefree way of installing cacti.
The system is FreeBSD/amd64 running on Xeons (~3Ghz) but applicable to any FreeBSD distro because of FreeBSD's excellent Ports architecture.
Dependencies requiring for Cacti's operation are not even an issue to talk about and thats where FreeBSD based install rocks while delivering the latest build of Cacti whenever you would update FreeBSD ports system.
take care and thanks to cacti. |
A cacti user has gotten my attention on the subject. So here is the snippet on cacti+apache. You can put it either within httpd.conf or you can call it through one of the many include files from within httpd.conf.
Alias /cacti/ "/usr/local/share/cacti/"
<Location /cacti>
AddHandler php-script php
DirectoryIndex index.php
AllowOverride None
Order allow,deny
Allow from all
</Location>
|
|
| Back to top |
|
 |
TnTBass
Joined: 03 Nov 2006 Posts: 2
|
Posted: Fri Nov 03, 2006 12:38 pm Post subject: httpd.conf |
|
|
| Any chance I could get an example of someone's httpd.conf? I'm trying to install cacti on a FreeBSD 6.1 machine from scratch. I started with a mini install and built from there, but I'm finding the docs hard to follow as they seem to assume mysql and apache are already running, and you know what to do to configure it. I'm still fairly new to Apache and MySQL so I'm kind of struggling. Any help would be nice!
|
|
| Back to top |
|
 |
shanali
Joined: 20 Feb 2003 Posts: 20
|
Posted: Sun Nov 05, 2006 6:25 am Post subject: Re: httpd.conf |
|
|
| TnTBass wrote: | | Any chance I could get an example of someone's httpd.conf? I'm trying to install cacti on a FreeBSD 6.1 machine from scratch. I started with a mini install and built from there, but I'm finding the docs hard to follow as they seem to assume mysql and apache are already running, and you know what to do to configure it. I'm still fairly new to Apache and MySQL so I'm kind of struggling. Any help would be nice! |
just add
Include etc/apache/Includes/*.conf
as a last line in the standard httpd.conf and cut paste all the above contents in cacti.conf
restart apache and thats it
|
|
| Back to top |
|
 |
finchwizard
Joined: 29 Sep 2003 Posts: 5
|
Posted: Mon Nov 06, 2006 8:53 pm Post subject: |
|
|
I just installed Cacti on my FreeBSD 6.1 server, I've installed it a few times on Linux servers fine but have this problem with the memory.
cat: /proc/meminfo: No such file or directory
cat: /proc/meminfo: No such file or directory
When running the poller.php
I just grabbed the zip, so it wasn't compiled from Ports or anything.
Is there a way to get that going with BSD?
I also changed the graphing thing to ucd/net memory usage, but doesn't seem to help either.
|
|
| Back to top |
|
 |
mpb
Joined: 06 Nov 2006 Posts: 12
|
Posted: Tue Nov 07, 2006 1:49 am Post subject: Cacti Install Howto on a FreeBSD |
|
|
I also run FreeBSD and use ports - however:
its best to read through the install/readme of cacti beforehand so you know what to expect.
php support in apache does not happen by default as seen in the previous post. neither is mysql server intsalled by default, and of course is a requirement.
so IMHO its best to have mysql, apache, php as known working on your box, and then installing cacti on top of these - and it will avoid some pain. Just installing cacti and hoping and expecting that all dependencies will fall into place and work automagically is perhaps abit too much to expect.
|
|
| Back to top |
|
 |
finchwizard
Joined: 29 Sep 2003 Posts: 5
|
Posted: Tue Nov 07, 2006 2:07 am Post subject: |
|
|
Yep, PHP, MySQL and Apache were all installed fine, along with php5-extensions and enabled in php.ini etc.
I tried SNMP again, and managed to find how to configure it up properly with the snmpconf utility.
All working now =)
|
|
| Back to top |
|
 |
TnTBass
Joined: 03 Nov 2006 Posts: 2
|
Posted: Tue Nov 07, 2006 10:18 am Post subject: |
|
|
| Quote: | just add
Include etc/apache/Includes/*.conf
as a last line in the standard httpd.conf and cut paste all the above contents in cacti.conf
restart apache and thats it |
That worked great, my apache now starts up, thanks!
| Quote: | | its best to read through the install/readme of cacti beforehand so you know what to expect. |
Good idea... installing from ports does not do everything for you... as I have found out...
| Quote: | | php support in apache does not happen by default as seen in the previous post. |
Good point... I have now gotten apache to run and load http://cacti01/cacti/ but sadly, it does not seem to parse PHP yet... only prompts me to download the php file. I do have this in my httpd.conf and I've restarted apache, but it doesn't seem to make a difference.
| Code: |
<IfModule mod_php5.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
|
I'm doing some good googling to find the solution to that, but in the meantime, if anyone would be willing to advise on how that is done, I'm sure other people would find that useful also...
|
|
| Back to top |
|
 |
spaam
Joined: 14 Jun 2006 Posts: 4
|
Posted: Fri Nov 10, 2006 5:18 am Post subject: |
|
|
| finchwizard wrote: | Yep, PHP, MySQL and Apache were all installed fine, along with php5-extensions and enabled in php.ini etc.
I tried SNMP again, and managed to find how to configure it up properly with the snmpconf utility.
All working now =) |
Can you post your snmpd.conf file? i cant get cacti working on my freebsd computer
|
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
Posted: Fri Nov 10, 2006 5:53 am Post subject: |
|
|
Hi
the snmpd.conf configuration is covered in the HowTo in my signature.
|
|
| Back to top |
|
 |
hayzar23
Joined: 13 Nov 2007 Posts: 1
|
Posted: Tue Nov 13, 2007 10:04 pm Post subject: |
|
|
shanali,
At what part of your install are you supposed to install apache or another http sever? This is a WEB application, maybe that would be worthy of being mentioned at some point in your instructions.
|
|
| Back to top |
|
 |
zgamer
Joined: 23 Sep 2006 Posts: 45 Location: WI, USA
|
Posted: Fri Nov 16, 2007 7:08 pm Post subject: |
|
|
| Just as a general comment, FreeBSD 6 works great with Cacti. Currently running it in a VMWare appliance with the MacTrak, Weathermap, and Monitor plug-ins monitoring over 300 devices.
|
|
| Back to top |
|
 |
|