Nagios on FreeBSD6.1

2006-10-27 Thread riccardo_diago
Hi to all,
I have a problem to setting nagios on my Sun Sparc with FreeBSD 6.1 ...
I think is the web server, because I see nagios's web page, but I cannot
exeute the cgis.
I have this situation in my httpd:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
User www
Group www
AddHandler cgi-script .cgi
ScriptAlias /nagios/cgi-bin /usr/local/www/nagios/cgi-bin
Directory /usr/local/www/nagios/cgi-bin
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
/Directory
Alias /nagios /usr/local/www/nagios/
Directory /usr/local/www/nagios/
Options None
AllowOverride none
Order allow,deny
Allow from all
/Directory
I've already changed permission 777 to all dirs and
I also did:
 chown www:www /usr/local/www/nagios/cgi-bin
 chown www:www /usr/local/www/nagios/
but apache still does want to execute the cgis.


Any ideas?
Have I to deinstall nagios the port and start over again?
or deinstall apache22 ?

Thanks a lot.
Best
rik


signature.asc
Description: OpenPGP digital signature


Cacti Problem

2006-10-26 Thread riccardo_diago
Hi guys,
I got a problem installing cacti on Freebsd 6.1 on sparc.
I did:
1. download and install from port net/cacti
2. check if mysql was running
3. I did all the steps u find in cacti/docs/INSTALL (except for the
default user that is 'cacti' and not 'cactiuser')
4. check permissions on rra and log dir
-BEGIN DUMP this is a dump of my cacti dir---


-rw-r--r--   1 root   wheel   15141 Oct 26 08:52 LICENSE
-rw-r--r--   1 root   wheel  71 Oct 26 08:52 README
-rw-r--r--   1 root   wheel5892 Oct 26 08:52 about.php
-rw-r--r--   1 root   wheel4773 Oct 26 08:52 auth_changepassword.php
-rw-r--r--   1 root   wheel6189 Oct 26 08:52 auth_login.php
-rw---   1 root   wheel  170643 Oct 26 08:52 cacti.sql
-rw-r--r--   1 root   wheel   13108 Oct 26 08:52 cdef.php
-rw-r--r--   1 root   wheel   16569 Oct 26 08:52 cmd.php
-rw-r--r--   1 root   wheel5917 Oct 26 08:52 color.php
-rw-r--r--   1 root   wheel2753 Oct 26 08:52 copy_cacti_user.php
-rw-r--r--   1 root   wheel   17536 Oct 26 08:52 data_input.php
-rw-r--r--   1 root   wheel   28164 Oct 26 08:52 data_queries.php
-rw-r--r--   1 root   wheel   44092 Oct 26 08:52 data_sources.php
-rw-r--r--   1 root   wheel   30344 Oct 26 08:52 data_templates.php
drwxr-xr-x   5 root   wheel 512 Oct 26 08:52 docs
-rw-r--r--   1 root   wheel6110 Oct 26 08:52 gprint_presets.php
-rw-r--r--   1 root   wheel   10498 Oct 26 08:52 graph.php
-rw-r--r--   1 root   wheel3423 Oct 26 08:52 graph_image.php
-rw-r--r--   1 root   wheel6319 Oct 26 08:52 graph_settings.php
-rw-r--r--   1 root   wheel   22578 Oct 26 08:52 graph_templates.php
-rw-r--r--   1 root   wheel   10097 Oct 26 08:52 graph_templates_inputs.php
-rw-r--r--   1 root   wheel   17367 Oct 26 08:52 graph_templates_items.php
-rw-r--r--   1 root   wheel   23122 Oct 26 08:52 graph_view.php
-rw-r--r--   1 root   wheel   46835 Oct 26 08:52 graphs.php
-rw-r--r--   1 root   wheel   11945 Oct 26 08:52 graphs_items.php
-rw-r--r--   1 root   wheel   30802 Oct 26 08:52 graphs_new.php
-rw-r--r--   1 root   wheel   33450 Oct 26 08:52 host.php
-rw-r--r--   1 root   wheel   14236 Oct 26 08:52 host_templates.php
drwxr-xr-x   2 root   wheel1536 Oct 26 08:52 images
drwxr-xr-x   5 root   wheel 512 Oct 26 08:52 include
-rw-r--r--   1 root   wheel2271 Oct 26 08:52 index.php
drwxr-xr-x   2 root   wheel 512 Oct 26 08:52 install
drwxr-xr-x   3 root   wheel1024 Oct 26 08:52 lib
drwxr-xr-x   2 cacti  cacti 512 Oct 26 08:52 log
-rw-r--r--   1 root   wheel1796 Oct 26 08:52 logout.php
drwxr-xr-x   2 root   wheel 512 Oct 26 08:52 plugins
-rw-r--r--   1 root   wheel9491 Oct 26 08:52 poller.php
-rw-r--r--   1 root   wheel4673 Oct 26 08:52 poller_commands.php
-rw-r--r--   1 root   wheel2325 Oct 26 08:52 poller_export.php
-rw-r--r--   1 root   wheel4343 Oct 26 08:52 poller_reindex_hosts.php
-rw-r--r--   1 root   wheel4170 Oct 26 08:52 rebuild_poller_cache.php
drwxr-xr-x   5 root   wheel 512 Oct 26 08:52 resource
drwxr-xr-x   2 cacti  cacti 512 Oct 26 08:52 rra
-rw-r--r--   1 root   wheel6622 Oct 26 08:52 rra.php
-rw-r--r--   1 root   wheel6760 Oct 26 08:52 script_server.php
-rw-r--r--   1 root   wheel 353 Oct 26 08:52 script_server.pl
drwxr-xr-x   2 root   wheel1024 Oct 26 08:52 scripts
-rw-r--r--   1 root   wheel4833 Oct 26 08:52 settings.php
-rw-r--r--   1 root   wheel6813 Oct 26 08:52 templates_export.php
-rw-r--r--   1 root   wheel5954 Oct 26 08:52 templates_import.php
-rw-r--r--   1 root   wheel   17463 Oct 26 08:52 tree.php
-rw-r--r--   1 root   wheel   27829 Oct 26 08:52 user_admin.php
-rw-r--r--   1 root   wheel   11480 Oct 26 08:52 utilities.php
END DUMP 

5. add these lines to Apache22:

Alias /cacti /usr/local/share/cacti/
DirectoryMatch /usr/local/share/cacti/

Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all
IfModule mod_php4.c
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag short_open_tag On
php_flag register_globals Off
php_flag register_argc_argv On
php_flag track_vars On
# this setting is necessary for some locales
php_value mbstring.func_overload 0
php_value include_path .

DirectoryIndex index.php
/IfModule
/DirectoryMatch

6. Finally I went to the web browser and I saw this message:

An error occurred while loading http://server.com/cacti:
Connection to host server.com is broken.

There is anybody can help me out w/ that?

thanks a lot in advance.

Rik.




signature.asc
Description: OpenPGP digital signature


System monitoring

2006-10-19 Thread riccardo_diago
hi all,
I'm newbie w/ freebsd.
i'm trying to install freebsd 6.1 to create a server only to monitoring
the others.
Anybody has experience with cacti and nagios?
or if u can suggest me other solution would be great. :-)

thanks in advance

Rik


signature.asc
Description: OpenPGP digital signature


Re: tool for checking website

2006-10-05 Thread riccardo_diago

depend on what u really wanna check...
1. the web server?
2. the protocol http?
3. or if the web site is just visible(avoid defacement)
etc...

Can u be more specific?

Rik


signature.asc
Description: OpenPGP digital signature