jueves, 23 de septiembre de 2010

Mantis en debian 5.0 lenny (by Morsa)

Requiere:
---------

Software (for MantisBT 1.2.x)

* PHP 5.2.0 and higher
* MySQL database 4.1.1 and higher (MS SQL, DB2, and PostgreSQL are also supported).
* Web server (Apache, IIS, etc.)


Instalación:
------------
# apt-get install php5 apache2 mysql-server-5.0
Configurin mysql-server-5.0

Password:
P2SS

# cd /var/www
# wget http://downloads.sourceforge.net/project/mantisbt/mantis-stable/1.2.3/mantisbt-1.2.3.tar.gz
# tar xzvf mantisbt-1.2.3.tar.gz
# mv mantisbt-1.2.3 /var/www/mantis
# /etc/init.d/apache2 reload
# chown www-data mantis

http://192.168.1.100/mantis/admin/check.php
Checking your installation
Checking Config File Exists
Please use install.php to perform initial installation Click here -> BAD !!!!

http://192.168.1.100/mantis/admin/instal.php


# apt-get install php5-mysql
# vim /var/www/mantis/config_inc.php

// Configuracion de la base de datos
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = 'P2SS';


// Configuracióel modo mail
$g_phpMailer_method='2';
$g_smtp_host='192.168.1.100';

// Configuracion de las direcciones email del sistema
$g_administrator_email='morsa@mi-dominio.com' ;
$g_webmaster_email='morsa@mi-dominio.com';
$g_from_email='no-reply-mantis@mi-dominio.com';

// Configuracion del idioma y del formato de la fecha
$g_default_language='español';
$g_short_date_format='d-m-Y';
$g_normal_date_format='d-m-Y H:i';
$g_complete_date_format='d-m-Y H:i';


// Personalisacion de Mantis
$g_window_title='Mantis Netapsys';

?>

Acceso:
=======


http://192.168.1.100/mantis/login_page.php

# rm -r admin/

miércoles, 22 de septiembre de 2010

Smokeping en debian 5.0 lenny (by Morsa)

Qué es SMOKEPING:
=================

Una herramienta para medir latencia de red.
Demo: http://smokeping.ncren.net/smokeping.cgi?target=External_Sites.Wikipedia

1) Instalamos Paquetes:
=======================
#apt-get install smokeping curl libauthen-radius-perl libnet-ldap-perl libnet-dns-perl libio-socket-ssl-perl libnet-telnet-perl libsocket6-perl libio-socket-inet6-perl apache2 rrdtool

2) Configuramos:
================

#cp -pf /etc/smokeping/config.d/General /etc/smokeping/config.d/General.orig
#vim /etc/smokeping/config.d/General

*** General ***

@include /etc/smokeping/config.d/pathnames

# Please edit this to suit your installation
owner = Hernan Morsa
contact = morsa_micke@hotmail.com
cgiurl = http://192.168.1.100/cgi-bin/smokeping.cgi
mailhost = smtp.morsa.com
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no



#cp -pf /etc/smokeping/config.d/Targets /etc/smokeping/config.d/Targets.orig
#vim /etc/smokeping/config.d/Targets

probe = FPing

menu = Top
title = Monitor de latencia de red
remark = Bienvenido al monitor de latencia de red de Morsa.

+ Morsa
menu = Morsa
title = Morsa

++ Cliente1
menu = Cliente1
title = Cliente1 (192.168.1.200)
host = 192.168.1.200

+ Servers

menu = Mis Servers
title = Mis Servers

++ Server1
menu = Server1
title = Server1 (192.168.1.201)
host = 192.168.1.201



#/etc/init.d/smokeping restart

#vim /etc/smokeping/Probes
*** Database ***

#Esto quiere decir que envia cada 30 segundos 15 pings.
step = 30
pings = 15

# consfn mrhb steps total

AVERAGE 0.5 1 1008
AVERAGE 0.5 12 4320
MIN 0.5 12 4320
MAX 0.5 12 4320
AVERAGE 0.5 144 720
MAX 0.5 144 720
MIN 0.5 144 720

3) Acceso:

==========

http://192.168.1.100/cgi-bin/smokeping.cgi