[HOWTO] Cacti Install Howto on a FreeBSD
Moderators: Developers, Moderators
[HOWTO] Cacti Install Howto on a FreeBSD
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.
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 13906 times
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
Also depends on the type of metrics the poller is pulling, snmp, scripts, php script server, etc.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Re: Cacti Install Howto on a FreeBSD
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.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.
Alias /cacti/ "/usr/local/share/cacti/"
<Location /cacti>
AddHandler php-script php
DirectoryIndex index.php
AllowOverride None
Order allow,deny
Allow from all
</Location>
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!
Re: httpd.conf
just addTnTBass 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!
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
-
- Posts: 5
- Joined: Mon Sep 29, 2003 8:23 pm
- Contact:
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.
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.
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.
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.
-
- Posts: 5
- Joined: Mon Sep 29, 2003 8:23 pm
- Contact:
That worked great, my apache now starts up, thanks!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
Good idea... installing from ports does not do everything for you... as I have found out...its best to read through the install/readme of cacti beforehand so you know what to expect.
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.php support in apache does not happen by default as seen in the previous post.
Code: Select all
<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>
Can you post your snmpd.conf file? i cant get cacti working on my freebsd computerfinchwizard 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 =)
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
the snmpd.conf configuration is covered in the HowTo in my signature.
the snmpd.conf configuration is covered in the HowTo in my signature.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Who is online
Users browsing this forum: No registered users and 0 guests