Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Nov 18, 2018 10:27 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: [HOWTO] Cacti Install Howto on a FreeBSD
PostPosted: Sun Jul 24, 2005 7:19 am 
Offline

Joined: Thu Feb 20, 2003 11:45 am
Posts: 20
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.


Attachments:
Installing Cacti on FreeBSD.zip [72.27 KiB]
Downloaded 13813 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 6:04 am 
Offline

Joined: Sun May 22, 2005 11:25 am
Posts: 21
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 2:58 pm 
Offline

Joined: Thu Feb 20, 2003 11:45 am
Posts: 20
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!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 7:22 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 6012
Location: Michigan, USA
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.

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject: Re: Cacti Install Howto on a FreeBSD
PostPosted: Mon Oct 23, 2006 10:50 pm 
Offline

Joined: Thu Feb 20, 2003 11:45 am
Posts: 20
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>


Top
 Profile  
 
 Post subject: httpd.conf
PostPosted: Fri Nov 03, 2006 12:38 pm 
Offline

Joined: Fri Nov 03, 2006 12:32 pm
Posts: 2
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!


Top
 Profile  
 
 Post subject: Re: httpd.conf
PostPosted: Sun Nov 05, 2006 6:25 am 
Offline

Joined: Thu Feb 20, 2003 11:45 am
Posts: 20
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 :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 06, 2006 8:53 pm 
Offline

Joined: Mon Sep 29, 2003 8:23 pm
Posts: 5
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.


Top
 Profile  
 
 Post subject: Cacti Install Howto on a FreeBSD
PostPosted: Tue Nov 07, 2006 1:49 am 
Offline

Joined: Mon Nov 06, 2006 5:46 am
Posts: 20
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 07, 2006 2:07 am 
Offline

Joined: Mon Sep 29, 2003 8:23 pm
Posts: 5
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 =)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 07, 2006 10:18 am 
Offline

Joined: Fri Nov 03, 2006 12:32 pm
Posts: 2
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... :cry:

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... :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 10, 2006 5:18 am 
Offline

Joined: Wed Jun 14, 2006 4:06 pm
Posts: 4
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 10, 2006 5:53 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi

the snmpd.conf configuration is covered in the HowTo in my signature.

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 13, 2007 10:04 pm 
Offline

Joined: Tue Nov 13, 2007 10:00 pm
Posts: 1
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 16, 2007 7:08 pm 
Offline
Cacti User
User avatar

Joined: Sat Sep 23, 2006 7:50 pm
Posts: 86
Location: WI, USA
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group