mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
2006-09-21 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Altered tagente_datos field "datos" to have DOUBLE(18,2) instead of DOUBLE (12,2). * pandora_db1.1_to1.2.sql: Altered tagente_datos field "datos" to have DOUBLE(18,2) instead of DOUBLE (12,2). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@183 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f080276317
commit
2fdfe5d5b5
@ -1,3 +1,8 @@
|
|||||||
|
2006-09-20 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* linux/pandora_agent.sh: Inserted code for detect Linux Distro,
|
||||||
|
and get versions (ported from babel agent code).
|
||||||
|
|
||||||
2006-08-30 Sancho Lerena <slerena@gmail.com>
|
2006-08-30 Sancho Lerena <slerena@gmail.com>
|
||||||
|
|
||||||
* pandora_agent/ChangeLog: Created and added to repository
|
* pandora_agent/ChangeLog: Created and added to repository
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
# This code is licenced under GPL 2.0 licence.
|
# This code is licenced under GPL 2.0 licence.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
AGENT_VERSION=1.2
|
AGENT_VERSION=1.2
|
||||||
|
AGENT_BUILD=060920
|
||||||
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
# Begin cycle for adquire primary config tokens
|
# Begin cycle for adquire primary config tokens
|
||||||
@ -87,8 +88,31 @@ done
|
|||||||
|
|
||||||
# MAIN Program loop begin
|
# MAIN Program loop begin
|
||||||
|
|
||||||
|
# Get Linux Distro type and version
|
||||||
|
|
||||||
|
# SUSE
|
||||||
|
if [ -f "/etc/SuSE-release" ]
|
||||||
|
then
|
||||||
|
OS_VERSION=`cat /etc/SuSE-release | grep VERSION | cut -f 3 -d " "`
|
||||||
|
LINUX_DISTRO=SUSE
|
||||||
|
else
|
||||||
|
if [ -f "/etc/lsb-release" ]
|
||||||
|
then
|
||||||
|
OS_VERSION=`cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -f 2 -d "="`
|
||||||
|
LINUX_DISTRO=UBUNTU
|
||||||
|
else
|
||||||
|
if [ -f "/etc/debian_version" ]
|
||||||
|
then
|
||||||
|
OS_VERSION=`cat /etc/debian_version`
|
||||||
|
OS_VERSION="DEBIAN $OS_VERSION"
|
||||||
|
LINUX_DISTRO=DEBIAN
|
||||||
|
else
|
||||||
|
LINUX_DISTRO=GENERIC
|
||||||
|
OS_VERSION=`uname -r`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
# OS Data
|
# OS Data
|
||||||
OS_VERSION=`uname -r`
|
|
||||||
OS_NAME=`uname -s`
|
OS_NAME=`uname -s`
|
||||||
|
|
||||||
# Hostname
|
# Hostname
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2006-09-21 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* pandoradb.sql: Altered tagente_datos field "datos" to have
|
||||||
|
DOUBLE(18,2) instead of DOUBLE (12,2).
|
||||||
|
|
||||||
|
* pandora_db1.1_to1.2.sql: Altered tagente_datos field "datos" to
|
||||||
|
have DOUBLE(18,2) instead of DOUBLE (12,2).
|
||||||
|
|
||||||
2006-09-16 Raul Mateos <raulofpandora@gmail.com>
|
2006-09-16 Raul Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* Set all timestamp values in pandoradb.sql file to 0000-00-00 00:00:00
|
* Set all timestamp values in pandoradb.sql file to 0000-00-00 00:00:00
|
||||||
|
@ -500,11 +500,15 @@ if (give_acl($id_user, 0, "AW")==1) {
|
|||||||
// =========================================================
|
// =========================================================
|
||||||
if (isset($_POST["oid"])){
|
if (isset($_POST["oid"])){
|
||||||
snmp_set_quick_print(1);
|
snmp_set_quick_print(1);
|
||||||
|
echo "DEBUG snmpreadwalk call() $ip_target $snmp_community <br>";
|
||||||
if (! ($snmpwalk = snmprealwalk($ip_target, $snmp_community, "")))
|
if (! ($snmpwalk = snmprealwalk($ip_target, $snmp_community, "")))
|
||||||
echo "<h3 class='error'>".$lang_label["cannot_read_snmp"]."</h3>";
|
echo "<h3 class='error'>".$lang_label["cannot_read_snmp"]."</h3>";
|
||||||
else
|
else
|
||||||
echo "<h3 class='suc'>".$lang_label["ok_read_snmp"]."</h3>";
|
echo "<h3 class='suc'>".$lang_label["ok_read_snmp"]."</h3>";
|
||||||
|
echo "DEBUG $snmpwalk <br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// =========================================================
|
// =========================================================
|
||||||
// MODULE INSERT
|
// MODULE INSERT
|
||||||
// =========================================================
|
// =========================================================
|
||||||
@ -917,6 +921,8 @@ else {
|
|||||||
<td colspan=3 class="datos"><select name="combo_snmp_oid">
|
<td colspan=3 class="datos"><select name="combo_snmp_oid">
|
||||||
<?php
|
<?php
|
||||||
// FILL OID Combobox
|
// FILL OID Combobox
|
||||||
|
|
||||||
|
|
||||||
if (isset($_POST["oid"])){
|
if (isset($_POST["oid"])){
|
||||||
for (reset($snmpwalk); $i = key($snmpwalk); next($snmpwalk)) {
|
for (reset($snmpwalk); $i = key($snmpwalk); next($snmpwalk)) {
|
||||||
// OJO, al indice tengo que restarle uno, el SNMP funciona con indices a partir de 0
|
// OJO, al indice tengo que restarle uno, el SNMP funciona con indices a partir de 0
|
||||||
|
@ -43,7 +43,7 @@ CREATE TABLE `tagente` (
|
|||||||
CREATE TABLE `tagente_datos` (
|
CREATE TABLE `tagente_datos` (
|
||||||
`id_agente_datos` bigint(10) unsigned NOT NULL auto_increment,
|
`id_agente_datos` bigint(10) unsigned NOT NULL auto_increment,
|
||||||
`id_agente_modulo` bigint(4) NOT NULL default '0',
|
`id_agente_modulo` bigint(4) NOT NULL default '0',
|
||||||
`datos` double(12,2) default NULL,
|
`datos` double(18,2) default NULL,
|
||||||
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||||
`id_agente` bigint(4) unsigned NOT NULL default '0',
|
`id_agente` bigint(4) unsigned NOT NULL default '0',
|
||||||
PRIMARY KEY (`id_agente_datos`),
|
PRIMARY KEY (`id_agente_datos`),
|
||||||
@ -58,7 +58,7 @@ CREATE TABLE `tagente_datos` (
|
|||||||
CREATE TABLE `tagente_datos_inc` (
|
CREATE TABLE `tagente_datos_inc` (
|
||||||
`id_adi` bigint(20) unsigned NOT NULL auto_increment,
|
`id_adi` bigint(20) unsigned NOT NULL auto_increment,
|
||||||
`id_agente_modulo` bigint(20) NOT NULL default '0',
|
`id_agente_modulo` bigint(20) NOT NULL default '0',
|
||||||
`datos` bigint(12) default NULL,
|
`datos` bigint(18) default NULL,
|
||||||
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||||
PRIMARY KEY (`id_adi`),
|
PRIMARY KEY (`id_adi`),
|
||||||
KEY `data_inc_index_1` (`id_agente_modulo`)
|
KEY `data_inc_index_1` (`id_agente_modulo`)
|
||||||
|
@ -174,7 +174,7 @@ DROP TABLE tagente_datos;
|
|||||||
CREATE TABLE `tagente_datos` (
|
CREATE TABLE `tagente_datos` (
|
||||||
`id_agente_datos` bigint(10) unsigned NOT NULL auto_increment,
|
`id_agente_datos` bigint(10) unsigned NOT NULL auto_increment,
|
||||||
`id_agente_modulo` bigint(4) NOT NULL default '0',
|
`id_agente_modulo` bigint(4) NOT NULL default '0',
|
||||||
`datos` double(12,2) default NULL,
|
`datos` double(18,2) default NULL,
|
||||||
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||||
`id_agente` bigint(4) unsigned NOT NULL default '0',
|
`id_agente` bigint(4) unsigned NOT NULL default '0',
|
||||||
PRIMARY KEY (`id_agente_datos`),
|
PRIMARY KEY (`id_agente_datos`),
|
||||||
|
@ -1,9 +1,24 @@
|
|||||||
|
2006-09-20 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* en/pandora.xml: Changes in copyright notice and other minor stuff.
|
||||||
|
|
||||||
|
* en/pandora_introduction.xml: Major cut/paste info from older
|
||||||
|
docs. Formatting and some graphics inline. Initial first version
|
||||||
|
of introduction chapter for main/install pandora doc. Please
|
||||||
|
review it MANY times before publish it.
|
||||||
|
|
||||||
|
* en/pandora_install.xml: More formatting and text added. Second
|
||||||
|
version, with new stuff from last revision. Please review it MANY
|
||||||
|
times before publish it.
|
||||||
|
|
||||||
|
* en/images/*.jpg: New files added for introduction chapter.
|
||||||
|
|
||||||
2006-09-21 Raul Mateos <raulofpandora@gmail.com>
|
2006-09-21 Raul Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* en/pandora_install.xml: Updated
|
* en/pandora_install.xml: Updated
|
||||||
|
|
||||||
2006-09-18 slerena <slerena@artica.es>
|
2006-09-18 slerena <slerena@artica.es>
|
||||||
|
|
||||||
* en/pandora.xml: Moved to pandora_user.xml. A new file called
|
* en/pandora.xml: Moved to pandora_user.xml. A new file called
|
||||||
pandora.xml will be "install manual". We'll have two different
|
pandora.xml will be "install manual". We'll have two different
|
||||||
docs: User guide, and Install / Advanced guide.
|
docs: User guide, and Install / Advanced guide.
|
||||||
|
@ -137,13 +137,6 @@ dbhost localhost
|
|||||||
|
|
||||||
Please change them to your own data. For security reasons isn't recommended use the default values.
|
Please change them to your own data. For security reasons isn't recommended use the default values.
|
||||||
|
|
||||||
Before running Pandora Server, you need to have Pandora DataBase running. In order to setup database configuration you'll need to edit pandora_server.pl perl script and change this parameters (all are together, in the first lines of code):
|
|
||||||
my $dirname = "/opt/pandora/data_in";
|
|
||||||
my $dbuser = "pandora";
|
|
||||||
my $dbpass = "pandora";
|
|
||||||
my $dbhost = "pandora";
|
|
||||||
my $log_file = "/opt/pandora/pandora.log";
|
|
||||||
|
|
||||||
If you run Pandora Server in Windows, you need to use the backslash twice in $dirname, that is: "\\", for example: my $dirname="C:\\pandora\\pandora_server\\data_in";, not needed in $log_file.
|
If you run Pandora Server in Windows, you need to use the backslash twice in $dirname, that is: "\\", for example: my $dirname="C:\\pandora\\pandora_server\\data_in";, not needed in $log_file.
|
||||||
|
|
||||||
These are default values, and all must be existing directory and filename and valid username, password and hostname.
|
These are default values, and all must be existing directory and filename and valid username, password and hostname.
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user