mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
2010-05-16 Raul Mateos <raulofpandora@gmail.com>
* bin/pandora_server, lib/PandoraFMS/Config.pm, conf/pandora_server.conf, pandora_server_upgrade: Updated year. Clean code. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2732 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2807c127a2
commit
b9e1dedc7a
@ -1,3 +1,8 @@
|
|||||||
|
2010-05-16 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
|
* bin/pandora_server, lib/PandoraFMS/Config.pm, conf/pandora_server.conf,
|
||||||
|
pandora_server_upgrade: Updated year. Clean code.
|
||||||
|
|
||||||
2010-05-13 Sergio Martin <sergio.martin@artica.es>
|
2010-05-13 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/Core.pm: Fixed some monitor
|
* lib/PandoraFMS/Core.pm: Fixed some monitor
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Pandora FMS Server
|
# Pandora FMS Server
|
||||||
# Pandora FMS. the Flexible Monitoring System. http://www.pandorafms.org
|
# Pandora FMS. the Flexible Monitoring System. http://www.pandorafms.org
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# Copyright (c) 2005-2009 Artica Soluciones Tecnologicas S.L
|
# Copyright (c) 2005-2010 Artica Soluciones Tecnologicas S.L
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
@ -40,7 +40,7 @@ my @Servers;
|
|||||||
my $DBH;
|
my $DBH;
|
||||||
|
|
||||||
########################################################################################
|
########################################################################################
|
||||||
# Server shutdown. Handler to do a controlled shutdown.
|
# Server shutdown. Handler to do a controlled shutdown.
|
||||||
########################################################################################
|
########################################################################################
|
||||||
sub pandora_shutdown () {
|
sub pandora_shutdown () {
|
||||||
logger (\%Config, 'Pandora FMS Server \'' . $Config{'servername'} . '\' Shutdown by signal ', 1);
|
logger (\%Config, 'Pandora FMS Server \'' . $Config{'servername'} . '\' Shutdown by signal ', 1);
|
||||||
@ -66,7 +66,7 @@ sub pandora_startup () {
|
|||||||
|
|
||||||
# Connect to the DB
|
# Connect to the DB
|
||||||
$DBH = db_connect ('mysql', $Config{'dbname'}, $Config{'dbhost'}, 3306,
|
$DBH = db_connect ('mysql', $Config{'dbname'}, $Config{'dbhost'}, 3306,
|
||||||
$Config{'dbuser'}, $Config{'dbpass'});
|
$Config{'dbuser'}, $Config{'dbpass'});
|
||||||
|
|
||||||
# Grab config tokens shared with the console and not in the .conf
|
# Grab config tokens shared with the console and not in the .conf
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
# Pandora FMS Server Parameters
|
# Pandora FMS Server Parameters
|
||||||
# Pandora FMS, the Flexible Monitoring System.
|
# Pandora FMS, the Flexible Monitoring System.
|
||||||
|
# Version 3.1
|
||||||
|
# Licensed under GPL license v2,
|
||||||
|
# (c) 2003-2010 Artica Soluciones Tecnologicas
|
||||||
# http://www.pandorafms.com
|
# http://www.pandorafms.com
|
||||||
# Please change it for your setup needs
|
# Please change it for your setup needs
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
@ -38,7 +38,7 @@ our @EXPORT = qw(
|
|||||||
|
|
||||||
# version: Defines actual version of Pandora Server for this module only
|
# version: Defines actual version of Pandora Server for this module only
|
||||||
my $pandora_version = "3.1-dev";
|
my $pandora_version = "3.1-dev";
|
||||||
my $pandora_build = "100224";
|
my $pandora_build = "100516";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
# Setup hash
|
# Setup hash
|
||||||
@ -47,11 +47,11 @@ my %pa_config;
|
|||||||
# Public functions
|
# Public functions
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# SUB pandora_help_screen()
|
# SUB pandora_help_screen()
|
||||||
# Show a help screen an exits
|
# Shows a help screen and exits
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
sub help_screen {
|
sub help_screen {
|
||||||
print "\nSyntax: \n\n pandora_server [ options ] < fullpathname to configuration file (pandora_server.conf) > \n\n";
|
print "\nSyntax: \n\n pandora_server [ options ] < fullpathname to configuration file (pandora_server.conf) > \n\n";
|
||||||
print "Following options are optional : \n";
|
print "Following options are optional : \n";
|
||||||
print " -v : Verbose mode activated. Writes more information in the logfile \n";
|
print " -v : Verbose mode activated. Writes more information in the logfile \n";
|
||||||
print " -d : Debug mode activated. Writes extensive information in the logfile \n";
|
print " -d : Debug mode activated. Writes extensive information in the logfile \n";
|
||||||
@ -71,7 +71,7 @@ sub help_screen {
|
|||||||
sub pandora_init {
|
sub pandora_init {
|
||||||
my $pa_config = $_[0];
|
my $pa_config = $_[0];
|
||||||
my $init_string = $_[1];
|
my $init_string = $_[1];
|
||||||
print "\n$init_string $pandora_version Build $pandora_build Copyright (c) 2004-2009 ArticaST\n";
|
print "\n$init_string $pandora_version Build $pandora_build Copyright (c) 2004-2010 ArticaST\n";
|
||||||
print "This program is OpenSource, licensed under the terms of GPL License version 2.\n";
|
print "This program is OpenSource, licensed under the terms of GPL License version 2.\n";
|
||||||
print "You can download latest versions and documentation at http://www.pandorafms.org \n\n";
|
print "You can download latest versions and documentation at http://www.pandorafms.org \n\n";
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ sub pandora_load_config {
|
|||||||
$pa_config->{"mta_port"} = '25'; # Introduced on 2.0
|
$pa_config->{"mta_port"} = '25'; # Introduced on 2.0
|
||||||
$pa_config->{"mta_user"} = ''; # Introduced on 2.0
|
$pa_config->{"mta_user"} = ''; # Introduced on 2.0
|
||||||
$pa_config->{"mta_pass"} = ''; # Introduced on 2.0
|
$pa_config->{"mta_pass"} = ''; # Introduced on 2.0
|
||||||
$pa_config->{"mta_auth"} = 'none'; # Introduced on 2.0 (Support LOGIN PLAIN CRAM-MD5 DIGEST-MD)
|
$pa_config->{"mta_auth"} = 'none'; # Introduced on 2.0 (Support LOGIN PLAIN CRAM-MD5 DIGEST-MD)
|
||||||
$pa_config->{"mta_from"} = 'pandora@localhost'; # Introduced on 2.0
|
$pa_config->{"mta_from"} = 'pandora@localhost'; # Introduced on 2.0
|
||||||
|
|
||||||
# nmap for recon OS fingerprinting and tcpscan (optional)
|
# nmap for recon OS fingerprinting and tcpscan (optional)
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Pandora FMS Server Upgrader (c) 2008-2009 Artica ST
|
# Pandora FMS Server Upgrader (c) 2008-2010 Artica ST
|
||||||
# Linux Version (generic), for SuSe and Debian/Ubuntu only
|
# Linux Version (generic), for SuSe and Debian/Ubuntu only
|
||||||
# other Linux distros could not work properly without modifications
|
# other Linux distros could not work properly without modifications
|
||||||
# Please see http://www.pandorafms.org
|
# Please see http://www.pandorafms.org
|
||||||
# v3.0.1 Build 091218
|
# v3.1.0 Build 100516
|
||||||
# This code is licensed under GPL 2.0 license.
|
# This code is licensed under GPL 2.0 license.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ help () {
|
|||||||
|
|
||||||
# Script banner at start
|
# Script banner at start
|
||||||
echo " "
|
echo " "
|
||||||
echo "Pandora FMS 3.0 Server Upgrade (c) 2009 Artica ST"
|
echo "Pandora FMS 3.1 Server Upgrade (c) 2009-2010 Artica ST"
|
||||||
echo "This program is licensed under GPL2 Terms. http://pandorafms.org"
|
echo "This program is licensed under GPL2 Terms. http://pandorafms.org"
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user